Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000957/0.000957, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009245/0.0009245, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9663/0.9663, allocations: 177 MB / 204.8 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 3.938 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.328e-05/2.491e-05, allocations: 9.266 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.009008/0.009032, allocations: 11.17 MB / 284.1 MB, free: 6.211 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005334/0.01437, allocations: 3.849 MB / 287.9 MB, free: 2.352 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007402/0.01511, allocations: 47.75 kB / 288 MB, free: 2.305 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1275/0.1426, allocations: 8.156 MB / 296.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005501/0.1481, allocations: 4.778 MB / 300.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001372/0.1495, allocations: 0.9307 MB / 301.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004144/0.1536, allocations: 5.51 MB / 307.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007126/0.1543, allocations: 0.5574 MB / 307.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003018/0.1573, allocations: 3.602 MB / 311.5 MB, free: 8.012 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003299/0.1606, allocations: 5.509 MB / 317 MB, free: 2.664 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003648/0.161, allocations: 356.6 kB / 317.4 MB, free: 2.316 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004576/0.1615, allocations: 405.7 kB / 317.8 MB, free: 1.922 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006242/0.1621, allocations: 1.935 MB / 319.7 MB, free: 24 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009691/0.1631, allocations: 1.441 MB / 321.1 MB, free: 14.62 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002975/0.166, allocations: 4.458 MB / 325.6 MB, free: 10.45 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.166, allocations: 0 / 325.6 MB, free: 10.45 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.166, allocations: 0 / 325.6 MB, free: 10.45 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.422e-05/0.1661, allocations: 0.6875 kB / 325.6 MB, free: 10.45 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.006605/0.1727, allocations: 8.398 MB / 334 MB, free: 1.992 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.1727, allocations: 15.98 kB / 334 MB, free: 1.977 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001029/0.1737, allocations: 1.108 MB / 335.1 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002559/0.1763, allocations: 3.228 MB / 338.3 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.386e-05/0.1764, allocations: 157.5 kB / 338.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002034/0.1766, allocations: 213 kB / 338.7 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002251/0.1789, allocations: 1.641 MB / 340.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.185e-05/0.1789, allocations: 7.938 kB / 340.4 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.179, allocations: 88 kB / 340.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.234e-05/0.1791, allocations: 55.98 kB / 340.5 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.1806, allocations: 0.9305 MB / 341.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008365/0.189, allocations: 7.918 MB / 349.3 MB, free: 2.781 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/0.1908, allocations: 1.508 MB / 350.9 MB, free: 1.266 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001269/0.1921, allocations: 0.9286 MB / 351.8 MB, free: 336 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.1922, allocations: 50.3 kB / 351.8 MB, free: 288 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.1932, allocations: 0.9592 MB / 352.8 MB, free: 15.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=246): time 3.978e-06/0.1932, allocations: 4 kB / 352.8 MB, free: 15.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=371): time 0.03021/0.2234, allocations: 18.37 MB / 371.2 MB, free: 12.88 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01612/0.2396, allocations: 11.03 MB / 382.2 MB, free: 1.605 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008386/0.248, allocations: 9.801 MB / 392 MB, free: 7.875 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003297/0.2483, allocations: 89.69 kB / 392.1 MB, free: 7.781 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002453/0.2507, allocations: 4.031 MB / 396.1 MB, free: 3.742 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009507/0.2517, allocations: 1.281 MB / 397.4 MB, free: 2.48 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006319/0.2523, allocations: 0.5232 MB / 397.9 MB, free: 1.945 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.815e-05/0.2524, allocations: 480.8 kB / 398.4 MB, free: 1.473 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.2535, allocations: 0.5883 MB / 399 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.2548, allocations: 1.146 MB / 400.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002439/0.2572, allocations: 1.776 MB / 401.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.2572, allocations: 0 / 401.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.005775/0.263, allocations: 3.932 MB / 405.8 MB, free: 9.859 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.263, allocations: 11.94 kB / 405.8 MB, free: 9.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.263, allocations: 4 kB / 405.8 MB, free: 9.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004745/0.2678, allocations: 1.912 MB / 407.8 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/0.2691, allocations: 0.5251 MB / 408.3 MB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1367/0.4058, allocations: 23.49 MB / 431.8 MB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0023/0.4081, allocations: 112.1 kB / 431.9 MB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002307/0.4083, allocations: 114.1 kB / 432 MB, free: 106.6 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.001101/0.4094, allocations: 337.3 kB / 432.3 MB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009013/0.4103, allocations: 0.983 MB / 433.3 MB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007219/0.4176, allocations: 3.744 MB / 437.1 MB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.914e-05/0.4176, allocations: 36.75 kB / 437.1 MB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.042e-05/0.4176, allocations: 4.75 kB / 437.1 MB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.273e-05/0.4176, allocations: 19.25 kB / 437.1 MB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01405/0.4317, allocations: 9.118 MB / 446.2 MB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.176e-05/0.4317, allocations: 3.531 kB / 446.2 MB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001581/0.4333, allocations: 456.1 kB / 446.7 MB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005952/0.4392, allocations: 1.854 MB / 448.5 MB, free: 105 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002088/0.4394, allocations: 72.48 kB / 448.6 MB, free: 105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/0.4543, allocations: 21.82 MB / 470.4 MB, free: 88.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01324/0.4675, allocations: 9.763 MB / 480.2 MB, free: 81.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006194/0.4737, allocations: 4.842 MB / 485 MB, free: 76.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005725/0.4743, allocations: 0.7352 MB / 485.8 MB, free: 76.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003274/0.4746, allocations: 64 kB / 485.8 MB, free: 76.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009015/0.4755, allocations: 95.95 kB / 485.9 MB, free: 76.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003674/0.4759, allocations: 291.1 kB / 486.2 MB, free: 75.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.476, allocations: 95.97 kB / 486.3 MB, free: 75.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004392/0.4804, allocations: 6.074 MB / 492.4 MB, free: 69.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.4804, allocations: 0 / 492.4 MB, free: 69.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001964/0.4824, allocations: 1.094 MB / 493.5 MB, free: 68.6 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.0009242/0.4833, allocations: 497.6 kB / 493.9 MB, free: 68.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00338/0.4867, allocations: 4.03 MB / 498 MB, free: 64.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4867, allocations: 4 kB / 498 MB, free: 64.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002016/0.4887, allocations: 3.177 MB / 0.4894 GB, free: 60.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/0.4902, allocations: 0.5823 MB / 0.49 GB, free: 60.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.5007, allocations: 13.82 MB / 0.5035 GB, free: 46.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009392/0.5016, allocations: 1.566 MB / 0.505 GB, free: 44.65 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008055/0.5024, allocations: 305.2 kB / 0.5053 GB, free: 44.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004402/0.5029, allocations: 180.4 kB / 0.5055 GB, free: 44.17 MB / 378.7 MB Notification: Performance of SimCode: time 9.21e-07/0.5029, allocations: 0 / 0.5055 GB, free: 44.17 MB / 378.7 MB Notification: Performance of Templates: time 0.1826/0.6855, allocations: 67.35 MB / 0.5712 GB, free: 118.6 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.004093735013157]