Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 83.58 kB / 21.19 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.012/1.012, allocations: 177.1 MB / 205 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.359e-05/2.51e-05, allocations: 6.312 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.003984/0.004009, allocations: 3.456 MB / 276.4 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002363/0.006372, allocations: 1.648 MB / 278.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002151/0.006587, allocations: 4 kB / 278.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00234/0.008927, allocations: 2.67 MB / 280.7 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00073/0.009657, allocations: 234.3 kB / 281 MB, free: 9.492 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007093/0.01037, allocations: 323.2 kB / 281.3 MB, free: 9.176 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001878/0.01224, allocations: 1.836 MB / 283.1 MB, free: 7.332 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.01244, allocations: 100.3 kB / 283.2 MB, free: 7.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005496/0.01299, allocations: 429.1 kB / 283.6 MB, free: 6.812 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003458/0.01334, allocations: 303.2 kB / 283.9 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.903e-05/0.01341, allocations: 48 kB / 284 MB, free: 6.469 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001828/0.01359, allocations: 87.92 kB / 284.1 MB, free: 6.383 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005093/0.0141, allocations: 0.8688 MB / 284.9 MB, free: 5.512 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003692/0.01447, allocations: 470.1 kB / 285.4 MB, free: 5.051 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001782/0.01625, allocations: 1.498 MB / 286.9 MB, free: 3.547 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.01626, allocations: 0 / 286.9 MB, free: 3.547 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.01626, allocations: 4 kB / 286.9 MB, free: 3.543 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001001/0.01636, allocations: 0 / 286.9 MB, free: 3.543 MB / 266.7 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.003791/0.02015, allocations: 3.067 MB / 290 MB, free: 428 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.02019, allocations: 11.98 kB / 290 MB, free: 416 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004353/0.02063, allocations: 338.9 kB / 290.3 MB, free: 76 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1335/0.1542, allocations: 1.294 MB / 291.6 MB, free: 22.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.1543, allocations: 113.2 kB / 291.7 MB, free: 22.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001542/0.1544, allocations: 51.08 kB / 291.8 MB, free: 22.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004937/0.1549, allocations: 381.6 kB / 292.1 MB, free: 21.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.1549, allocations: 0.7812 kB / 292.1 MB, free: 21.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.783e-05/0.155, allocations: 16.72 kB / 292.2 MB, free: 21.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.155, allocations: 14.31 kB / 292.2 MB, free: 21.9 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003324/0.1553, allocations: 194.8 kB / 292.4 MB, free: 21.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003178/0.1585, allocations: 2.708 MB / 295.1 MB, free: 21.11 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003691/0.1589, allocations: 248.2 kB / 295.3 MB, free: 21.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.159, allocations: 109.1 kB / 295.4 MB, free: 21.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.159, allocations: 6.781 kB / 295.4 MB, free: 21.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.1591, allocations: 46.64 kB / 295.5 MB, free: 20.97 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.234e-06/0.1591, allocations: 0 / 295.5 MB, free: 20.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=48): time 0.002911/0.162, allocations: 2.109 MB / 297.6 MB, free: 19.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.162, allocations: 83.39 kB / 297.7 MB, free: 19.87 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004294/0.1663, allocations: 3.524 MB / 301.2 MB, free: 19.03 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.1663, allocations: 32.55 kB / 301.2 MB, free: 19 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009264/0.1673, allocations: 1.439 MB / 302.7 MB, free: 17.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.1674, allocations: 171.1 kB / 302.8 MB, free: 17.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.1675, allocations: 99.02 kB / 302.9 MB, free: 17.76 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.129e-05/0.1675, allocations: 0.4957 MB / 303.4 MB, free: 17.27 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.1677, allocations: 70.39 kB / 303.5 MB, free: 17.26 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.1679, allocations: 183.9 kB / 303.7 MB, free: 17.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.1682, allocations: 276.5 kB / 303.9 MB, free: 16.96 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1682, allocations: 1.281 kB / 303.9 MB, free: 16.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008403/0.169, allocations: 0.5995 MB / 304.5 MB, free: 16.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/0.1691, allocations: 7.719 kB / 304.5 MB, free: 16.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.1691, allocations: 8.109 kB / 304.6 MB, free: 16.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.355e-05/0.1691, allocations: 4.5 kB / 304.6 MB, free: 16.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003553/0.1695, allocations: 119.5 kB / 304.7 MB, free: 16.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/0.1695, allocations: 9.156 kB / 304.7 MB, free: 16.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003418/0.1698, allocations: 18.11 kB / 304.7 MB, free: 16.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.278e-05/0.1699, allocations: 17.67 kB / 304.7 MB, free: 16.68 MB / 266.7 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.0002216/0.1701, allocations: 184.8 kB / 304.9 MB, free: 16.51 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.1703, allocations: 298.9 kB / 305.2 MB, free: 16.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007898/0.1711, allocations: 0.5772 MB / 305.8 MB, free: 16.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.1711, allocations: 5.25 kB / 305.8 MB, free: 16.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1711, allocations: 0 / 305.8 MB, free: 16.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.1711, allocations: 5.641 kB / 305.8 MB, free: 16.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001533/0.1727, allocations: 1.521 MB / 307.3 MB, free: 15.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1727, allocations: 0 / 307.3 MB, free: 15.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002264/0.1729, allocations: 96.47 kB / 307.4 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002325/0.1731, allocations: 75.23 kB / 307.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.1731, allocations: 19.41 kB / 307.5 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003139/0.1735, allocations: 0.8499 MB / 308.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1735, allocations: 0 / 308.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008502/0.1743, allocations: 0.9924 MB / 309.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004277/0.1747, allocations: 404.1 kB / 309.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.1749, allocations: 7.062 kB / 309.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.1751, allocations: 20.52 kB / 309.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.551e-05/0.1752, allocations: 37.88 kB / 309.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.1752, allocations: 18.39 kB / 309.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001643/0.1769, allocations: 2.036 MB / 311.8 MB, free: 11.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1769, allocations: 4 kB / 311.8 MB, free: 11.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004603/0.1773, allocations: 208.8 kB / 312 MB, free: 11.73 MB / 266.7 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.0008729/0.1782, allocations: 407.8 kB / 312.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003601/0.1786, allocations: 268 kB / 312.7 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1786, allocations: 0 / 312.7 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002121/0.1788, allocations: 165.4 kB / 312.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006797/0.1795, allocations: 201.3 kB / 313.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.183, allocations: 3.969 MB / 317 MB, free: 7.133 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.1833, allocations: 0.5629 MB / 317.6 MB, free: 6.543 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002123/0.1836, allocations: 163.8 kB / 317.8 MB, free: 6.379 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.1837, allocations: 92.48 kB / 317.8 MB, free: 6.289 MB / 266.7 MB Notification: Performance of SimCode: time 1.473e-06/0.1837, allocations: 4 kB / 317.9 MB, free: 6.285 MB / 266.7 MB Notification: Performance of Templates: time 0.02338/0.2071, allocations: 15.37 MB / 333.2 MB, free: 7.035 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2727495818398893]