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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009497/0.0009497, allocations: 83.89 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009426/0.0009426, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9385/0.9385, allocations: 173.3 MB / 201.1 MB, free: 9 MB / 186.7 MB " [Timeout remaining time 179] 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=5000,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=5000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 268 MB, free: 6.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.294e-05/2.419e-05, allocations: 5.828 kB / 268 MB, free: 6.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003993/0.004017, allocations: 4.349 MB / 272.3 MB, free: 1.934 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002076/0.006093, allocations: 1.555 MB / 273.9 MB, free: 376 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002642/0.006358, allocations: 15.88 kB / 273.9 MB, free: 360 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002939/0.006652, allocations: 126.8 kB / 274 MB, free: 232 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006229/0.007274, allocations: 373.4 kB / 274.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.007576, allocations: 239.6 kB / 274.6 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006775/0.008253, allocations: 1.005 MB / 275.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002245/0.008478, allocations: 150 kB / 275.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004914/0.008969, allocations: 0.5536 MB / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003373/0.009306, allocations: 347 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.11e-05/0.009398, allocations: 100 kB / 276.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002587/0.009656, allocations: 203.9 kB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.009767, allocations: 203.3 kB / 277.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002031/0.00997, allocations: 291.3 kB / 277.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006312/0.0106, allocations: 0.7085 MB / 278.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.0106, allocations: 0 / 278.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.0106, allocations: 0 / 278.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.01061, allocations: 0 / 278.2 MB, free: 12.08 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001419/0.01203, allocations: 1.138 MB / 279.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.01207, allocations: 8.922 kB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.01222, allocations: 132.4 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.01269, allocations: 427.6 kB / 279.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.369e-05/0.01279, allocations: 127 kB / 280 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.01292, allocations: 76.62 kB / 280.1 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006137/0.01353, allocations: 0.5662 MB / 280.6 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.01355, allocations: 3.938 kB / 280.6 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.855e-05/0.01359, allocations: 28 kB / 280.7 MB, free: 9.453 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.0136, allocations: 12 kB / 280.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004357/0.01404, allocations: 279.6 kB / 280.9 MB, free: 9.168 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.016, allocations: 2.05 MB / 283 MB, free: 7.027 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004117/0.01641, allocations: 313.2 kB / 283.3 MB, free: 6.695 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002156/0.01663, allocations: 147.8 kB / 283.4 MB, free: 6.543 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.01666, allocations: 15.94 kB / 283.5 MB, free: 6.527 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.01668, allocations: 41.39 kB / 283.5 MB, free: 6.477 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.375e-06/0.01669, allocations: 3.984 kB / 283.5 MB, free: 6.473 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.005255/0.02194, allocations: 2.469 MB / 286 MB, free: 3.961 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.02198, allocations: 81.61 kB / 286 MB, free: 3.863 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003916/0.02237, allocations: 498.6 kB / 286.5 MB, free: 3.359 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.0224, allocations: 37.7 kB / 286.6 MB, free: 3.316 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.02256, allocations: 375.5 kB / 286.9 MB, free: 2.945 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.02267, allocations: 214.1 kB / 287.1 MB, free: 2.734 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.0228, allocations: 123.9 kB / 287.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.02295, allocations: 0.5429 MB / 287.8 MB, free: 2.051 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.02313, allocations: 101.2 kB / 287.9 MB, free: 1.953 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.02337, allocations: 235.7 kB / 288.1 MB, free: 1.676 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000446/0.02382, allocations: 372.9 kB / 288.5 MB, free: 1.266 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.02382, allocations: 4 kB / 288.5 MB, free: 1.262 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0006595/0.02448, allocations: 0.5044 MB / 289 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.02449, allocations: 4 kB / 289 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.0245, allocations: 8 kB / 289 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001808/0.02468, allocations: 47.59 kB / 289.1 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004001/0.02508, allocations: 163.8 kB / 289.2 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1106/0.1357, allocations: 1.76 MB / 291 MB, free: 27.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004737/0.1362, allocations: 30.91 kB / 291 MB, free: 27.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/0.1362, allocations: 25.02 kB / 291 MB, free: 27.09 MB / 266.7 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.000194/0.1364, allocations: 200.3 kB / 291.2 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.1365, allocations: 77.11 kB / 291.3 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009333/0.1374, allocations: 0.5485 MB / 291.9 MB, free: 26.87 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.1374, allocations: 10.75 kB / 291.9 MB, free: 26.87 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1375, allocations: 2.125 kB / 291.9 MB, free: 26.87 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.567e-06/0.1375, allocations: 6.844 kB / 291.9 MB, free: 26.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00183/0.1393, allocations: 1.276 MB / 293.2 MB, free: 26.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1393, allocations: 0.7031 kB / 293.2 MB, free: 26.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002719/0.1396, allocations: 103 kB / 293.3 MB, free: 26.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009745/0.1405, allocations: 347.9 kB / 293.6 MB, free: 26.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.785e-05/0.1406, allocations: 14.92 kB / 293.6 MB, free: 26.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002201/0.1428, allocations: 2.807 MB / 296.4 MB, free: 24.58 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.1428, allocations: 1.125 kB / 296.4 MB, free: 24.58 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.144, allocations: 0.9793 MB / 297.4 MB, free: 24.24 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.1442, allocations: 132.7 kB / 297.5 MB, free: 24.22 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.906e-05/0.1443, allocations: 15.38 kB / 297.5 MB, free: 24.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000257/0.1445, allocations: 37.88 kB / 297.6 MB, free: 24.22 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.1446, allocations: 57.02 kB / 297.6 MB, free: 24.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.772e-05/0.1447, allocations: 19.08 kB / 297.7 MB, free: 24.22 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002887/0.145, allocations: 335.9 kB / 298 MB, free: 24.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.145, allocations: 1.344 kB / 298 MB, free: 24.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005016/0.1455, allocations: 187.8 kB / 298.2 MB, free: 24.09 MB / 266.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.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.0002177/0.1457, allocations: 156.4 kB / 298.3 MB, free: 24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006838/0.1464, allocations: 0.5327 MB / 298.9 MB, free: 23.81 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1464, allocations: 1.312 kB / 298.9 MB, free: 23.81 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004125/0.1468, allocations: 470.7 kB / 299.3 MB, free: 23.55 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.1472, allocations: 79.12 kB / 299.4 MB, free: 23.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001815/0.149, allocations: 1.272 MB / 300.7 MB, free: 22.81 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001012/0.1491, allocations: 143.9 kB / 300.8 MB, free: 22.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001762/0.1493, allocations: 68.5 kB / 300.9 MB, free: 22.72 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.1494, allocations: 49.34 kB / 300.9 MB, free: 22.71 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.1494, allocations: 0 / 300.9 MB, free: 22.71 MB / 266.7 MB Notification: Performance of Templates: time 0.01131/0.1607, allocations: 9.707 MB / 310.6 MB, free: 17.82 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 240] 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","",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.0599699555896223]