Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.00742/0.00742, allocations: 98.27 kB / 15.73 MB, free: 6.004 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.001717/0.001717, allocations: 192.9 kB / 16.67 MB, free: 5.926 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.384/1.384, allocations: 205.1 MB / 222.5 MB, free: 4.477 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.001171/0.001171, allocations: 53.95 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09748/0.09866, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004605/0.1033, allocations: 3.338 MB / 376.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00235/0.1057, allocations: 1.4 MB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.1059, allocations: 8 kB / 377.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002949/0.1089, allocations: 2.655 MB / 380.6 MB, free: 9.871 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.0004885/0.1094, allocations: 174.7 kB / 380.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006844/0.1101, allocations: 283.5 kB / 381 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001716/0.1118, allocations: 1.798 MB / 382.8 MB, free: 7.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.1121, allocations: 139.2 kB / 382.9 MB, free: 7.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000344/0.1124, allocations: 313 kB / 383.3 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003714/0.1128, allocations: 322.8 kB / 383.6 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.516e-05/0.1129, allocations: 44 kB / 383.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.1131, allocations: 71.98 kB / 383.7 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005729/0.1137, allocations: 0.8453 MB / 384.5 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006602/0.1143, allocations: 0.9423 MB / 385.5 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002223/0.1166, allocations: 2.614 MB / 388.1 MB, free: 2.324 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1166, allocations: 0 / 388.1 MB, free: 2.324 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.1166, allocations: 0 / 388.1 MB, free: 2.324 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.155e-05/0.1166, allocations: 3.938 kB / 388.1 MB, free: 2.32 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.003708/0.1204, allocations: 2.898 MB / 391 MB, free: 15.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.1204, allocations: 15.89 kB / 391 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003178/0.1207, allocations: 291 kB / 391.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002154/0.1229, allocations: 1.85 MB / 393.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.861e-05/0.123, allocations: 56.02 kB / 393.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.1232, allocations: 47.98 kB / 393.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007231/0.1239, allocations: 402.9 kB / 393.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.1239, allocations: 3.953 kB / 393.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.206e-05/0.124, allocations: 16 kB / 393.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.124, allocations: 8 kB / 393.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006913/0.1247, allocations: 331.7 kB / 394 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003765/0.1285, allocations: 2.896 MB / 396.9 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006265/0.1291, allocations: 318.1 kB / 397.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003105/0.1294, allocations: 161.7 kB / 397.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-05/0.1295, allocations: 7.984 kB / 397.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.1295, allocations: 38.56 kB / 397.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.194e-06/0.1295, allocations: 0 / 397.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.004664/0.1342, allocations: 2.449 MB / 399.8 MB, free: 6.227 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.1343, allocations: 81.55 kB / 399.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005955/0.1402, allocations: 5.439 MB / 405.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.429e-05/0.1403, allocations: 33.7 kB / 405.4 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.1414, allocations: 1.211 MB / 406.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.1416, allocations: 174.4 kB / 406.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.1417, allocations: 90.19 kB / 406.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1418, allocations: 325.9 kB / 407.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003396/0.1422, allocations: 141 kB / 407.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003831/0.1426, allocations: 225.6 kB / 407.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006853/0.1433, allocations: 388.3 kB / 407.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1433, allocations: 0 / 407.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001245/0.1445, allocations: 0.6972 MB / 408.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.1446, allocations: 8 kB / 408.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.1446, allocations: 4 kB / 408.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.1446, allocations: 4 kB / 408.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004978/0.1451, allocations: 124.1 kB / 408.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.1451, allocations: 7.938 kB / 408.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004198/0.1456, allocations: 19.98 kB / 408.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.168e-05/0.1456, allocations: 16 kB / 408.8 MB, free: 13.16 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.001003/0.1466, allocations: 0.9153 MB / 409.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003244/0.1469, allocations: 282.1 kB / 410 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003957/0.1474, allocations: 348.1 kB / 410.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.1474, allocations: 4 kB / 410.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.1474, allocations: 7.938 kB / 410.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.1474, allocations: 0 / 410.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/0.1491, allocations: 1.477 MB / 411.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1491, allocations: 0 / 411.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004389/0.1495, allocations: 95.88 kB / 411.9 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003483/0.1499, allocations: 80.8 kB / 412 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.159e-05/0.1499, allocations: 16 kB / 412 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005687/0.1505, allocations: 0.6382 MB / 412.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.1505, allocations: 4.031 kB / 412.6 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.152, allocations: 1.051 MB / 413.7 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006205/0.1527, allocations: 0.4914 MB / 414.2 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001678/0.1528, allocations: 7.984 kB / 414.2 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004647/0.1533, allocations: 23.94 kB / 414.2 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.413e-05/0.1534, allocations: 28.39 kB / 414.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.052e-05/0.1534, allocations: 23.98 kB / 414.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.004355/0.1578, allocations: 3.97 MB / 418.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1578, allocations: 0 / 418.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006775/0.1585, allocations: 207.9 kB / 418.4 MB, free: 3.383 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.0009583/0.1595, allocations: 416.4 kB / 418.8 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008237/0.1603, allocations: 384.8 kB / 419.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1603, allocations: 0 / 419.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004553/0.1608, allocations: 214.4 kB / 419.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.1618, allocations: 191.7 kB / 419.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006983/0.1688, allocations: 5.477 MB / 425.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001559/0.1704, allocations: 1.814 MB / 426.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005824/0.171, allocations: 279.6 kB / 427.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002485/0.1712, allocations: 91.42 kB / 427.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1712, allocations: 7.938 kB / 427.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of Templates: time 0.02998/0.2012, allocations: 15.47 MB / 442.7 MB, free: 10.96 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1)