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.001417/0.001417, allocations: 72.08 kB / 21.69 MB, free: 2.855 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.001332/0.001332, allocations: 143.7 kB / 24.97 MB, free: 8.816 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.9414/0.9414, allocations: 173.3 MB / 201.5 MB, free: 9.328 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 2.304e-06/2.304e-06, allocations: 4 kB / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.718e-05/1.949e-05, allocations: 6.25 kB / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.008327/0.008347, allocations: 10.84 MB / 278.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005501/0.01385, allocations: 3.615 MB / 282.5 MB, free: 8.207 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009997/0.01485, allocations: 43.75 kB / 282.6 MB, free: 8.164 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.116/0.1309, allocations: 8.153 MB / 290.7 MB, free: 22.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007223/0.1381, allocations: 4.69 MB / 295.4 MB, free: 21.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001885/0.14, allocations: 0.951 MB / 296.4 MB, free: 21.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006202/0.1462, allocations: 5.405 MB / 301.8 MB, free: 20.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000769/0.147, allocations: 0.5557 MB / 302.3 MB, free: 20.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00346/0.1504, allocations: 3.539 MB / 305.9 MB, free: 18.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003418/0.1538, allocations: 5.477 MB / 311.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003815/0.1542, allocations: 351.3 kB / 311.7 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004194/0.1546, allocations: 392.5 kB / 312.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000621/0.1553, allocations: 1.919 MB / 314 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009686/0.1562, allocations: 1.417 MB / 315.4 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002333/0.1586, allocations: 4.374 MB / 319.8 MB, free: 6.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1586, allocations: 0.8125 kB / 319.8 MB, free: 6.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1586, allocations: 0 / 319.8 MB, free: 6.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.974e-05/0.1587, allocations: 0.8125 kB / 319.8 MB, free: 6.34 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.005606/0.1643, allocations: 8.282 MB / 328.1 MB, free: 13.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1643, allocations: 16.86 kB / 328.1 MB, free: 13.97 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007799/0.1651, allocations: 1.05 MB / 329.1 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002691/0.1678, allocations: 3.172 MB / 332.3 MB, free: 9.926 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.276e-05/0.1679, allocations: 156.5 kB / 332.5 MB, free: 9.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/0.1681, allocations: 204.4 kB / 332.7 MB, free: 9.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002058/0.1701, allocations: 1.659 MB / 334.3 MB, free: 7.812 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.076e-05/0.1702, allocations: 11.95 kB / 334.3 MB, free: 7.801 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/0.1703, allocations: 84 kB / 334.4 MB, free: 7.719 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.99e-05/0.1703, allocations: 48 kB / 334.5 MB, free: 7.672 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001554/0.1719, allocations: 0.9347 MB / 335.4 MB, free: 6.734 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008197/0.1801, allocations: 7.874 MB / 343.3 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/0.1819, allocations: 1.513 MB / 344.8 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/0.1832, allocations: 0.9304 MB / 345.7 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.524e-05/0.1833, allocations: 54.3 kB / 345.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001293/0.1846, allocations: 0.9553 MB / 346.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=242): time 3.687e-06/0.1846, allocations: 0 / 346.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=367): time 0.03768/0.2223, allocations: 18.6 MB / 365.3 MB, free: 8.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01695/0.2392, allocations: 10.95 MB / 376.3 MB, free: 13.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007782/0.247, allocations: 9.678 MB / 385.9 MB, free: 3.957 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003163/0.2473, allocations: 93.72 kB / 386 MB, free: 3.859 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002411/0.2497, allocations: 3.975 MB / 390 MB, free: 15.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008902/0.2506, allocations: 1.259 MB / 391.3 MB, free: 14.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006023/0.2512, allocations: 0.5153 MB / 391.8 MB, free: 14.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.809e-05/0.2513, allocations: 480.8 kB / 392.3 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.2524, allocations: 0.5844 MB / 392.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.2537, allocations: 1.156 MB / 394 MB, free: 11.76 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002339/0.256, allocations: 1.759 MB / 395.8 MB, free: 9.922 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.256, allocations: 4 kB / 395.8 MB, free: 9.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.005556/0.2616, allocations: 3.915 MB / 399.7 MB, free: 6.039 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.2616, allocations: 8 kB / 399.7 MB, free: 6.031 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.2616, allocations: 7.281 kB / 399.7 MB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004623/0.2662, allocations: 1.883 MB / 401.6 MB, free: 4.117 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/0.2675, allocations: 0.5289 MB / 402.1 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01633/0.2839, allocations: 23.47 MB / 425.6 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/0.2855, allocations: 115.8 kB / 425.7 MB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.2857, allocations: 116 kB / 425.8 MB, free: 10.96 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.001006/0.2867, allocations: 331.7 kB / 426.1 MB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009845/0.2877, allocations: 0.963 MB / 427.1 MB, free: 9.684 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005251/0.2929, allocations: 3.714 MB / 430.8 MB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/0.2929, allocations: 36 kB / 430.8 MB, free: 5.941 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/0.293, allocations: 19.81 kB / 430.9 MB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.21e-05/0.293, allocations: 15.94 kB / 430.9 MB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1175/0.4105, allocations: 9.048 MB / 439.9 MB, free: 117.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.4105, allocations: 1 kB / 439.9 MB, free: 117.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.4118, allocations: 455.1 kB / 440.4 MB, free: 117.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004996/0.4168, allocations: 1.831 MB / 442.2 MB, free: 117.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001651/0.4169, allocations: 74.7 kB / 442.3 MB, free: 117.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01197/0.4289, allocations: 21.77 MB / 464 MB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01139/0.4403, allocations: 9.706 MB / 473.7 MB, free: 96.78 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006263/0.4466, allocations: 4.819 MB / 478.6 MB, free: 95.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005316/0.4471, allocations: 0.7166 MB / 479.3 MB, free: 94.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00033/0.4474, allocations: 66.67 kB / 479.3 MB, free: 94.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009334/0.4484, allocations: 102.1 kB / 479.4 MB, free: 94.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004951/0.4489, allocations: 290.3 kB / 479.7 MB, free: 94.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001185/0.449, allocations: 95.27 kB / 479.8 MB, free: 94.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004504/0.4535, allocations: 6.003 MB / 485.8 MB, free: 89.17 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4535, allocations: 0 / 485.8 MB, free: 89.17 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002073/0.4555, allocations: 1.074 MB / 486.9 MB, free: 88.1 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.0009608/0.4565, allocations: 494.6 kB / 487.4 MB, free: 87.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00346/0.46, allocations: 4.038 MB / 491.4 MB, free: 83.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.46, allocations: 0 / 491.4 MB, free: 83.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002112/0.4621, allocations: 3.183 MB / 494.6 MB, free: 80.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001573/0.4637, allocations: 0.5564 MB / 495.2 MB, free: 79.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.4744, allocations: 13.65 MB / 0.4969 GB, free: 65.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009757/0.4754, allocations: 1.557 MB / 0.4984 GB, free: 64.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008952/0.4763, allocations: 296.8 kB / 0.4987 GB, free: 64.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004184/0.4767, allocations: 172.4 kB / 0.4989 GB, free: 63.88 MB / 378.7 MB Notification: Performance of SimCode: time 1.262e-06/0.4767, allocations: 3.719 kB / 0.4989 GB, free: 63.88 MB / 378.7 MB Notification: Performance of Templates: time 0.06863/0.5453, allocations: 66.14 MB / 0.5634 GB, free: 14.19 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.005436077015474]