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.001135/0.001135, allocations: 83.89 kB / 21.19 MB, free: 3.383 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.0009947/0.0009947, allocations: 141.1 kB / 24.54 MB, free: 32 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.8988/0.8988, allocations: 173.4 MB / 201.1 MB, free: 9.336 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.773e-06/1.773e-06, allocations: 3.938 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.789e-05/1.967e-05, allocations: 5.969 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00565/0.005669, allocations: 4.345 MB / 272.3 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002769/0.008438, allocations: 1.559 MB / 273.9 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003126/0.008751, allocations: 11.94 kB / 273.9 MB, free: 496 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003649/0.009115, allocations: 130.7 kB / 274 MB, free: 364 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008745/0.00999, allocations: 377.5 kB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004029/0.01039, allocations: 223.6 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008091/0.0112, allocations: 1.009 MB / 275.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.01142, allocations: 154 kB / 275.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004936/0.01192, allocations: 0.5613 MB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003294/0.01225, allocations: 335.1 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.919e-05/0.01234, allocations: 92 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002448/0.01258, allocations: 215.9 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.01269, allocations: 199.3 kB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001878/0.01287, allocations: 291.3 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006367/0.01351, allocations: 0.7085 MB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.215e-06/0.01351, allocations: 0 / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.01351, allocations: 0 / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.01352, allocations: 0 / 278.2 MB, free: 12.21 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.001359/0.01488, allocations: 1.127 MB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.01491, allocations: 12.92 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.01506, allocations: 124.4 kB / 279.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004461/0.0155, allocations: 442.2 kB / 279.9 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.888e-05/0.01559, allocations: 123 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.01571, allocations: 72.69 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006077/0.01632, allocations: 0.5701 MB / 280.6 MB, free: 9.625 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.01634, allocations: 7.875 kB / 280.6 MB, free: 9.617 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.529e-05/0.01637, allocations: 20 kB / 280.6 MB, free: 9.598 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.01638, allocations: 16 kB / 280.7 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004128/0.0168, allocations: 279.6 kB / 280.9 MB, free: 9.309 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.01873, allocations: 2.042 MB / 283 MB, free: 7.176 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004093/0.01914, allocations: 316.8 kB / 283.3 MB, free: 6.844 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002112/0.01935, allocations: 155.8 kB / 283.4 MB, free: 6.684 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.01937, allocations: 15.98 kB / 283.5 MB, free: 6.668 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.01939, allocations: 41.39 kB / 283.5 MB, free: 6.617 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.593e-06/0.0194, allocations: 0 / 283.5 MB, free: 6.617 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.005198/0.02459, allocations: 2.458 MB / 286 MB, free: 4.113 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.02463, allocations: 85.55 kB / 286 MB, free: 4.012 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003777/0.02501, allocations: 490.6 kB / 286.5 MB, free: 3.516 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.098e-05/0.02505, allocations: 37.7 kB / 286.6 MB, free: 3.473 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.02521, allocations: 371.5 kB / 286.9 MB, free: 3.105 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.02532, allocations: 222 kB / 287.1 MB, free: 2.887 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.02545, allocations: 123.9 kB / 287.3 MB, free: 2.758 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.02559, allocations: 0.543 MB / 287.8 MB, free: 2.203 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001812/0.02577, allocations: 101.2 kB / 287.9 MB, free: 2.105 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000232/0.02601, allocations: 235.7 kB / 288.1 MB, free: 1.828 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004371/0.02644, allocations: 380.8 kB / 288.5 MB, free: 1.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.02645, allocations: 0 / 288.5 MB, free: 1.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0006312/0.02708, allocations: 0.4925 MB / 289 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.02709, allocations: 4.312 kB / 289 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.0271, allocations: 8 kB / 289 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001597/0.02726, allocations: 47.58 kB / 289 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003855/0.02764, allocations: 167.8 kB / 289.2 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1047/0.1324, allocations: 1.765 MB / 291 MB, free: 27.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004671/0.1328, allocations: 31.81 kB / 291 MB, free: 27.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.778e-05/0.1329, allocations: 24.75 kB / 291 MB, free: 27.3 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.0001856/0.133, allocations: 197 kB / 291.2 MB, free: 27.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.1332, allocations: 81.55 kB / 291.3 MB, free: 27.14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008119/0.134, allocations: 0.5486 MB / 291.9 MB, free: 27.08 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.134, allocations: 6.406 kB / 291.9 MB, free: 27.08 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-06/0.134, allocations: 1.219 kB / 291.9 MB, free: 27.08 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.134, allocations: 4.922 kB / 291.9 MB, free: 27.08 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001801/0.1358, allocations: 1.27 MB / 293.1 MB, free: 26.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/0.1358, allocations: 4.5 kB / 293.1 MB, free: 26.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/0.1361, allocations: 106.8 kB / 293.2 MB, free: 26.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009728/0.1371, allocations: 342.7 kB / 293.6 MB, free: 26.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.609e-05/0.1371, allocations: 12.41 kB / 293.6 MB, free: 26.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002129/0.1392, allocations: 2.815 MB / 296.4 MB, free: 24.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1392, allocations: 0 / 296.4 MB, free: 24.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.1404, allocations: 0.9727 MB / 297.4 MB, free: 24.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.1406, allocations: 130.5 kB / 297.5 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.168e-05/0.1406, allocations: 15.88 kB / 297.5 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002591/0.1409, allocations: 36.83 kB / 297.6 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.141, allocations: 50.09 kB / 297.6 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.141, allocations: 18.22 kB / 297.6 MB, free: 24.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002574/0.1413, allocations: 336.3 kB / 298 MB, free: 24.3 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1413, allocations: 3.469 kB / 298 MB, free: 24.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004921/0.1418, allocations: 190 kB / 298.1 MB, free: 24.3 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.0002179/0.142, allocations: 160 kB / 298.3 MB, free: 24.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006632/0.1427, allocations: 0.5354 MB / 298.8 MB, free: 23.97 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1427, allocations: 3.906 kB / 298.8 MB, free: 23.97 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004079/0.1431, allocations: 466.2 kB / 299.3 MB, free: 23.7 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00039/0.1435, allocations: 82.53 kB / 299.4 MB, free: 23.67 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.1452, allocations: 1.264 MB / 300.6 MB, free: 22.97 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.934e-05/0.1453, allocations: 144.7 kB / 300.8 MB, free: 22.89 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001829/0.1455, allocations: 72.77 kB / 300.8 MB, free: 22.87 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.1456, allocations: 56.83 kB / 300.9 MB, free: 22.86 MB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/0.1456, allocations: 0 / 300.9 MB, free: 22.86 MB / 266.7 MB Notification: Performance of Templates: time 0.01095/0.1565, allocations: 10.06 MB / 311 MB, free: 17.62 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: 2.8114635720849037]