Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.0009592/0.0009592, allocations: 79.91 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.001263/0.001263, 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.9546/0.9546, allocations: 173.3 MB / 201.1 MB, free: 9.316 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.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 3.938 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.365e-05/1.501e-05, allocations: 10.25 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.002927/0.002942, allocations: 2.85 MB / 270.8 MB, free: 3.551 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.004384, allocations: 1.199 MB / 272 MB, free: 2.344 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.004513, allocations: 7.938 kB / 272.1 MB, free: 2.336 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002162/0.004729, allocations: 67.36 kB / 272.1 MB, free: 2.27 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004145/0.005143, allocations: 230.6 kB / 272.3 MB, free: 2.043 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001801/0.005324, allocations: 119.7 kB / 272.5 MB, free: 1.926 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003337/0.005657, allocations: 478.9 kB / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.005769, allocations: 52.91 kB / 273 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002413/0.00601, allocations: 279.4 kB / 273.3 MB, free: 1.129 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.006196, allocations: 171.5 kB / 273.4 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.006241, allocations: 40 kB / 273.5 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001901/0.006432, allocations: 155.9 kB / 273.6 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.489e-05/0.006486, allocations: 91.7 kB / 273.7 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.361e-05/0.00658, allocations: 135.6 kB / 273.8 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003664/0.006946, allocations: 390.6 kB / 274.2 MB, free: 168 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.006949, allocations: 7.984 kB / 274.2 MB, free: 160 kB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.00695, allocations: 4 kB / 274.2 MB, free: 156 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.006955, allocations: 0 / 274.2 MB, free: 156 kB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0009393/0.007894, allocations: 0.7219 MB / 274.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.007927, allocations: 12.92 kB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.873e-05/0.008016, allocations: 60.7 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000516/0.008532, allocations: 260.8 kB / 275.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.178e-05/0.008614, allocations: 102.3 kB / 275.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.653e-05/0.00871, allocations: 36.73 kB / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003438/0.009054, allocations: 305 kB / 275.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.009066, allocations: 3.938 kB / 275.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.266e-05/0.009089, allocations: 12 kB / 275.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.009097, allocations: 4 kB / 275.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002475/0.009344, allocations: 170.8 kB / 275.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.01038, allocations: 1.086 MB / 277 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002588/0.01064, allocations: 206 kB / 277.2 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.01076, allocations: 99.27 kB / 277.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.01078, allocations: 12 kB / 277.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.0108, allocations: 41.39 kB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=31): time 1.553e-06/0.0108, allocations: 0 / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.003991/0.01479, allocations: 1.815 MB / 279.1 MB, free: 10.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/0.01482, allocations: 85.05 kB / 279.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/0.01502, allocations: 312.2 kB / 279.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.01505, allocations: 29.7 kB / 279.6 MB, free: 10.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.745e-05/0.01514, allocations: 223.4 kB / 279.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.796e-05/0.01523, allocations: 150.7 kB / 279.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.926e-05/0.01533, allocations: 87.81 kB / 280 MB, free: 10.04 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.01545, allocations: 0.5079 MB / 280.5 MB, free: 9.523 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.01558, allocations: 72.94 kB / 280.6 MB, free: 9.453 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.01574, allocations: 163 kB / 280.8 MB, free: 9.266 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.01604, allocations: 255.6 kB / 281 MB, free: 8.988 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.01604, allocations: 0 / 281 MB, free: 8.988 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000417/0.01646, allocations: 332.7 kB / 281.3 MB, free: 8.656 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.01647, allocations: 14.91 kB / 281.3 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.01648, allocations: 0 / 281.3 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.01649, allocations: 4 kB / 281.3 MB, free: 8.641 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002942/0.01679, allocations: 120 kB / 281.5 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.01679, allocations: 7.984 kB / 281.5 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.01695, allocations: 24 kB / 281.5 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.464e-05/0.01697, allocations: 19.98 kB / 281.5 MB, free: 8.473 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (52): * Single equations (assignments): 52 * 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.0001107/0.01708, allocations: 172.5 kB / 281.7 MB, free: 8.293 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.721e-05/0.01716, allocations: 51.75 kB / 281.7 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001084/0.01824, allocations: 476.7 kB / 282.2 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.01825, allocations: 7.938 kB / 282.2 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.01825, allocations: 0 / 282.2 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.01826, allocations: 3.984 kB / 282.2 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001395/0.01965, allocations: 0.951 MB / 283.2 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.01966, allocations: 3.938 kB / 283.2 MB, free: 6.754 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/0.01988, allocations: 87.89 kB / 283.3 MB, free: 6.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006861/0.02056, allocations: 223.3 kB / 283.5 MB, free: 6.445 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.107e-05/0.02059, allocations: 15.98 kB / 283.5 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001879/0.02247, allocations: 2.423 MB / 285.9 MB, free: 3.887 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.02247, allocations: 0 / 285.9 MB, free: 3.887 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000938/0.02341, allocations: 0.8097 MB / 286.7 MB, free: 3.051 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.441e-05/0.02351, allocations: 67.75 kB / 286.8 MB, free: 2.984 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.443e-05/0.02354, allocations: 12 kB / 286.8 MB, free: 2.973 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.02373, allocations: 31.92 kB / 286.8 MB, free: 2.941 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.19e-05/0.02381, allocations: 36.42 kB / 286.9 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.02383, allocations: 12 kB / 286.9 MB, free: 2.895 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001237/0.02395, allocations: 221.1 kB / 287.1 MB, free: 2.68 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02395, allocations: 0 / 287.1 MB, free: 2.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003471/0.0243, allocations: 119.9 kB / 287.2 MB, free: 2.562 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * 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 (40): * Single equations (assignments): 39 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000188/0.02449, allocations: 139.1 kB / 287.3 MB, free: 2.418 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000374/0.02486, allocations: 271.7 kB / 287.6 MB, free: 2.145 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.02486, allocations: 0 / 287.6 MB, free: 2.145 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003475/0.02521, allocations: 361.1 kB / 288 MB, free: 1.773 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.02551, allocations: 52.92 kB / 288 MB, free: 1.723 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.02666, allocations: 0.8165 MB / 288.8 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.745e-05/0.02673, allocations: 106.6 kB / 288.9 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.02684, allocations: 42.95 kB / 289 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.938e-05/0.02694, allocations: 32.48 kB / 289 MB, free: 0.668 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02694, allocations: 0 / 289 MB, free: 0.668 MB / 266.7 MB Notification: Performance of Templates: time 0.1337/0.1606, allocations: 6.59 MB / 295.6 MB, free: 28.08 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.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.792341616936028]