Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_4.0.0_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.001161/0.001161, allocations: 91.59 kB / 16.3 MB, free: 6.457 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.001387/0.001387, allocations: 181.7 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002515/0.0002516, allocations: 8.781 kB / 300.7 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08768/0.08795, allocations: 50.42 MB / 351.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003975/0.09197, allocations: 3.529 MB / 354.7 MB, free: 8.148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002531/0.09453, allocations: 1.513 MB / 356.2 MB, free: 6.625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004351/0.09499, allocations: 7.938 kB / 356.2 MB, free: 6.617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003348/0.09534, allocations: 95.34 kB / 356.3 MB, free: 6.523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009036/0.09625, allocations: 346.9 kB / 356.6 MB, free: 6.184 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.09667, allocations: 143.8 kB / 356.8 MB, free: 6.043 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000881/0.09756, allocations: 0.6056 MB / 357.4 MB, free: 5.438 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003022/0.09787, allocations: 182 kB / 357.6 MB, free: 5.258 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004285/0.09831, allocations: 306.9 kB / 357.9 MB, free: 4.957 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005007/0.09882, allocations: 362.6 kB / 358.2 MB, free: 4.602 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.09893, allocations: 40 kB / 358.2 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003433/0.09928, allocations: 163.9 kB / 358.4 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.09941, allocations: 139.4 kB / 358.5 MB, free: 4.266 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.09957, allocations: 161.3 kB / 358.7 MB, free: 4.102 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007733/0.1004, allocations: 0.8763 MB / 359.6 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1004, allocations: 0 / 359.6 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1004, allocations: 4 kB / 359.6 MB, free: 3.219 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.707e-05/0.1004, allocations: 0 / 359.6 MB, free: 3.219 MB / 286.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.002197/0.1026, allocations: 0.9857 MB / 360.6 MB, free: 2.184 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.863e-05/0.1027, allocations: 8.031 kB / 360.6 MB, free: 2.176 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.1028, allocations: 75.16 kB / 360.6 MB, free: 2.102 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006813/0.1035, allocations: 494 kB / 361.1 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.215e-05/0.1036, allocations: 86.94 kB / 361.2 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001768/0.1038, allocations: 60 kB / 361.3 MB, free: 1.426 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.1048, allocations: 0.598 MB / 361.9 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1049, allocations: 4 kB / 361.9 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.261e-05/0.1049, allocations: 24 kB / 361.9 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.1049, allocations: 16 kB / 361.9 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.106, allocations: 0.536 MB / 362.4 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003167/0.1092, allocations: 2.322 MB / 364.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009135/0.1101, allocations: 491.3 kB / 365.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.1102, allocations: 12.17 kB / 365.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.1102, allocations: 38.5 kB / 365.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.875e-06/0.1102, allocations: 0 / 365.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01227/0.1225, allocations: 3.688 MB / 369 MB, free: 9.457 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.1226, allocations: 85.67 kB / 369.1 MB, free: 9.355 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006337/0.1232, allocations: 0.5331 MB / 369.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.82e-05/0.1233, allocations: 37.7 kB / 369.6 MB, free: 8.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000187/0.1235, allocations: 316.3 kB / 370 MB, free: 8.453 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.1236, allocations: 205 kB / 370.2 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.525e-05/0.1237, allocations: 15.94 kB / 370.2 MB, free: 8.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.1238, allocations: 366.8 kB / 370.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005378/0.1243, allocations: 257.2 kB / 370.8 MB, free: 7.617 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005783/0.1249, allocations: 356.4 kB / 371.1 MB, free: 7.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005766/0.1255, allocations: 286.1 kB / 371.4 MB, free: 6.957 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.1255, allocations: 3.953 kB / 371.4 MB, free: 6.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001431/0.1269, allocations: 0.7647 MB / 372.2 MB, free: 6.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.127, allocations: 10.66 kB / 372.2 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.127, allocations: 0 / 372.2 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001421/0.1271, allocations: 32.91 kB / 372.2 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007818/0.1279, allocations: 167.8 kB / 372.4 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009153/0.1289, allocations: 1.347 MB / 373.7 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005663/0.1294, allocations: 48.03 kB / 373.8 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.833e-05/0.1295, allocations: 27.94 kB / 373.8 MB, free: 4.414 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002644/0.1298, allocations: 204.6 kB / 374 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.1299, allocations: 63.28 kB / 374.1 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/0.1316, allocations: 0.8686 MB / 374.9 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.1317, allocations: 8 kB / 374.9 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.1317, allocations: 0 / 374.9 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.1317, allocations: 3.984 kB / 374.9 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003514/0.1352, allocations: 1.889 MB / 376.8 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1352, allocations: 0 / 376.8 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005177/0.1357, allocations: 115.9 kB / 376.9 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002412/0.1382, allocations: 0.4986 MB / 377.4 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.914e-05/0.1382, allocations: 12 kB / 377.5 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004905/0.1431, allocations: 3.03 MB / 380.5 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.1432, allocations: 3.953 kB / 380.5 MB, free: 13.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002858/0.146, allocations: 1.415 MB / 381.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003047/0.1463, allocations: 208.3 kB / 382.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.1465, allocations: 12 kB / 382.1 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006195/0.1471, allocations: 51.95 kB / 382.2 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.1472, allocations: 44.5 kB / 382.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.1473, allocations: 23.98 kB / 382.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004596/0.1477, allocations: 386.8 kB / 382.6 MB, free: 11.35 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1477, allocations: 0 / 382.6 MB, free: 11.35 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007093/0.1485, allocations: 184 kB / 382.8 MB, free: 11.17 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002652/0.1487, allocations: 157.7 kB / 382.9 MB, free: 11.01 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.1502, allocations: 0.756 MB / 383.7 MB, free: 10.24 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1502, allocations: 0 / 383.7 MB, free: 10.24 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000858/0.151, allocations: 0.5256 MB / 384.2 MB, free: 9.699 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005286/0.1516, allocations: 77.88 kB / 384.3 MB, free: 9.621 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002485/0.1541, allocations: 1.826 MB / 386.1 MB, free: 7.766 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003926/0.1545, allocations: 0.9202 MB / 387.1 MB, free: 6.816 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003037/0.1548, allocations: 68.81 kB / 387.1 MB, free: 6.746 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.155, allocations: 51.41 kB / 387.2 MB, free: 6.695 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.155, allocations: 0 / 387.2 MB, free: 6.695 MB / 318.1 MB Notification: Performance of Templates: time 0.01439/0.1694, allocations: 9.3 MB / 396.5 MB, free: 13.48 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches