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.001016/0.001016, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001016/0.001016, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.024/1.024, allocations: 177.1 MB / 205 MB, free: 5.598 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.633e-06/1.633e-06, allocations: 0 / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.29e-05/2.454e-05, allocations: 2.312 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.006953/0.006978, allocations: 6.349 MB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003176/0.01015, allocations: 1.893 MB / 281.2 MB, free: 9.238 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005386/0.01069, allocations: 19.94 kB / 281.2 MB, free: 9.219 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005268/0.01122, allocations: 214 kB / 281.5 MB, free: 9.008 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008381/0.01206, allocations: 444.4 kB / 281.9 MB, free: 8.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005617/0.01262, allocations: 375.4 kB / 282.3 MB, free: 8.203 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001242/0.01386, allocations: 1.548 MB / 283.8 MB, free: 6.648 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004099/0.01427, allocations: 337.8 kB / 284.1 MB, free: 6.297 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009444/0.01522, allocations: 0.8849 MB / 285 MB, free: 5.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005356/0.01575, allocations: 470.7 kB / 285.5 MB, free: 4.949 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00015/0.0159, allocations: 152 kB / 285.6 MB, free: 4.801 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001759/0.01608, allocations: 164 kB / 285.8 MB, free: 4.641 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.01622, allocations: 306.9 kB / 286.1 MB, free: 4.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003537/0.01658, allocations: 467 kB / 286.5 MB, free: 3.883 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008789/0.01746, allocations: 0.9615 MB / 287.5 MB, free: 2.918 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.01746, allocations: 0 / 287.5 MB, free: 2.918 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.01746, allocations: 4 kB / 287.5 MB, free: 2.914 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.01748, allocations: 0 / 287.5 MB, free: 2.914 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.001675/0.01916, allocations: 1.453 MB / 289 MB, free: 1.422 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.01919, allocations: 8.031 kB / 289 MB, free: 1.414 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000387/0.01958, allocations: 240.1 kB / 289.2 MB, free: 1.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006696/0.02025, allocations: 0.6038 MB / 289.8 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.647e-05/0.0203, allocations: 78.36 kB / 289.9 MB, free: 480 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.844e-05/0.0204, allocations: 103.9 kB / 290 MB, free: 376 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1055/0.1259, allocations: 0.7728 MB / 290.8 MB, free: 24.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.607e-05/0.1259, allocations: 6.297 kB / 290.8 MB, free: 24.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.82e-05/0.126, allocations: 39.69 kB / 290.8 MB, free: 24.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/0.126, allocations: 23.5 kB / 290.8 MB, free: 24.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007286/0.1267, allocations: 422.5 kB / 291.2 MB, free: 24.92 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003042/0.1298, allocations: 2.606 MB / 293.8 MB, free: 24.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000711/0.1305, allocations: 0.5334 MB / 294.4 MB, free: 24.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003269/0.1308, allocations: 249.9 kB / 294.6 MB, free: 24.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.47e-05/0.1309, allocations: 27.23 kB / 294.6 MB, free: 24.13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.1309, allocations: 46.48 kB / 294.7 MB, free: 24.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=94): time 4.298e-06/0.1309, allocations: 1 kB / 294.7 MB, free: 24.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=117): time 0.004427/0.1353, allocations: 2.987 MB / 297.7 MB, free: 22.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.1354, allocations: 90.3 kB / 297.8 MB, free: 22.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005857/0.136, allocations: 0.563 MB / 298.3 MB, free: 22.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.112e-05/0.136, allocations: 41.86 kB / 298.4 MB, free: 22.46 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/0.1362, allocations: 0.4976 MB / 298.9 MB, free: 22.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002149/0.1365, allocations: 413.4 kB / 299.3 MB, free: 21.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002223/0.1367, allocations: 192.5 kB / 299.5 MB, free: 21.69 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1368, allocations: 0.564 MB / 300 MB, free: 21.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003455/0.1372, allocations: 176 kB / 300.2 MB, free: 21.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003983/0.1376, allocations: 353.6 kB / 300.5 MB, free: 20.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007086/0.1383, allocations: 0.5755 MB / 301.1 MB, free: 20.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.1383, allocations: 1.375 kB / 301.1 MB, free: 20.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.001214/0.1395, allocations: 0.8544 MB / 302 MB, free: 20.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.1395, allocations: 7.766 kB / 302 MB, free: 20.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.1395, allocations: 2.75 kB / 302 MB, free: 20.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000368/0.1399, allocations: 131.7 kB / 302.1 MB, free: 20.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005455/0.1404, allocations: 242.9 kB / 302.3 MB, free: 20.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001883/0.1423, allocations: 6.002 MB / 308.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/0.1426, allocations: 36.19 kB / 308.4 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.852e-05/0.1427, allocations: 37.78 kB / 308.4 MB, free: 14.36 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (131): * Single equations (assignments): 128 * 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.0002025/0.1429, allocations: 226.7 kB / 308.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.143, allocations: 126.6 kB / 308.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006721/0.1437, allocations: 0.5712 MB / 309.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.1437, allocations: 14.36 kB / 309.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.1437, allocations: 4.188 kB / 309.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.617e-06/0.1437, allocations: 4.453 kB / 309.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001835/0.1456, allocations: 1.881 MB / 311.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1456, allocations: 0 / 311.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004051/0.146, allocations: 191.3 kB / 311.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003597/0.1463, allocations: 172.7 kB / 311.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/0.1464, allocations: 25.84 kB / 311.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001817/0.1482, allocations: 7.206 MB / 318.8 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1482, allocations: 9.938 kB / 318.8 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.1494, allocations: 1.251 MB / 320.1 MB, free: 4.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000178/0.1496, allocations: 167.3 kB / 320.3 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.037e-05/0.1496, allocations: 24 kB / 320.3 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.1499, allocations: 27.98 kB / 320.3 MB, free: 4.215 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.15, allocations: 100.3 kB / 320.4 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.15, allocations: 32 kB / 320.4 MB, free: 4.086 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002438/0.1503, allocations: 378.7 kB / 320.8 MB, free: 3.719 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1503, allocations: 0 / 320.8 MB, free: 3.719 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006167/0.1509, allocations: 260 kB / 321.1 MB, free: 3.465 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 (106): * Single equations (assignments): 102 * 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.0001324/0.151, allocations: 137.3 kB / 321.2 MB, free: 3.328 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000984/0.152, allocations: 1.128 MB / 322.3 MB, free: 2.148 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.152, allocations: 0 / 322.3 MB, free: 2.148 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005634/0.1526, allocations: 1.055 MB / 323.4 MB, free: 1.023 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006156/0.1532, allocations: 207.7 kB / 323.6 MB, free: 0.832 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002447/0.1556, allocations: 1.896 MB / 325.5 MB, free: 14.9 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001964/0.1558, allocations: 198.9 kB / 325.7 MB, free: 14.68 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003488/0.1562, allocations: 123.6 kB / 325.8 MB, free: 14.56 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.1563, allocations: 76.48 kB / 325.9 MB, free: 14.48 MB / 282.7 MB Notification: Performance of SimCode: time 1.703e-06/0.1563, allocations: 0 / 325.9 MB, free: 14.48 MB / 282.7 MB Notification: Performance of Templates: time 0.01808/0.1744, allocations: 13.24 MB / 339.1 MB, free: 1.488 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.2428377862088382]