Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009385/0.0009386, allocations: 179.8 kB / 8.478 MB, free: 1.891 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.217/1.217, allocations: 205.2 MB / 214.1 MB, free: 5.094 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009415/0.0009415, allocations: 90.52 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.243e-06/7.274e-06, allocations: 3.938 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08194/0.08196, allocations: 47.57 MB / 362.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2486/0.3307, allocations: 89.26 MB / 451.8 MB, free: 9.438 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001771/0.3309, allocations: 80.8 kB / 451.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.04282/0.3737, allocations: 15.09 MB / 467 MB, free: 4.246 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.716e-05/0.3738, allocations: 13.06 kB / 467 MB, free: 4.246 MB / 314.7 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.00157/0.3754, allocations: 0.8697 MB / 467.9 MB, free: 3.621 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.3754, allocations: 12.75 kB / 467.9 MB, free: 3.617 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.3756, allocations: 82.88 kB / 467.9 MB, free: 3.578 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006786/0.3763, allocations: 0.4889 MB / 468.4 MB, free: 3.266 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.169e-05/0.3764, allocations: 52.36 kB / 468.5 MB, free: 3.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001828/0.3766, allocations: 46.7 kB / 468.5 MB, free: 3.227 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008034/0.3774, allocations: 452.1 kB / 469 MB, free: 3.199 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008293/0.3782, allocations: 0.4944 MB / 469.5 MB, free: 3.039 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.3782, allocations: 0 / 469.5 MB, free: 3.039 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.603e-05/0.3783, allocations: 1.156 kB / 469.5 MB, free: 3.039 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.3783, allocations: 17.62 kB / 469.5 MB, free: 3.035 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003091/0.3814, allocations: 2.219 MB / 471.7 MB, free: 1.797 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00045/0.3819, allocations: 286.7 kB / 472 MB, free: 1.734 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003574/0.3823, allocations: 228.2 kB / 472.2 MB, free: 1.707 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.543e-05/0.3823, allocations: 6.953 kB / 472.2 MB, free: 1.703 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.3823, allocations: 39.66 kB / 472.3 MB, free: 1.664 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 2.004e-06/0.3823, allocations: 0 / 472.3 MB, free: 1.664 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.008747/0.3911, allocations: 2.549 MB / 474.8 MB, free: 15.71 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.3912, allocations: 81.61 kB / 474.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006231/0.3918, allocations: 429.3 kB / 475.3 MB, free: 15.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.452e-05/0.3919, allocations: 25.7 kB / 475.3 MB, free: 15.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/0.392, allocations: 255.5 kB / 475.6 MB, free: 15.05 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/0.3922, allocations: 207.5 kB / 475.8 MB, free: 14.87 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-05/0.3922, allocations: 3.938 kB / 475.8 MB, free: 14.87 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.3924, allocations: 366.5 kB / 476.1 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003523/0.3928, allocations: 206.7 kB / 476.3 MB, free: 14.41 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004047/0.3932, allocations: 300.8 kB / 476.6 MB, free: 14.2 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003953/0.3936, allocations: 240.4 kB / 476.9 MB, free: 14.07 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3936, allocations: 7.938 kB / 476.9 MB, free: 14.06 MB / 330.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.007179/0.4008, allocations: 1.749 MB / 478.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.4009, allocations: 8.125 kB / 478.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.4009, allocations: 4 kB / 478.6 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006698/0.4076, allocations: 1.156 MB / 479.8 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005102/0.4081, allocations: 98.94 kB / 479.9 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01299/0.4211, allocations: 5.522 MB / 485.4 MB, free: 7.543 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008365/0.422, allocations: 39.72 kB / 485.5 MB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.422e-05/0.4221, allocations: 23.86 kB / 485.5 MB, free: 7.488 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.transformer.core.port_p.V_m:DUMMY_DER(flow=false fixed = false ) "Magnetic potential at the port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 30} Notification: Performance of prepare postOptimizeDAE: time 0.0002521/0.4223, allocations: 112.9 kB / 485.6 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001345/0.4225, allocations: 59.28 kB / 485.6 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001366/0.4239, allocations: 0.7178 MB / 486.4 MB, free: 6.836 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.4239, allocations: 4 kB / 486.4 MB, free: 6.832 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4239, allocations: 4 kB / 486.4 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.4239, allocations: 3.984 kB / 486.4 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003534/0.4274, allocations: 1.709 MB / 488.1 MB, free: 5.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.4275, allocations: 0 / 488.1 MB, free: 5.523 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006205/0.4281, allocations: 119.8 kB / 488.2 MB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001755/0.4299, allocations: 333.3 kB / 488.5 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.545e-05/0.4299, allocations: 3.984 kB / 488.5 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004299/0.4342, allocations: 2.651 MB / 491.2 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.4343, allocations: 0 / 491.2 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002423/0.4367, allocations: 1.233 MB / 492.4 MB, free: 1.055 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003436/0.437, allocations: 204.3 kB / 492.6 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.4372, allocations: 4 kB / 492.6 MB, free: 0.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006739/0.4378, allocations: 39.97 kB / 492.7 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.438, allocations: 36.59 kB / 492.7 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.613e-05/0.438, allocations: 16 kB / 492.7 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0004442/0.4385, allocations: 339.2 kB / 493 MB, free: 420 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.000912/0.4394, allocations: 200.2 kB / 493.2 MB, free: 220 kB / 330.7 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.Phi,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete 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.0003341/0.4397, allocations: 146.6 kB / 493.4 MB, free: 64 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001369/0.4411, allocations: 0.6883 MB / 494.1 MB, free: 15.36 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4411, allocations: 4.062 kB / 494.1 MB, free: 15.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007068/0.4418, allocations: 436.2 kB / 494.5 MB, free: 14.93 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005123/0.4424, allocations: 63.2 kB / 494.6 MB, free: 14.87 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00286/0.4452, allocations: 1.108 MB / 495.7 MB, free: 13.73 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006708/0.4459, allocations: 0.9572 MB / 496.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4459, allocations: 3.938 kB / 496.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of Templates: time 0.02018/0.4661, allocations: 11.46 MB / 0.4962 GB, free: 1.305 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches