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.0009916/0.0009916, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001489/0.001489, allocations: 167.9 kB / 25.61 MB, free: 8.582 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 0.9518/0.9518, allocations: 177.1 MB / 206 MB, free: 4.484 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.302e-06/1.302e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.661e-05/1.791e-05, allocations: 6.25 kB / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.005515/0.005533, allocations: 6.198 MB / 280.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002645/0.008178, allocations: 1.885 MB / 282.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004602/0.008638, allocations: 23.88 kB / 282.3 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000504/0.009142, allocations: 214.1 kB / 282.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007856/0.009928, allocations: 444.4 kB / 282.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000612/0.01054, allocations: 379.4 kB / 283.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00127/0.01181, allocations: 1.553 MB / 284.9 MB, free: 9.703 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004209/0.01223, allocations: 329.8 kB / 285.2 MB, free: 9.355 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008842/0.01311, allocations: 0.8732 MB / 286.1 MB, free: 8.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005371/0.01365, allocations: 482.6 kB / 286.5 MB, free: 8.008 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.01381, allocations: 156 kB / 286.7 MB, free: 7.855 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001883/0.014, allocations: 156 kB / 286.8 MB, free: 7.703 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.01417, allocations: 307 kB / 287.1 MB, free: 7.402 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003499/0.01452, allocations: 466.9 kB / 287.6 MB, free: 6.945 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009776/0.0155, allocations: 0.9654 MB / 288.6 MB, free: 5.977 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.0155, allocations: 3.984 kB / 288.6 MB, free: 5.973 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.0155, allocations: 0 / 288.6 MB, free: 5.973 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.01552, allocations: 0 / 288.6 MB, free: 5.973 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.00207/0.01759, allocations: 1.472 MB / 290 MB, free: 4.461 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.01762, allocations: 8.031 kB / 290 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004872/0.01811, allocations: 232.1 kB / 290.3 MB, free: 4.227 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007956/0.01891, allocations: 0.6038 MB / 290.9 MB, free: 3.594 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.146e-05/0.01898, allocations: 78.31 kB / 290.9 MB, free: 3.516 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.01911, allocations: 103.9 kB / 291 MB, free: 3.414 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009855/0.0201, allocations: 0.71 MB / 291.8 MB, free: 2.676 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.131e-05/0.02013, allocations: 7.953 kB / 291.8 MB, free: 2.668 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.109e-05/0.0202, allocations: 40 kB / 291.8 MB, free: 2.629 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/0.02022, allocations: 24 kB / 291.8 MB, free: 2.605 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005891/0.02081, allocations: 335.8 kB / 292.2 MB, free: 2.277 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003396/0.02421, allocations: 2.5 MB / 294.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006759/0.02488, allocations: 489.5 kB / 295.1 MB, free: 15.2 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003122/0.0252, allocations: 217.9 kB / 295.3 MB, free: 14.98 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.341e-05/0.02524, allocations: 20.5 kB / 295.4 MB, free: 14.96 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.02528, allocations: 57.56 kB / 295.4 MB, free: 14.89 MB / 282.7 MB Notification: Performance of pre-optimization done (n=94): time 2.705e-06/0.02528, allocations: 0 / 295.4 MB, free: 14.89 MB / 282.7 MB Notification: Performance of matching and sorting (n=117): time 0.00439/0.02967, allocations: 2.537 MB / 298 MB, free: 12.23 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.02971, allocations: 97.7 kB / 298.1 MB, free: 12.12 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005713/0.03029, allocations: 0.5373 MB / 298.6 MB, free: 11.56 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.771e-05/0.03033, allocations: 45.7 kB / 298.6 MB, free: 11.51 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002639/0.0306, allocations: 0.4957 MB / 299.1 MB, free: 11.01 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002545/0.03085, allocations: 412.3 kB / 299.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002484/0.0311, allocations: 200.5 kB / 299.7 MB, free: 10.4 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.03129, allocations: 0.5741 MB / 300.3 MB, free: 9.812 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.03153, allocations: 126.5 kB / 300.4 MB, free: 9.688 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000336/0.03186, allocations: 318.3 kB / 300.7 MB, free: 9.328 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006169/0.03248, allocations: 0.506 MB / 301.2 MB, free: 8.766 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.03249, allocations: 4 kB / 301.2 MB, free: 8.762 MB / 282.7 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.001268/0.03375, allocations: 0.7691 MB / 302 MB, free: 7.973 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.03377, allocations: 10.34 kB / 302 MB, free: 7.965 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.03378, allocations: 4 kB / 302 MB, free: 7.961 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000333/0.03412, allocations: 131.1 kB / 302.2 MB, free: 7.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006612/0.03478, allocations: 231.7 kB / 302.4 MB, free: 7.594 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002705/0.03748, allocations: 5.931 MB / 308.3 MB, free: 1.324 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003462/0.03783, allocations: 36.09 kB / 308.4 MB, free: 1.289 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.345e-05/0.03788, allocations: 31.98 kB / 308.4 MB, free: 1.258 MB / 282.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 (pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,cActuator.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.0002301/0.03811, allocations: 218.4 kB / 308.6 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.03828, allocations: 131.4 kB / 308.7 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009582/0.03924, allocations: 0.5265 MB / 309.3 MB, free: 368 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.03925, allocations: 12 kB / 309.3 MB, free: 356 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.03926, allocations: 4 kB / 309.3 MB, free: 352 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.03927, allocations: 7.969 kB / 309.3 MB, free: 344 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002177/0.04144, allocations: 1.712 MB / 311 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.04145, allocations: 4 kB / 311 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005651/0.04202, allocations: 191.9 kB / 311.2 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004438/0.04246, allocations: 166.6 kB / 311.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.954e-05/0.04251, allocations: 24 kB / 311.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003297/0.04581, allocations: 7.102 MB / 318.5 MB, free: 6.609 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.04581, allocations: 0 / 318.5 MB, free: 6.609 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.04711, allocations: 1.154 MB / 319.6 MB, free: 5.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.04736, allocations: 171.3 kB / 319.8 MB, free: 5.242 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.674e-05/0.04745, allocations: 27.94 kB / 319.8 MB, free: 5.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003414/0.04779, allocations: 31.98 kB / 319.8 MB, free: 5.184 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.04791, allocations: 88.39 kB / 319.9 MB, free: 5.098 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.491e-05/0.04796, allocations: 27.98 kB / 320 MB, free: 5.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002715/0.04823, allocations: 346.6 kB / 320.3 MB, free: 4.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04823, allocations: 0 / 320.3 MB, free: 4.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007289/0.04896, allocations: 264 kB / 320.6 MB, free: 4.473 MB / 298.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.0001618/0.04912, allocations: 131.1 kB / 320.7 MB, free: 4.336 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.0502, allocations: 1.066 MB / 321.8 MB, free: 3.215 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.0502, allocations: 0 / 321.8 MB, free: 3.215 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008039/0.05101, allocations: 1.016 MB / 322.8 MB, free: 2.125 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008199/0.05183, allocations: 212.6 kB / 323 MB, free: 1.926 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.05455, allocations: 1.873 MB / 324.8 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001694/0.05472, allocations: 202.9 kB / 325 MB, free: 15.77 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000378/0.0551, allocations: 115.6 kB / 325.2 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004565/0.05556, allocations: 294 kB / 325.4 MB, free: 15.37 MB / 314.7 MB Notification: Performance of SimCode: time 8.12e-07/0.05556, allocations: 0 / 325.4 MB, free: 15.37 MB / 314.7 MB Notification: Performance of Templates: time 0.02028/0.07583, allocations: 14.02 MB / 339.5 MB, free: 1.547 MB / 314.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.1569102872163057]