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.0009293/0.0009293, allocations: 84.86 kB / 21.5 MB, free: 2.988 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.0009805/0.0009805, allocations: 161.8 kB / 24.91 MB, free: 8.766 MB / 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.8576/0.8576, allocations: 177 MB / 205.2 MB, free: 5.438 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.273e-06/1.273e-06, allocations: 0 / 273.4 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.164e-05/1.292e-05, allocations: 2.312 kB / 273.4 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.007703/0.007716, allocations: 10.86 MB / 284.2 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004487/0.0122, allocations: 3.98 MB / 288.2 MB, free: 2.316 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000563/0.01277, allocations: 51.75 kB / 288.3 MB, free: 2.266 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.09871/0.1115, allocations: 8.161 MB / 296.4 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004644/0.1161, allocations: 4.78 MB / 301.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.1174, allocations: 0.9243 MB / 302.1 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003808/0.1212, allocations: 5.518 MB / 307.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006062/0.1218, allocations: 0.5751 MB / 308.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002032/0.1239, allocations: 3.614 MB / 311.8 MB, free: 7.801 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001936/0.1258, allocations: 4.618 MB / 316.5 MB, free: 3.316 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002609/0.1261, allocations: 352 kB / 316.8 MB, free: 2.973 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000367/0.1264, allocations: 391.9 kB / 317.2 MB, free: 2.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005544/0.127, allocations: 1.924 MB / 319.1 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007605/0.1277, allocations: 1.43 MB / 320.5 MB, free: 15.31 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002546/0.1303, allocations: 4.416 MB / 325 MB, free: 11.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.1303, allocations: 2.969 kB / 325 MB, free: 11.18 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.1303, allocations: 0 / 325 MB, free: 11.18 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.826e-05/0.1303, allocations: 4 kB / 325 MB, free: 11.18 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.005171/0.1355, allocations: 7.744 MB / 332.7 MB, free: 3.852 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.915e-05/0.1355, allocations: 11.98 kB / 332.7 MB, free: 3.84 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006975/0.1362, allocations: 0.6838 MB / 333.4 MB, free: 3.156 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001835/0.1381, allocations: 2.782 MB / 336.2 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.343e-05/0.1381, allocations: 157.5 kB / 336.3 MB, free: 428 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001845/0.1383, allocations: 212 kB / 336.5 MB, free: 216 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.1397, allocations: 1.545 MB / 338.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.739e-05/0.1397, allocations: 7.938 kB / 338.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.978e-05/0.1398, allocations: 83.98 kB / 338.2 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.584e-05/0.1399, allocations: 55.38 kB / 338.2 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008073/0.1407, allocations: 0.6107 MB / 338.8 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005299/0.146, allocations: 4.446 MB / 343.3 MB, free: 9.613 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.1472, allocations: 1.272 MB / 344.6 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000876/0.148, allocations: 0.7797 MB / 345.3 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.651e-05/0.1481, allocations: 50.3 kB / 345.4 MB, free: 7.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006988/0.1488, allocations: 0.8807 MB / 346.3 MB, free: 6.719 MB / 298.7 MB Notification: Performance of pre-optimization done (n=246): time 3.337e-06/0.1488, allocations: 0 / 346.3 MB, free: 6.719 MB / 298.7 MB Notification: Performance of matching and sorting (n=371): time 0.02307/0.1719, allocations: 13.34 MB / 359.6 MB, free: 9.602 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0115/0.1834, allocations: 8.565 MB / 368.2 MB, free: 1.016 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005214/0.1886, allocations: 8.667 MB / 376.8 MB, free: 9.594 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001229/0.1887, allocations: 85.7 kB / 376.9 MB, free: 9.504 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009031/0.1897, allocations: 1.605 MB / 378.5 MB, free: 7.887 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005808/0.1902, allocations: 1.286 MB / 379.8 MB, free: 6.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000544/0.1908, allocations: 0.5312 MB / 380.4 MB, free: 6.051 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.311e-05/0.1908, allocations: 301.1 kB / 380.6 MB, free: 5.754 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00085/0.1917, allocations: 479.4 kB / 381.1 MB, free: 5.281 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.1927, allocations: 0.9856 MB / 382.1 MB, free: 4.188 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001786/0.1945, allocations: 1.487 MB / 383.6 MB, free: 2.652 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.1945, allocations: 11.94 kB / 383.6 MB, free: 2.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.003743/0.1983, allocations: 2.759 MB / 386.4 MB, free: 15.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.1983, allocations: 11.12 kB / 386.4 MB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.1983, allocations: 4 kB / 386.4 MB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003854/0.2022, allocations: 1.8 MB / 388.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.2033, allocations: 0.5289 MB / 388.7 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/0.2143, allocations: 16.34 MB / 405 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.2153, allocations: 107.9 kB / 405.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.2154, allocations: 84.11 kB / 405.2 MB, free: 12.39 MB / 362.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 (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,4,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.0007716/0.2162, allocations: 292.6 kB / 405.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000468/0.2167, allocations: 0.5618 MB / 406.1 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003716/0.2204, allocations: 2.983 MB / 409.1 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/0.2204, allocations: 40 kB / 409.1 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.2204, allocations: 4 kB / 409.1 MB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.91e-05/0.2204, allocations: 15.94 kB / 409.1 MB, free: 8.539 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006918/0.2273, allocations: 5.592 MB / 414.7 MB, free: 2.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.2273, allocations: 4.094 kB / 414.7 MB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/0.2284, allocations: 451.4 kB / 415.2 MB, free: 2.418 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004265/0.2326, allocations: 2.313 MB / 417.5 MB, free: 72 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001281/0.2328, allocations: 71.97 kB / 417.5 MB, free: 0 / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1121/0.3448, allocations: 15.25 MB / 432.8 MB, free: 109.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01112/0.356, allocations: 7.596 MB / 440.4 MB, free: 107.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005005/0.361, allocations: 3.501 MB / 443.9 MB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005894/0.3615, allocations: 0.6897 MB / 444.6 MB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003823/0.3619, allocations: 70.14 kB / 444.6 MB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000875/0.3628, allocations: 96.2 kB / 444.7 MB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004522/0.3633, allocations: 285.7 kB / 445 MB, free: 106.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.3634, allocations: 71.44 kB / 445.1 MB, free: 106.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003168/0.3665, allocations: 4.817 MB / 449.9 MB, free: 106.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3665, allocations: 0 / 449.9 MB, free: 106.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002204/0.3687, allocations: 1.093 MB / 451 MB, free: 106.3 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.001285/0.37, allocations: 0.6002 MB / 451.6 MB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002878/0.3729, allocations: 3.162 MB / 454.8 MB, free: 105 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.007e-05/0.373, allocations: 82.31 kB / 454.8 MB, free: 105 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001717/0.3747, allocations: 2.477 MB / 457.3 MB, free: 103.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/0.3762, allocations: 0.5662 MB / 457.9 MB, free: 103.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.3871, allocations: 13.26 MB / 471.1 MB, free: 92.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001298/0.3884, allocations: 1.571 MB / 472.7 MB, free: 91.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008243/0.3892, allocations: 310.6 kB / 473 MB, free: 91.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008002/0.39, allocations: 486.5 kB / 473.5 MB, free: 91.08 MB / 378.7 MB Notification: Performance of SimCode: time 9.72e-07/0.39, allocations: 0 / 473.5 MB, free: 91.08 MB / 378.7 MB Notification: Performance of Templates: time 0.07306/0.463, allocations: 70.68 MB / 0.5314 GB, free: 21.38 MB / 378.7 MB " [Timeout remaining time 660] 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: 4.816494431812316]