Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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.0009076/0.0009076, allocations: 71.77 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.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.001155/0.001155, allocations: 166.7 kB / 24.99 MB, free: 8.789 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 1.036/1.036, allocations: 177.1 MB / 205.3 MB, free: 5.609 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.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.armature.stopper_xMax.v_rel|cActuator.l.i|cActuator.x|pmActuator.armature.stopper_xMax.v_rel|pmActuator.coil.Phi|pmActuator.coil.i|pmActuator.g_mLeak2.port_p.Phi|pmActuator.g_ma.port_p.Phi|pmActuator.x",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.armature.stopper_xMax.v_rel|cActuator.l.i|cActuator.x|pmActuator.armature.stopper_xMax.v_rel|pmActuator.coil.Phi|pmActuator.coil.i|pmActuator.g_mLeak2.port_p.Phi|pmActuator.g_ma.port_p.Phi|pmActuator.x",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 273 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.078e-05, allocations: 2.312 kB / 273.1 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.005531/0.005552, allocations: 6.318 MB / 279.4 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002745/0.008297, allocations: 1.901 MB / 281.3 MB, free: 9.566 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004278/0.008725, allocations: 23.88 kB / 281.3 MB, free: 9.543 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004664/0.009191, allocations: 210.1 kB / 281.5 MB, free: 9.336 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006994/0.00989, allocations: 440.5 kB / 281.9 MB, free: 8.902 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005417/0.01043, allocations: 383.3 kB / 282.3 MB, free: 8.527 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001234/0.01167, allocations: 1.552 MB / 283.9 MB, free: 6.969 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004114/0.01208, allocations: 325.9 kB / 284.2 MB, free: 6.629 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000932/0.01301, allocations: 0.8733 MB / 285 MB, free: 5.754 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004226/0.01343, allocations: 486.6 kB / 285.5 MB, free: 5.277 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001283/0.01356, allocations: 160 kB / 285.7 MB, free: 5.121 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.01373, allocations: 164 kB / 285.8 MB, free: 4.961 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001571/0.01388, allocations: 315 kB / 286.1 MB, free: 4.652 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003279/0.01421, allocations: 474.9 kB / 286.6 MB, free: 4.188 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007821/0.01499, allocations: 0.9849 MB / 287.6 MB, free: 3.199 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.015, allocations: 0 / 287.6 MB, free: 3.199 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.015, allocations: 0 / 287.6 MB, free: 3.199 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.01501, allocations: 0 / 287.6 MB, free: 3.199 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001602/0.01661, allocations: 1.48 MB / 289.1 MB, free: 1.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.01665, allocations: 12.03 kB / 289.1 MB, free: 1.668 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003862/0.01703, allocations: 240 kB / 289.3 MB, free: 1.434 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007062/0.01774, allocations: 0.6331 MB / 290 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.359e-05/0.01779, allocations: 74.38 kB / 290 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.01789, allocations: 111.9 kB / 290.1 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1084/0.1263, allocations: 0.7692 MB / 290.9 MB, free: 28.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.54e-05/0.1263, allocations: 2.453 kB / 290.9 MB, free: 28.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.351e-05/0.1264, allocations: 40.16 kB / 290.9 MB, free: 28.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.1264, allocations: 23.28 kB / 291 MB, free: 28.22 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008397/0.1272, allocations: 425.4 kB / 291.4 MB, free: 28.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003069/0.1303, allocations: 2.597 MB / 294 MB, free: 27.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007558/0.1311, allocations: 0.5343 MB / 294.5 MB, free: 27.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003704/0.1314, allocations: 256 kB / 294.8 MB, free: 27.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.698e-05/0.1315, allocations: 22.09 kB / 294.8 MB, free: 27.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.1315, allocations: 48.27 kB / 294.8 MB, free: 26.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=95): time 2.745e-06/0.1315, allocations: 1.141 kB / 294.8 MB, free: 26.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=119): time 0.004579/0.1361, allocations: 3.038 MB / 297.9 MB, free: 25.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.1361, allocations: 93.69 kB / 298 MB, free: 25.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005753/0.1367, allocations: 0.5577 MB / 298.5 MB, free: 25.13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.299e-05/0.1368, allocations: 42.42 kB / 298.6 MB, free: 25.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.137, allocations: 0.4888 MB / 299.1 MB, free: 24.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.1371, allocations: 418.9 kB / 299.5 MB, free: 24.4 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001972/0.1373, allocations: 193 kB / 299.7 MB, free: 24.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.1375, allocations: 0.5639 MB / 300.2 MB, free: 23.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003436/0.1378, allocations: 176.9 kB / 300.4 MB, free: 23.74 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003991/0.1382, allocations: 344 kB / 300.7 MB, free: 23.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000731/0.1389, allocations: 0.5748 MB / 301.3 MB, free: 23.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1389, allocations: 5.406 kB / 301.3 MB, free: 23.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001139/0.1401, allocations: 0.8576 MB / 302.2 MB, free: 22.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1401, allocations: 7.719 kB / 302.2 MB, free: 22.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.1401, allocations: 2.156 kB / 302.2 MB, free: 22.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003535/0.1404, allocations: 136.2 kB / 302.3 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005464/0.141, allocations: 233.4 kB / 302.5 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00181/0.1428, allocations: 6.017 MB / 308.5 MB, free: 16.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002952/0.1431, allocations: 34.72 kB / 308.6 MB, free: 16.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.263e-05/0.1432, allocations: 41.55 kB / 308.6 MB, free: 16.93 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002133/0.1434, allocations: 225.9 kB / 308.8 MB, free: 16.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.1435, allocations: 126.6 kB / 309 MB, free: 16.65 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000728/0.1442, allocations: 0.5699 MB / 309.5 MB, free: 16.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.1442, allocations: 10.72 kB / 309.5 MB, free: 16.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.1442, allocations: 3.375 kB / 309.6 MB, free: 16.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.1443, allocations: 8.656 kB / 309.6 MB, free: 16.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001856/0.1461, allocations: 1.898 MB / 311.5 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1461, allocations: 0 / 311.5 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004223/0.1465, allocations: 194.5 kB / 311.6 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003695/0.1469, allocations: 174.8 kB / 311.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.102e-05/0.1469, allocations: 27.8 kB / 311.8 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001621/0.1486, allocations: 7.198 MB / 319 MB, free: 7.426 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1486, allocations: 4 kB / 319 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.1498, allocations: 1.274 MB / 320.3 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001748/0.1499, allocations: 171.3 kB / 320.5 MB, free: 5.938 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.28e-05/0.15, allocations: 24 kB / 320.5 MB, free: 5.914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002409/0.1502, allocations: 31.98 kB / 320.5 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.1503, allocations: 84.44 kB / 320.6 MB, free: 5.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.064e-05/0.1504, allocations: 31.98 kB / 320.7 MB, free: 5.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002454/0.1506, allocations: 378.7 kB / 321 MB, free: 5.402 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1506, allocations: 4 kB / 321 MB, free: 5.398 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005277/0.1512, allocations: 256 kB / 321.3 MB, free: 5.148 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001121/0.1513, allocations: 131.1 kB / 321.4 MB, free: 5.012 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009193/0.1522, allocations: 1.144 MB / 322.6 MB, free: 3.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1522, allocations: 0 / 322.6 MB, free: 3.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000535/0.1527, allocations: 1.047 MB / 323.6 MB, free: 2.695 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005995/0.1533, allocations: 226.4 kB / 323.8 MB, free: 2.496 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.1553, allocations: 1.908 MB / 325.7 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001085/0.1554, allocations: 200.1 kB / 325.9 MB, free: 348 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000275/0.1557, allocations: 119.6 kB / 326 MB, free: 224 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.1558, allocations: 84.47 kB / 326.1 MB, free: 140 kB / 266.7 MB Notification: Performance of SimCode: time 9.72e-07/0.1559, allocations: 0 / 326.1 MB, free: 140 kB / 266.7 MB Notification: Performance of Templates: time 0.01568/0.1715, allocations: 12.68 MB / 338.8 MB, free: 3.688 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.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: 3.224444312043488]