Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005608/0.005608, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001072/0.001072, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.404/1.404, allocations: 205.1 MB / 222.6 MB, free: 4.488 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.001583/0.001583, allocations: 49.33 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1085, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005151/0.1137, allocations: 4.292 MB / 377.5 MB, free: 13 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002972/0.1167, allocations: 1.633 MB / 379.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000366/0.1171, allocations: 8 kB / 379.1 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004157/0.1176, allocations: 134.7 kB / 379.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008974/0.1185, allocations: 361.6 kB / 379.6 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004705/0.119, allocations: 235.6 kB / 379.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009837/0.12, allocations: 0.9745 MB / 380.8 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003714/0.1203, allocations: 245.3 kB / 381 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004578/0.1208, allocations: 378.6 kB / 381.4 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005161/0.1213, allocations: 422.3 kB / 381.8 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.1215, allocations: 96 kB / 381.9 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003825/0.1219, allocations: 219.9 kB / 382.1 MB, free: 8.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.122, allocations: 195.3 kB / 382.3 MB, free: 8.113 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003505/0.1224, allocations: 414.1 kB / 382.7 MB, free: 7.707 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.1236, allocations: 1.168 MB / 383.9 MB, free: 6.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1236, allocations: 0 / 383.9 MB, free: 6.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1236, allocations: 0 / 383.9 MB, free: 6.535 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.1236, allocations: 0 / 383.9 MB, free: 6.535 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002288/0.1259, allocations: 1.121 MB / 385 MB, free: 5.363 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.126, allocations: 11.89 kB / 385 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001459/0.1261, allocations: 80.47 kB / 385.1 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007767/0.1269, allocations: 0.5188 MB / 385.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-05/0.127, allocations: 75.56 kB / 385.7 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002014/0.1272, allocations: 64.5 kB / 385.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.1284, allocations: 0.6058 MB / 386.4 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.439e-05/0.1284, allocations: 0 / 386.4 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.834e-05/0.1285, allocations: 31.94 kB / 386.4 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.1285, allocations: 12 kB / 386.4 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.1296, allocations: 0.5244 MB / 386.9 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003348/0.133, allocations: 2.287 MB / 389.2 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.134, allocations: 481.2 kB / 389.7 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005451/0.1346, allocations: 262.1 kB / 389.9 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/0.1346, allocations: 7.938 kB / 389.9 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.1346, allocations: 38.56 kB / 390 MB, free: 184 kB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.064e-06/0.1347, allocations: 0 / 390 MB, free: 184 kB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.01277/0.1474, allocations: 3.572 MB / 393.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.59e-05/0.1476, allocations: 89.61 kB / 393.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008144/0.1484, allocations: 0.5331 MB / 394.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.87e-05/0.1485, allocations: 37.7 kB / 394.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002991/0.1488, allocations: 313 kB / 394.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/0.149, allocations: 234 kB / 394.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/0.1492, allocations: 114.3 kB / 394.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002271/0.1495, allocations: 366.7 kB / 395.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005985/0.1501, allocations: 249.2 kB / 395.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000641/0.1507, allocations: 344.4 kB / 395.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001232/0.152, allocations: 0.6058 MB / 396.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.152, allocations: 4 kB / 396.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001596/0.1536, allocations: 0.7493 MB / 397.2 MB, free: 8.781 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.1536, allocations: 4 kB / 397.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.1536, allocations: 4 kB / 397.2 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001965/0.1538, allocations: 28.84 kB / 397.2 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007831/0.1546, allocations: 167.9 kB / 397.4 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001192/0.1558, allocations: 1.432 MB / 398.8 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005562/0.1564, allocations: 39.91 kB / 398.8 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.999e-05/0.1565, allocations: 27.98 kB / 398.9 MB, free: 6.934 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003053/0.1568, allocations: 197.8 kB / 399 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.1569, allocations: 59.62 kB / 399.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001863/0.1588, allocations: 0.8452 MB / 399.9 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.1588, allocations: 11.94 kB / 400 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.1588, allocations: 0 / 400 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.1588, allocations: 144 / 400 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003617/0.1625, allocations: 1.861 MB / 401.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.1625, allocations: 0 / 401.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000512/0.163, allocations: 111.8 kB / 401.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002192/0.1652, allocations: 464.3 kB / 402.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.927e-05/0.1653, allocations: 23.98 kB / 402.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004985/0.1703, allocations: 3.143 MB / 405.6 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1703, allocations: 0 / 405.6 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00293/0.1732, allocations: 1.367 MB / 406.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002888/0.1735, allocations: 216.8 kB / 407.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.996e-05/0.1736, allocations: 23.98 kB / 407.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005906/0.1742, allocations: 39.95 kB / 407.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.1744, allocations: 48.5 kB / 407.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/0.1744, allocations: 19.98 kB / 407.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004705/0.1749, allocations: 386.9 kB / 407.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1749, allocations: 7.938 kB / 407.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007368/0.1757, allocations: 195.9 kB / 407.8 MB, free: 13.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003082/0.176, allocations: 139.1 kB / 408 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.1775, allocations: 0.7286 MB / 408.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1775, allocations: 0 / 408.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009091/0.1784, allocations: 0.5295 MB / 409.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000669/0.1791, allocations: 89.78 kB / 409.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/0.1819, allocations: 1.474 MB / 410.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004766/0.1824, allocations: 0.9042 MB / 411.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003172/0.1827, allocations: 72.81 kB / 411.8 MB, free: 9.664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001811/0.1829, allocations: 55.41 kB / 411.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1829, allocations: 0 / 411.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of Templates: time 0.01713/0.2, allocations: 10.4 MB / 422.2 MB, free: 15.19 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1)