Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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.001262/0.001262, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001417/0.001417, allocations: 145.8 kB / 25.59 MB, free: 8.605 MB / 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.9663/0.9663, allocations: 173.4 MB / 202.2 MB, free: 8.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.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5545,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5545,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.69e-05/1.831e-05, allocations: 2.312 kB / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.00783/0.007848, allocations: 10.55 MB / 279.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003827/0.01168, allocations: 3.62 MB / 283.4 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005357/0.01221, allocations: 43.81 kB / 283.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005726/0.01794, allocations: 8.153 MB / 291.6 MB, free: 3.344 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00375/0.02169, allocations: 4.689 MB / 296.2 MB, free: 14.64 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001196/0.02288, allocations: 0.9632 MB / 297.2 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003533/0.02642, allocations: 5.4 MB / 302.6 MB, free: 8.258 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006576/0.02707, allocations: 0.5473 MB / 303.2 MB, free: 7.68 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002533/0.02961, allocations: 3.552 MB / 306.7 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003624/0.03323, allocations: 5.464 MB / 312.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000318/0.03355, allocations: 344 kB / 312.5 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003878/0.03394, allocations: 379.9 kB / 312.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008293/0.03477, allocations: 1.908 MB / 314.8 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008394/0.03561, allocations: 1.408 MB / 316.2 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00284/0.03845, allocations: 4.346 MB / 320.5 MB, free: 6.234 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.03845, allocations: 4 kB / 320.5 MB, free: 6.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.123e-06/0.03845, allocations: 3.938 kB / 320.5 MB, free: 6.227 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.706e-05/0.03849, allocations: 0 / 320.5 MB, free: 6.227 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.006393/0.04488, allocations: 8.334 MB / 328.9 MB, free: 13.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.04492, allocations: 8.031 kB / 328.9 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007088/0.04562, allocations: 1.061 MB / 330 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00235/0.04797, allocations: 3.078 MB / 333 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.921e-05/0.04806, allocations: 160.5 kB / 333.2 MB, free: 9.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001982/0.04826, allocations: 212.3 kB / 333.4 MB, free: 9.223 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.04985, allocations: 1.513 MB / 334.9 MB, free: 7.605 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.793e-05/0.04989, allocations: 7.922 kB / 334.9 MB, free: 7.598 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/0.05001, allocations: 84 kB / 335 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.742e-05/0.05004, allocations: 55.94 kB / 335.1 MB, free: 7.461 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009374/0.05097, allocations: 0.7207 MB / 335.8 MB, free: 6.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00889/0.05986, allocations: 6.494 MB / 342.3 MB, free: 128 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1354/0.1953, allocations: 1.352 MB / 343.6 MB, free: 56.31 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.1968, allocations: 0.8354 MB / 344.5 MB, free: 56.26 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001151/0.1969, allocations: 51.94 kB / 344.5 MB, free: 56.26 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/0.1981, allocations: 0.8879 MB / 345.4 MB, free: 55.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=242): time 1.387e-05/0.1981, allocations: 3.328 kB / 345.4 MB, free: 55.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=367): time 0.02992/0.228, allocations: 13.17 MB / 358.6 MB, free: 54.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0133/0.2413, allocations: 10.56 MB / 369.1 MB, free: 46.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006678/0.248, allocations: 9.335 MB / 378.5 MB, free: 38.06 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005692/0.2486, allocations: 89.73 kB / 378.5 MB, free: 37.96 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002178/0.2508, allocations: 4.272 MB / 382.8 MB, free: 34.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009332/0.2517, allocations: 1.265 MB / 384.1 MB, free: 33.13 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000592/0.2523, allocations: 0.5305 MB / 384.6 MB, free: 32.65 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.708e-05/0.2523, allocations: 480.7 kB / 385.1 MB, free: 32.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008554/0.2532, allocations: 0.5173 MB / 385.6 MB, free: 31.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009511/0.2541, allocations: 1.086 MB / 386.7 MB, free: 30.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.2557, allocations: 1.568 MB / 388.3 MB, free: 28.94 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.2557, allocations: 0 / 388.3 MB, free: 28.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.004722/0.2605, allocations: 3.656 MB / 391.9 MB, free: 25.35 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.2605, allocations: 4.625 kB / 391.9 MB, free: 25.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.2605, allocations: 8 kB / 391.9 MB, free: 25.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004363/0.2649, allocations: 1.84 MB / 393.8 MB, free: 23.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/0.2663, allocations: 0.5291 MB / 394.3 MB, free: 22.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01291/0.2792, allocations: 22.84 MB / 417.1 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002397/0.2816, allocations: 118.5 kB / 417.3 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002284/0.2819, allocations: 87.97 kB / 417.3 MB, free: 15.3 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (309): * Single equations (assignments): 300 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,4,100.0%), (1,3,100.0%), (1,5,100.0%), (1,4,100.0%), (1,3,100.0%), (1,3,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,50), (2,43)} Notification: Performance of prepare postOptimizeDAE: time 0.001217/0.2831, allocations: 343.5 kB / 417.7 MB, free: 14.99 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/0.2842, allocations: 0.963 MB / 418.6 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006478/0.2906, allocations: 3.418 MB / 422.1 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.943e-05/0.2907, allocations: 43.98 kB / 422.1 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/0.2907, allocations: 4 kB / 422.1 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.757e-05/0.2907, allocations: 15.94 kB / 422.1 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01301/0.3037, allocations: 7.471 MB / 429.6 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.3037, allocations: 12.02 kB / 429.6 MB, free: 3.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001563/0.3053, allocations: 446.2 kB / 430 MB, free: 3.246 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005871/0.3112, allocations: 1.804 MB / 431.8 MB, free: 1.43 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002702/0.3114, allocations: 75.97 kB / 431.9 MB, free: 1.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02057/0.332, allocations: 21.22 MB / 453.1 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01264/0.3446, allocations: 9.357 MB / 462.5 MB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006727/0.3514, allocations: 4.387 MB / 466.9 MB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/0.3528, allocations: 0.7089 MB / 467.6 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004253/0.3532, allocations: 71.95 kB / 467.7 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.3543, allocations: 99.89 kB / 467.8 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005321/0.3548, allocations: 283.2 kB / 468 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/0.3549, allocations: 71.97 kB / 468.1 MB, free: 12.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004408/0.3593, allocations: 5.351 MB / 473.5 MB, free: 7.402 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3593, allocations: 4 kB / 473.5 MB, free: 7.398 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003235/0.3626, allocations: 1.078 MB / 474.5 MB, free: 6.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (256): * Single equations (assignments): 245 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001067/0.3636, allocations: 499.9 kB / 475 MB, free: 5.984 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004061/0.3677, allocations: 3.794 MB / 478.8 MB, free: 2.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3677, allocations: 4 kB / 478.8 MB, free: 2.016 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002691/0.3704, allocations: 3.062 MB / 481.9 MB, free: 14.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002259/0.3726, allocations: 0.5502 MB / 482.4 MB, free: 14.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/0.3882, allocations: 13.44 MB / 495.9 MB, free: 0.668 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1162/0.5045, allocations: 1.56 MB / 497.4 MB, free: 127.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00135/0.5058, allocations: 298.5 kB / 497.7 MB, free: 127.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.5069, allocations: 0.5076 MB / 498.2 MB, free: 127.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.743e-06/0.5069, allocations: 0 / 498.2 MB, free: 127.2 MB / 394.7 MB Notification: Performance of Templates: time 0.08202/0.5889, allocations: 71.21 MB / 0.5561 GB, free: 73.02 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.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: 6.155126484110951]