Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008491/0.00849, allocations: 98.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001977/0.001977, allocations: 189.5 kB / 16.67 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.518/1.518, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 49.61 kB / 326.5 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09262/0.09375, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005201/0.09901, allocations: 3.334 MB / 376.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002555/0.1016, allocations: 1.396 MB / 377.9 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.1019, allocations: 11.94 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002971/0.1049, allocations: 2.655 MB / 380.6 MB, free: 9.883 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0006248/0.1055, allocations: 166.8 kB / 380.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007934/0.1063, allocations: 279.5 kB / 381 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001818/0.1082, allocations: 1.801 MB / 382.8 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002829/0.1084, allocations: 139.2 kB / 382.9 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003741/0.1088, allocations: 321 kB / 383.3 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003891/0.1092, allocations: 318.9 kB / 383.6 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.799e-05/0.1093, allocations: 44 kB / 383.6 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001833/0.1095, allocations: 67.98 kB / 383.7 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000589/0.1101, allocations: 0.8453 MB / 384.5 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006899/0.1108, allocations: 0.9384 MB / 385.5 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002252/0.1131, allocations: 2.618 MB / 388.1 MB, free: 2.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1131, allocations: 0 / 388.1 MB, free: 2.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.1131, allocations: 0 / 388.1 MB, free: 2.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.78e-05/0.1132, allocations: 0 / 388.1 MB, free: 2.344 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.003824/0.117, allocations: 2.899 MB / 391 MB, free: 15.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1171, allocations: 15.89 kB / 391 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003398/0.1174, allocations: 303 kB / 391.3 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002302/0.1197, allocations: 1.842 MB / 393.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.736e-05/0.1198, allocations: 63.25 kB / 393.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000177/0.12, allocations: 51.92 kB / 393.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007395/0.1207, allocations: 395 kB / 393.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.1208, allocations: 0 / 393.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.839e-05/0.1208, allocations: 16 kB / 393.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.1208, allocations: 8 kB / 393.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006991/0.1215, allocations: 331.7 kB / 394 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003836/0.1254, allocations: 2.907 MB / 396.9 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006523/0.1261, allocations: 317 kB / 397.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003152/0.1264, allocations: 161.6 kB / 397.4 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.586e-05/0.1264, allocations: 8 kB / 397.4 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.1265, allocations: 42.5 kB / 397.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.713e-06/0.1265, allocations: 0 / 397.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.004728/0.1312, allocations: 2.433 MB / 399.8 MB, free: 6.242 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.1313, allocations: 81.55 kB / 399.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005826/0.1371, allocations: 5.439 MB / 405.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.723e-05/0.1372, allocations: 37.7 kB / 405.4 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.1383, allocations: 1.203 MB / 406.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.1384, allocations: 182.3 kB / 406.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.1386, allocations: 94.23 kB / 406.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1387, allocations: 326 kB / 407.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.139, allocations: 137.1 kB / 407.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003609/0.1394, allocations: 221.7 kB / 407.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006857/0.1401, allocations: 384.3 kB / 407.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1401, allocations: 4 kB / 407.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001173/0.1413, allocations: 0.6897 MB / 408.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.1413, allocations: 8 kB / 408.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1414, allocations: 0 / 408.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.1414, allocations: 4 kB / 408.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005019/0.1419, allocations: 123.8 kB / 408.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.1419, allocations: 11.92 kB / 408.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004091/0.1423, allocations: 23.89 kB / 408.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.79e-05/0.1424, allocations: 19.98 kB / 408.8 MB, free: 13.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009694/0.1434, allocations: 0.9231 MB / 409.7 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003177/0.1437, allocations: 282.1 kB / 410 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003987/0.1441, allocations: 336.2 kB / 410.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.1441, allocations: 8 kB / 410.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.1441, allocations: 0 / 410.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.689e-06/0.1441, allocations: 7.922 kB / 410.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001617/0.1458, allocations: 1.465 MB / 411.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1458, allocations: 0 / 411.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004365/0.1462, allocations: 95.88 kB / 411.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003533/0.1466, allocations: 96.69 kB / 412 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.124e-05/0.1466, allocations: 11.98 kB / 412 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005359/0.1472, allocations: 0.6304 MB / 412.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1472, allocations: 4.062 kB / 412.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.1486, allocations: 1.051 MB / 413.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006376/0.1493, allocations: 0.4952 MB / 414.2 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.1495, allocations: 16.12 kB / 414.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004509/0.1499, allocations: 19.98 kB / 414.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.346e-05/0.15, allocations: 32.39 kB / 414.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/0.1501, allocations: 12 kB / 414.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.004406/0.1545, allocations: 3.974 MB / 418.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1545, allocations: 4 kB / 418.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006636/0.1552, allocations: 207.9 kB / 418.4 MB, free: 3.398 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009635/0.1561, allocations: 420.2 kB / 418.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008362/0.157, allocations: 376.9 kB / 419.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.157, allocations: 0 / 419.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004572/0.1575, allocations: 218.9 kB / 419.4 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.1585, allocations: 191.1 kB / 419.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006798/0.1653, allocations: 5.477 MB / 425.1 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001559/0.1669, allocations: 1.821 MB / 426.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005411/0.1674, allocations: 275.6 kB / 427.2 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002588/0.1677, allocations: 91.42 kB / 427.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of SimCode: time 1.322e-06/0.1677, allocations: 0 / 427.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of Templates: time 0.03067/0.1984, allocations: 15.47 MB / 442.7 MB, free: 10.97 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1)