Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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.00121/0.00121, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001266/0.001266, allocations: 168.8 kB / 24.99 MB, free: 8.801 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.9997/0.9997, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.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.1.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.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 273 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.718e-05/2.899e-05, allocations: 2.312 kB / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01276/0.01279, allocations: 11.12 MB / 284.2 MB, free: 6.676 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007969/0.02076, allocations: 3.846 MB / 288 MB, free: 2.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001899/0.02266, allocations: 43.81 kB / 288.1 MB, free: 2.777 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1234/0.146, allocations: 8.164 MB / 296.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005638/0.1517, allocations: 4.776 MB / 301 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001779/0.1534, allocations: 0.9285 MB / 301.9 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004895/0.1583, allocations: 5.51 MB / 307.4 MB, free: 10.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009182/0.1593, allocations: 0.5535 MB / 308 MB, free: 10.49 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003545/0.1628, allocations: 3.6 MB / 311.6 MB, free: 8.289 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003441/0.1662, allocations: 5.513 MB / 317.1 MB, free: 2.941 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005432/0.1668, allocations: 360 kB / 317.5 MB, free: 2.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004573/0.1672, allocations: 401.8 kB / 317.8 MB, free: 2.199 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006557/0.1679, allocations: 1.932 MB / 319.8 MB, free: 308 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001531/0.1694, allocations: 1.45 MB / 321.2 MB, free: 14.89 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003655/0.1731, allocations: 4.453 MB / 325.7 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1731, allocations: 2.75 kB / 325.7 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1731, allocations: 0 / 325.7 MB, free: 10.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001294/0.1732, allocations: 0 / 325.7 MB, free: 10.73 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.008142/0.1814, allocations: 8.401 MB / 334.1 MB, free: 2.262 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.1814, allocations: 12.03 kB / 334.1 MB, free: 2.25 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/0.1825, allocations: 1.108 MB / 335.2 MB, free: 1.137 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002674/0.1852, allocations: 3.223 MB / 338.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.1853, allocations: 160.2 kB / 338.6 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002185/0.1855, allocations: 208.6 kB / 338.8 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002547/0.1881, allocations: 1.649 MB / 340.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.75e-05/0.1881, allocations: 0 / 340.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001315/0.1883, allocations: 84 kB / 340.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.036e-05/0.1883, allocations: 57.08 kB / 340.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001616/0.1899, allocations: 0.9346 MB / 341.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009453/0.1994, allocations: 7.919 MB / 349.4 MB, free: 3.047 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002012/0.2014, allocations: 1.511 MB / 350.9 MB, free: 1.535 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/0.2027, allocations: 0.938 MB / 351.9 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.939e-05/0.2028, allocations: 50.31 kB / 351.9 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/0.2038, allocations: 0.953 MB / 352.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=246): time 4.158e-06/0.2038, allocations: 4 kB / 352.9 MB, free: 15.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=371): time 0.03293/0.2368, allocations: 18.38 MB / 371.3 MB, free: 13.14 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0164/0.2532, allocations: 11.02 MB / 382.3 MB, free: 1.871 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008555/0.2617, allocations: 9.805 MB / 392.1 MB, free: 8.137 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004738/0.2622, allocations: 85.7 kB / 392.2 MB, free: 8.047 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002502/0.2647, allocations: 4.039 MB / 396.2 MB, free: 4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009443/0.2657, allocations: 1.269 MB / 397.5 MB, free: 2.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006629/0.2663, allocations: 0.5271 MB / 398 MB, free: 2.211 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.927e-05/0.2664, allocations: 484.7 kB / 398.5 MB, free: 1.734 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/0.2678, allocations: 0.5877 MB / 399.1 MB, free: 1.148 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/0.2692, allocations: 1.147 MB / 400.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002436/0.2716, allocations: 1.777 MB / 402 MB, free: 14.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.2716, allocations: 0 / 402 MB, free: 14.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.006313/0.2779, allocations: 3.944 MB / 405.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.985e-05/0.278, allocations: 4 kB / 405.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.278, allocations: 8 kB / 405.9 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005204/0.2832, allocations: 1.908 MB / 407.9 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/0.2846, allocations: 0.5289 MB / 408.4 MB, free: 7.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1519/0.4365, allocations: 23.49 MB / 431.9 MB, free: 110.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002481/0.439, allocations: 109.3 kB / 432 MB, free: 110.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003461/0.4393, allocations: 113.4 kB / 432.1 MB, free: 110.9 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 (313): * Single equations (assignments): 304 * 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,3,100.0%), (1,4,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.001262/0.4406, allocations: 336.4 kB / 432.4 MB, free: 110.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/0.4416, allocations: 0.9827 MB / 433.4 MB, free: 110.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007618/0.4492, allocations: 3.739 MB / 437.1 MB, free: 110.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.582e-05/0.4493, allocations: 37.86 kB / 437.2 MB, free: 110.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.472e-05/0.4493, allocations: 9.156 kB / 437.2 MB, free: 110.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-05/0.4493, allocations: 19.62 kB / 437.2 MB, free: 110.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01452/0.4639, allocations: 9.117 MB / 446.3 MB, free: 109.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/0.4639, allocations: 0 / 446.3 MB, free: 109.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/0.4651, allocations: 455.8 kB / 446.8 MB, free: 109.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005086/0.4702, allocations: 1.864 MB / 448.6 MB, free: 109.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003415/0.4705, allocations: 79.2 kB / 448.7 MB, free: 109.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01322/0.4838, allocations: 21.8 MB / 470.5 MB, free: 92.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0128/0.4966, allocations: 9.775 MB / 480.3 MB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007171/0.5037, allocations: 4.841 MB / 485.1 MB, free: 79.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.5048, allocations: 0.7343 MB / 485.9 MB, free: 78.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003908/0.5052, allocations: 64 kB / 485.9 MB, free: 78.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.5062, allocations: 91.97 kB / 486 MB, free: 78.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005325/0.5068, allocations: 295.1 kB / 486.3 MB, free: 77.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/0.5069, allocations: 91.98 kB / 486.4 MB, free: 77.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005077/0.512, allocations: 6.078 MB / 492.5 MB, free: 71.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.512, allocations: 0 / 492.5 MB, free: 71.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00289/0.5149, allocations: 1.092 MB / 493.6 MB, free: 70.79 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 (260): * Single equations (assignments): 249 * 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.001054/0.5159, allocations: 497 kB / 494 MB, free: 70.49 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00406/0.52, allocations: 4.038 MB / 498.1 MB, free: 66.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.52, allocations: 0 / 498.1 MB, free: 66.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002484/0.5225, allocations: 3.172 MB / 0.4895 GB, free: 62.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002164/0.5246, allocations: 0.585 MB / 0.4901 GB, free: 62.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01347/0.5381, allocations: 13.81 MB / 0.5036 GB, free: 48.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/0.5394, allocations: 1.57 MB / 0.5051 GB, free: 46.83 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001302/0.5407, allocations: 317.1 kB / 0.5054 GB, free: 46.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004478/0.5411, allocations: 172.5 kB / 0.5056 GB, free: 46.35 MB / 378.7 MB Notification: Performance of SimCode: time 1.973e-06/0.5411, allocations: 0 / 0.5056 GB, free: 46.35 MB / 378.7 MB Notification: Performance of Templates: time 0.1796/0.7207, allocations: 67.36 MB / 0.5714 GB, free: 123.7 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.080964735010639]