Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.00093/0.00093, allocations: 77.97 kB / 21.42 MB, free: 3.066 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.001057/0.001057, allocations: 166.3 kB / 24.82 MB, free: 9.312 MB / 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 0.9366/0.9366, allocations: 177.1 MB / 205.3 MB, free: 5.52 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.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.1.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.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.122e-06/1.122e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.037e-05/1.149e-05, allocations: 5.688 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003696/0.003707, allocations: 4.271 MB / 277.7 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002029/0.005736, allocations: 1.601 MB / 279.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002654/0.006001, allocations: 15.94 kB / 279.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002529/0.006254, allocations: 122.8 kB / 279.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006077/0.006862, allocations: 385.2 kB / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.007203, allocations: 251.5 kB / 280 MB, free: 10.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000749/0.007952, allocations: 1.005 MB / 281 MB, free: 9.641 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.008162, allocations: 158.1 kB / 281.2 MB, free: 9.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006329/0.008795, allocations: 0.5612 MB / 281.8 MB, free: 8.918 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003408/0.009135, allocations: 343.1 kB / 282.1 MB, free: 8.582 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.038e-05/0.009226, allocations: 96 kB / 282.2 MB, free: 8.488 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002903/0.009516, allocations: 203.9 kB / 282.4 MB, free: 8.289 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.009627, allocations: 203.3 kB / 282.6 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.009825, allocations: 291.3 kB / 282.9 MB, free: 7.805 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000643/0.01047, allocations: 0.7047 MB / 283.6 MB, free: 7.098 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.543e-06/0.01047, allocations: 0 / 283.6 MB, free: 7.098 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.01047, allocations: 0 / 283.6 MB, free: 7.098 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.864e-06/0.01048, allocations: 3.938 kB / 283.6 MB, free: 7.094 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.001318/0.0118, allocations: 1.15 MB / 284.7 MB, free: 5.906 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.01183, allocations: 8.031 kB / 284.7 MB, free: 5.898 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001879/0.01201, allocations: 136.5 kB / 284.9 MB, free: 5.766 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003993/0.01241, allocations: 422.2 kB / 285.3 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.851e-05/0.01249, allocations: 123 kB / 285.4 MB, free: 5.188 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.0126, allocations: 68.67 kB / 285.5 MB, free: 5.121 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000491/0.01309, allocations: 0.5504 MB / 286 MB, free: 4.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.01311, allocations: 3.938 kB / 286 MB, free: 4.516 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.068e-05/0.01314, allocations: 20 kB / 286 MB, free: 4.496 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.01315, allocations: 12 kB / 286 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/0.01343, allocations: 226.1 kB / 286.3 MB, free: 4.262 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.0152, allocations: 1.98 MB / 288.2 MB, free: 2.199 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003301/0.01553, allocations: 278.5 kB / 288.5 MB, free: 1.898 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.01568, allocations: 139.7 kB / 288.7 MB, free: 1.754 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.0157, allocations: 8 kB / 288.7 MB, free: 1.746 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.01573, allocations: 46.11 kB / 288.7 MB, free: 1.691 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.583e-06/0.01573, allocations: 0 / 288.7 MB, free: 1.691 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.1033/0.119, allocations: 2.205 MB / 290.9 MB, free: 25.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.327e-05/0.119, allocations: 87.03 kB / 291 MB, free: 24.99 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003575/0.1194, allocations: 479.7 kB / 291.5 MB, free: 24.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.1194, allocations: 36.08 kB / 291.5 MB, free: 24.79 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.1196, allocations: 382.9 kB / 291.9 MB, free: 24.64 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.111e-05/0.1196, allocations: 220.4 kB / 292.1 MB, free: 24.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.1198, allocations: 122.8 kB / 292.2 MB, free: 24.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.14e-05/0.1199, allocations: 0.5438 MB / 292.8 MB, free: 24 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.12, allocations: 80.03 kB / 292.8 MB, free: 24 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/0.1202, allocations: 211.2 kB / 293 MB, free: 23.86 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/0.1205, allocations: 332.8 kB / 293.4 MB, free: 23.72 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1205, allocations: 1.125 kB / 293.4 MB, free: 23.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.000579/0.1211, allocations: 461.1 kB / 293.8 MB, free: 23.63 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.1211, allocations: 6.438 kB / 293.8 MB, free: 23.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1211, allocations: 4.062 kB / 293.8 MB, free: 23.63 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001822/0.1213, allocations: 53.69 kB / 293.9 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004065/0.1217, allocations: 163.4 kB / 294 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005676/0.1223, allocations: 1.737 MB / 295.8 MB, free: 21.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.1225, allocations: 33.41 kB / 295.8 MB, free: 21.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.1225, allocations: 30.06 kB / 295.8 MB, free: 21.91 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.0001293/0.1227, allocations: 185.5 kB / 296 MB, free: 21.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-05/0.1228, allocations: 78.41 kB / 296.1 MB, free: 21.72 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006406/0.1234, allocations: 0.4986 MB / 296.6 MB, free: 21.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.1234, allocations: 12.22 kB / 296.6 MB, free: 21.65 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.1234, allocations: 0 / 296.6 MB, free: 21.65 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/0.1234, allocations: 8.484 kB / 296.6 MB, free: 21.65 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.125, allocations: 1.155 MB / 297.8 MB, free: 21.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.125, allocations: 0 / 297.8 MB, free: 21.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000257/0.1252, allocations: 102.7 kB / 297.9 MB, free: 21.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009045/0.1261, allocations: 333.8 kB / 298.2 MB, free: 21.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.339e-05/0.1262, allocations: 16.25 kB / 298.2 MB, free: 21.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001919/0.1281, allocations: 2.743 MB / 301 MB, free: 19.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1281, allocations: 2.562 kB / 301 MB, free: 19.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.1291, allocations: 0.9034 MB / 301.9 MB, free: 18.9 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.1293, allocations: 130.7 kB / 302 MB, free: 18.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.451e-05/0.1294, allocations: 11.12 kB / 302 MB, free: 18.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002471/0.1296, allocations: 37.2 kB / 302 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.764e-05/0.1297, allocations: 55.45 kB / 302.1 MB, free: 18.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.1297, allocations: 14.45 kB / 302.1 MB, free: 18.78 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000198/0.1299, allocations: 312.8 kB / 302.4 MB, free: 18.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1299, allocations: 0 / 302.4 MB, free: 18.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005148/0.1304, allocations: 186.8 kB / 302.6 MB, free: 18.62 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.0002128/0.1307, allocations: 154.1 kB / 302.7 MB, free: 18.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005726/0.1312, allocations: 0.4895 MB / 303.2 MB, free: 18.32 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1312, allocations: 0 / 303.2 MB, free: 18.32 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003755/0.1316, allocations: 448 kB / 303.7 MB, free: 18.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.132, allocations: 80.25 kB / 303.7 MB, free: 18.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.1336, allocations: 1.27 MB / 305 MB, free: 17.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.728e-05/0.1337, allocations: 144.1 kB / 305.2 MB, free: 17.27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001957/0.1339, allocations: 68.19 kB / 305.2 MB, free: 17.25 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.1342, allocations: 175.7 kB / 305.4 MB, free: 17.18 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.1342, allocations: 0 / 305.4 MB, free: 17.18 MB / 266.7 MB Notification: Performance of Templates: time 0.01131/0.1455, allocations: 10.27 MB / 315.7 MB, free: 10.14 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.7438609492965043]