Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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.0009631/0.0009631, allocations: 64.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.0009568/0.0009568, allocations: 146.5 kB / 24.98 MB, free: 9.336 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.9546/0.9546, allocations: 173.4 MB / 201.5 MB, free: 9.324 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.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5030,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.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5030,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.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.461e-05/2.584e-05, allocations: 6.25 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.005464/0.00549, allocations: 6.213 MB / 274.3 MB, free: 492 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.007777, allocations: 1.819 MB / 276.1 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003133/0.00809, allocations: 23.88 kB / 276.1 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004987/0.008589, allocations: 210.1 kB / 276.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000607/0.009196, allocations: 420.6 kB / 276.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004587/0.009655, allocations: 379.4 kB / 277.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009715/0.01063, allocations: 1.533 MB / 278.6 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003739/0.011, allocations: 317.8 kB / 279 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006191/0.01162, allocations: 0.8538 MB / 279.8 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004223/0.01204, allocations: 478.7 kB / 280.3 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.01218, allocations: 160 kB / 280.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001301/0.01231, allocations: 160 kB / 280.6 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.01246, allocations: 303 kB / 280.9 MB, free: 9.828 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003048/0.01277, allocations: 470.9 kB / 281.3 MB, free: 9.367 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007595/0.01353, allocations: 0.9694 MB / 282.3 MB, free: 8.395 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.01353, allocations: 0 / 282.3 MB, free: 8.395 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.01353, allocations: 3.938 kB / 282.3 MB, free: 8.391 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.01354, allocations: 0 / 282.3 MB, free: 8.391 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.001628/0.01517, allocations: 1.461 MB / 283.8 MB, free: 6.891 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.01521, allocations: 8.922 kB / 283.8 MB, free: 6.883 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002035/0.01541, allocations: 200.2 kB / 284 MB, free: 6.688 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007268/0.01614, allocations: 0.6214 MB / 284.6 MB, free: 6.035 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.359e-05/0.01619, allocations: 74.38 kB / 284.7 MB, free: 5.965 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.0163, allocations: 108.2 kB / 284.8 MB, free: 5.859 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000982/0.01728, allocations: 0.7888 MB / 285.6 MB, free: 5.039 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.0173, allocations: 8.141 kB / 285.6 MB, free: 5.031 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.968e-05/0.01736, allocations: 40.38 kB / 285.6 MB, free: 4.992 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.465e-05/0.01739, allocations: 31.92 kB / 285.7 MB, free: 4.961 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006593/0.01805, allocations: 417.5 kB / 286.1 MB, free: 4.551 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002825/0.02087, allocations: 2.597 MB / 288.7 MB, free: 1.871 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007102/0.02158, allocations: 0.5432 MB / 289.2 MB, free: 1.301 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003576/0.02194, allocations: 252.8 kB / 289.4 MB, free: 1.047 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.144e-05/0.02199, allocations: 20.5 kB / 289.5 MB, free: 1.023 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.02203, allocations: 45.89 kB / 289.5 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of pre-optimization done (n=91): time 4.308e-06/0.02204, allocations: 0 / 289.5 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of matching and sorting (n=115): time 0.1157/0.1377, allocations: 2.97 MB / 292.5 MB, free: 32.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.1378, allocations: 90.52 kB / 292.6 MB, free: 31.92 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006394/0.1384, allocations: 0.5347 MB / 293.1 MB, free: 31.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.981e-05/0.1385, allocations: 44.2 kB / 293.1 MB, free: 31.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002349/0.1387, allocations: 496.9 kB / 293.6 MB, free: 31.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002395/0.1389, allocations: 407.1 kB / 294 MB, free: 31.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002572/0.1392, allocations: 186.1 kB / 294.2 MB, free: 30.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1393, allocations: 0.5621 MB / 294.8 MB, free: 30.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004338/0.1398, allocations: 184.2 kB / 295 MB, free: 30.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004983/0.1403, allocations: 349.8 kB / 295.3 MB, free: 30.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008593/0.1411, allocations: 0.5509 MB / 295.8 MB, free: 29.96 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.1411, allocations: 1.125 kB / 295.8 MB, free: 29.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001451/0.1426, allocations: 0.839 MB / 296.7 MB, free: 29.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.1426, allocations: 6.375 kB / 296.7 MB, free: 29.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.1426, allocations: 2.672 kB / 296.7 MB, free: 29.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004611/0.1431, allocations: 137.6 kB / 296.8 MB, free: 29.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007672/0.1438, allocations: 239.1 kB / 297.1 MB, free: 29.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002531/0.1464, allocations: 6.008 MB / 303.1 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004633/0.1468, allocations: 41.94 kB / 303.1 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.749e-05/0.1469, allocations: 42.09 kB / 303.2 MB, free: 23.68 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 (128): * Single equations (assignments): 125 * 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.0002777/0.1472, allocations: 221.8 kB / 303.4 MB, free: 23.47 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001824/0.1474, allocations: 126.8 kB / 303.5 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009489/0.1483, allocations: 0.5586 MB / 304.1 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.1483, allocations: 12.31 kB / 304.1 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/0.1483, allocations: 3.094 kB / 304.1 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.1484, allocations: 6.766 kB / 304.1 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002839/0.1512, allocations: 1.889 MB / 306 MB, free: 22.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.1512, allocations: 1.812 kB / 306 MB, free: 22.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006651/0.1519, allocations: 196.4 kB / 306.2 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005247/0.1524, allocations: 159.7 kB / 306.3 MB, free: 22.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.408e-05/0.1524, allocations: 31.67 kB / 306.3 MB, free: 22.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002396/0.1548, allocations: 7.21 MB / 313.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1548, allocations: 1.719 kB / 313.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0018/0.1566, allocations: 1.247 MB / 314.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.1568, allocations: 90.98 kB / 314.9 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.144e-05/0.1569, allocations: 26.28 kB / 314.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003676/0.1572, allocations: 36.11 kB / 315 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.1574, allocations: 87.67 kB / 315 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.382e-05/0.1575, allocations: 32.36 kB / 315.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000369/0.1578, allocations: 366.4 kB / 315.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1578, allocations: 0 / 315.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000913/0.1588, allocations: 253.5 kB / 315.7 MB, free: 13.9 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 (104): * Single equations (assignments): 100 * 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.0001541/0.1589, allocations: 134.8 kB / 315.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.1602, allocations: 1.127 MB / 316.9 MB, free: 13.13 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.1602, allocations: 4.188 kB / 316.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007236/0.1609, allocations: 1.061 MB / 318 MB, free: 12.33 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007977/0.1617, allocations: 192.8 kB / 318.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002675/0.1644, allocations: 1.856 MB / 320 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000146/0.1645, allocations: 206.2 kB / 320.2 MB, free: 10.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003709/0.1649, allocations: 109.5 kB / 320.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/0.165, allocations: 79.02 kB / 320.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of SimCode: time 1.312e-06/0.165, allocations: 0 / 320.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of Templates: time 0.01731/0.1824, allocations: 12.13 MB / 332.6 MB, free: 14.32 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.111031753011048]