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.0007908/0.0007908, allocations: 80.06 kB / 21.19 MB, free: 3.379 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.0008755/0.0008755, allocations: 145.1 kB / 24.54 MB, free: 28 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.9338/0.9338, 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.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.502e-06/1.502e-06, allocations: 0 / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.018e-05/2.168e-05, allocations: 2.312 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.008959/0.008981, allocations: 10.89 MB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006268/0.01525, allocations: 3.623 MB / 282.5 MB, free: 7.859 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001727/0.01698, allocations: 43.75 kB / 282.5 MB, free: 7.816 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1222/0.1392, allocations: 8.146 MB / 290.7 MB, free: 18.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006136/0.1453, allocations: 4.698 MB / 295.4 MB, free: 18.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001974/0.1473, allocations: 0.9541 MB / 296.3 MB, free: 18.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008213/0.1555, allocations: 5.41 MB / 301.7 MB, free: 17.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001138/0.1566, allocations: 0.5509 MB / 302.3 MB, free: 17.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006987/0.1636, allocations: 3.559 MB / 305.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006115/0.1697, allocations: 5.456 MB / 311.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001156/0.1709, allocations: 344 kB / 311.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009719/0.1719, allocations: 376.8 kB / 312 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008355/0.1727, allocations: 1.911 MB / 313.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00136/0.1741, allocations: 1.401 MB / 315.3 MB, free: 8.891 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00325/0.1773, allocations: 4.345 MB / 319.7 MB, free: 4.824 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.014e-06/0.1773, allocations: 0.8125 kB / 319.7 MB, free: 4.824 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.1773, allocations: 0 / 319.7 MB, free: 4.824 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001069/0.1774, allocations: 0 / 319.7 MB, free: 4.824 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: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.006598/0.184, allocations: 8.254 MB / 327.9 MB, free: 12.5 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.1841, allocations: 8.922 kB / 327.9 MB, free: 12.49 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009312/0.185, allocations: 1.054 MB / 329 MB, free: 11.43 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002509/0.1875, allocations: 3.1 MB / 332.1 MB, free: 8.52 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.1876, allocations: 160.5 kB / 332.2 MB, free: 8.359 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002096/0.1878, allocations: 212.3 kB / 332.5 MB, free: 8.152 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/0.1901, allocations: 1.648 MB / 334.1 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.52e-05/0.1902, allocations: 7.984 kB / 334.1 MB, free: 6.395 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.1903, allocations: 87.94 kB / 334.2 MB, free: 6.309 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.325e-05/0.1903, allocations: 56 kB / 334.3 MB, free: 6.254 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001663/0.192, allocations: 0.9344 MB / 335.2 MB, free: 5.316 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01092/0.2029, allocations: 7.878 MB / 343.1 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002094/0.205, allocations: 1.501 MB / 344.6 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001299/0.2063, allocations: 0.9339 MB / 345.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001018/0.2064, allocations: 46.31 kB / 345.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00111/0.2075, allocations: 0.9592 MB / 346.5 MB, free: 9.957 MB / 298.7 MB Notification: Performance of pre-optimization done (n=242): time 6.232e-06/0.2075, allocations: 4 kB / 346.5 MB, free: 9.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=367): time 0.03149/0.239, allocations: 18.61 MB / 365.1 MB, free: 7.355 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01529/0.2543, allocations: 10.94 MB / 376.1 MB, free: 12.17 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008156/0.2625, allocations: 9.686 MB / 385.7 MB, free: 2.543 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004711/0.2629, allocations: 89.7 kB / 385.8 MB, free: 2.449 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002965/0.2659, allocations: 3.985 MB / 389.8 MB, free: 14.51 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001061/0.267, allocations: 1.256 MB / 391.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006158/0.2676, allocations: 0.5309 MB / 391.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.062e-05/0.2677, allocations: 480.7 kB / 392.1 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.2687, allocations: 0.5844 MB / 392.7 MB, free: 11.67 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00157/0.2703, allocations: 1.15 MB / 393.8 MB, free: 10.38 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002365/0.2727, allocations: 1.772 MB / 395.6 MB, free: 8.535 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.2727, allocations: 0 / 395.6 MB, free: 8.535 MB / 346.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.005863/0.2785, allocations: 3.907 MB / 399.5 MB, free: 4.668 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.2786, allocations: 4.625 kB / 399.5 MB, free: 4.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.2786, allocations: 8 kB / 399.5 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005195/0.2838, allocations: 1.881 MB / 401.4 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.2852, allocations: 0.5251 MB / 401.9 MB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01779/0.303, allocations: 23.47 MB / 425.4 MB, free: 9.805 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0019/0.3049, allocations: 127.9 kB / 425.5 MB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001636/0.305, allocations: 108 kB / 425.6 MB, free: 9.574 MB / 378.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,simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.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,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,4,100.0%), (1,3,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.001148/0.3062, allocations: 334.4 kB / 425.9 MB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00079/0.307, allocations: 0.9669 MB / 426.9 MB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005601/0.3126, allocations: 3.711 MB / 430.6 MB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.238e-05/0.3126, allocations: 36 kB / 430.6 MB, free: 4.531 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.213e-05/0.3126, allocations: 8 kB / 430.6 MB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.263e-05/0.3126, allocations: 19.92 kB / 430.7 MB, free: 4.504 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1356/0.4482, allocations: 9.043 MB / 439.7 MB, free: 115 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.4482, allocations: 3.016 kB / 439.7 MB, free: 115 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001363/0.4496, allocations: 455.8 kB / 440.2 MB, free: 115 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005217/0.4548, allocations: 1.835 MB / 442 MB, free: 114.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002618/0.4551, allocations: 81.23 kB / 442.1 MB, free: 114.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01241/0.4675, allocations: 21.77 MB / 463.8 MB, free: 98.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01203/0.4795, allocations: 9.707 MB / 473.5 MB, free: 93.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007377/0.4869, allocations: 4.819 MB / 478.4 MB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008966/0.4878, allocations: 0.7161 MB / 479.1 MB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004014/0.4882, allocations: 64 kB / 479.1 MB, free: 91.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000987/0.4892, allocations: 102.5 kB / 479.2 MB, free: 91.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000572/0.4897, allocations: 288.7 kB / 479.5 MB, free: 91.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/0.4899, allocations: 94.98 kB / 479.6 MB, free: 91.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005098/0.495, allocations: 6.001 MB / 485.6 MB, free: 86.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.495, allocations: 0 / 485.6 MB, free: 86.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002498/0.4975, allocations: 1.077 MB / 486.7 MB, free: 85.27 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.001016/0.4985, allocations: 490.5 kB / 487.2 MB, free: 85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003769/0.5022, allocations: 4.037 MB / 491.2 MB, free: 80.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.5022, allocations: 0 / 491.2 MB, free: 80.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002382/0.5046, allocations: 3.176 MB / 494.4 MB, free: 77.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/0.5065, allocations: 0.5621 MB / 495 MB, free: 76.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/0.5187, allocations: 13.66 MB / 0.4967 GB, free: 63.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.5198, allocations: 1.553 MB / 0.4982 GB, free: 61.63 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001214/0.521, allocations: 308.8 kB / 0.4985 GB, free: 61.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004715/0.5215, allocations: 172.4 kB / 0.4987 GB, free: 61.16 MB / 378.7 MB Notification: Performance of SimCode: time 2.265e-06/0.5215, allocations: 0 / 0.4987 GB, free: 61.16 MB / 378.7 MB Notification: Performance of Templates: time 0.09173/0.6132, allocations: 68.52 MB / 0.5656 GB, free: 9.121 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: 5.992578072939068]