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.001219/0.001219, allocations: 80.8 kB / 21.49 MB, free: 2.988 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.001314/0.001314, allocations: 173.7 kB / 24.91 MB, free: 9.176 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.8552/0.8552, allocations: 177.1 MB / 205.3 MB, free: 5.48 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.302e-06/1.302e-06, allocations: 0 / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.097e-05/1.227e-05, allocations: 4.984 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00346/0.003472, allocations: 4.287 MB / 277.7 MB, free: 13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001897/0.00537, allocations: 1.651 MB / 279.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001915/0.005561, allocations: 11.94 kB / 279.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002485/0.00581, allocations: 130.8 kB / 279.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005423/0.006352, allocations: 377.3 kB / 279.9 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000278/0.00663, allocations: 239.6 kB / 280.1 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006278/0.007258, allocations: 1.013 MB / 281.1 MB, free: 9.574 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.007443, allocations: 164 kB / 281.3 MB, free: 9.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004598/0.007903, allocations: 0.5613 MB / 281.9 MB, free: 8.848 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003061/0.008209, allocations: 347.1 kB / 282.2 MB, free: 8.508 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.176e-05/0.008291, allocations: 96 kB / 282.3 MB, free: 8.414 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002211/0.008512, allocations: 207.9 kB / 282.5 MB, free: 8.211 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.008612, allocations: 199.3 kB / 282.7 MB, free: 8.016 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.008799, allocations: 291.3 kB / 283 MB, free: 7.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005306/0.009329, allocations: 0.7162 MB / 283.7 MB, free: 7.012 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.523e-06/0.009331, allocations: 0 / 283.7 MB, free: 7.012 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.009332, allocations: 0 / 283.7 MB, free: 7.012 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.009337, allocations: 3.938 kB / 283.7 MB, free: 7.008 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.001127/0.01046, allocations: 1.002 MB / 284.7 MB, free: 5.977 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.727e-05/0.01049, allocations: 12.03 kB / 284.7 MB, free: 5.965 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.01065, allocations: 108.8 kB / 284.8 MB, free: 5.859 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.011, allocations: 322.4 kB / 285.1 MB, free: 5.516 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.429e-05/0.01108, allocations: 134.9 kB / 285.3 MB, free: 5.367 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.01119, allocations: 68.69 kB / 285.3 MB, free: 5.301 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004406/0.01163, allocations: 0.5433 MB / 285.9 MB, free: 4.711 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.01165, allocations: 3.938 kB / 285.9 MB, free: 4.707 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.992e-05/0.01168, allocations: 20 kB / 285.9 MB, free: 4.688 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.01169, allocations: 16 kB / 285.9 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002545/0.01194, allocations: 198.2 kB / 286.1 MB, free: 4.477 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.01341, allocations: 1.482 MB / 287.6 MB, free: 2.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002727/0.01368, allocations: 241.3 kB / 287.8 MB, free: 2.668 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.01381, allocations: 118.1 kB / 287.9 MB, free: 2.547 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.01383, allocations: 8 kB / 287.9 MB, free: 2.539 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.01386, allocations: 43.22 kB / 288 MB, free: 2.488 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.572e-06/0.01386, allocations: 0 / 288 MB, free: 2.488 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.09199/0.1058, allocations: 2.495 MB / 290.5 MB, free: 24.78 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.44e-05/0.1059, allocations: 89 kB / 290.6 MB, free: 24.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003577/0.1062, allocations: 414.3 kB / 291 MB, free: 24.56 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.682e-05/0.1063, allocations: 38.44 kB / 291 MB, free: 24.53 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.482e-05/0.1064, allocations: 272.1 kB / 291.3 MB, free: 24.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.185e-05/0.1065, allocations: 219.2 kB / 291.5 MB, free: 24.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.1066, allocations: 115.6 kB / 291.6 MB, free: 24.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.348e-05/0.1067, allocations: 371.7 kB / 292 MB, free: 23.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.1068, allocations: 70.3 kB / 292 MB, free: 23.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.1069, allocations: 170.5 kB / 292.2 MB, free: 23.89 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.1072, allocations: 297.7 kB / 292.5 MB, free: 23.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1072, allocations: 2.594 kB / 292.5 MB, free: 23.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0004605/0.1077, allocations: 352.2 kB / 292.8 MB, free: 23.75 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.1077, allocations: 6.938 kB / 292.8 MB, free: 23.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1077, allocations: 1.469 kB / 292.8 MB, free: 23.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001663/0.1079, allocations: 42 kB / 292.9 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003821/0.1082, allocations: 163.7 kB / 293 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004295/0.1087, allocations: 1.188 MB / 294.2 MB, free: 22.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.1089, allocations: 31.36 kB / 294.3 MB, free: 22.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.631e-05/0.1089, allocations: 25.78 kB / 294.3 MB, free: 22.62 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.0001176/0.1091, allocations: 145.3 kB / 294.4 MB, free: 22.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.468e-05/0.1091, allocations: 54.73 kB / 294.5 MB, free: 22.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005337/0.1097, allocations: 437.6 kB / 294.9 MB, free: 22.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1097, allocations: 6.609 kB / 294.9 MB, free: 22.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.1097, allocations: 1.031 kB / 294.9 MB, free: 22.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.1097, allocations: 6.234 kB / 294.9 MB, free: 22.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001348/0.111, allocations: 0.892 MB / 295.8 MB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.111, allocations: 4.688 kB / 295.8 MB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002444/0.1113, allocations: 100.9 kB / 295.9 MB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008264/0.1121, allocations: 317.5 kB / 296.2 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.1121, allocations: 16.19 kB / 296.2 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001569/0.1137, allocations: 1.983 MB / 298.2 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1137, allocations: 2.016 kB / 298.2 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008358/0.1145, allocations: 0.7076 MB / 298.9 MB, free: 20.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.1147, allocations: 60.25 kB / 299 MB, free: 20.66 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.746e-05/0.1147, allocations: 21.97 kB / 299 MB, free: 20.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.1149, allocations: 34.59 kB / 299.1 MB, free: 20.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.678e-05/0.115, allocations: 50.86 kB / 299.1 MB, free: 20.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-05/0.1151, allocations: 14.81 kB / 299.1 MB, free: 20.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001676/0.1152, allocations: 188.8 kB / 299.3 MB, free: 20.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1152, allocations: 0 / 299.3 MB, free: 20.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004388/0.1157, allocations: 189 kB / 299.5 MB, free: 20.64 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.0001711/0.1158, allocations: 135.8 kB / 299.6 MB, free: 20.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00043/0.1163, allocations: 415.9 kB / 300 MB, free: 20.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.146e-06/0.1163, allocations: 5.125 kB / 300 MB, free: 20.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003078/0.1166, allocations: 366.8 kB / 300.4 MB, free: 20.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.1169, allocations: 78.03 kB / 300.5 MB, free: 20.29 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.1184, allocations: 1.194 MB / 301.7 MB, free: 19.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.144e-05/0.1185, allocations: 148.9 kB / 301.8 MB, free: 19.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001813/0.1187, allocations: 68.92 kB / 301.9 MB, free: 19.63 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.1189, allocations: 149.3 kB / 302 MB, free: 19.58 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1189, allocations: 0 / 302 MB, free: 19.58 MB / 266.7 MB Notification: Performance of Templates: time 0.01063/0.1295, allocations: 10.23 MB / 312.2 MB, free: 13.61 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.658244068734348]