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.0009937/0.0009937, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001457/0.001457, allocations: 147.5 kB / 24.9 MB, free: 8.691 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.8839/0.8839, allocations: 173.3 MB / 201.5 MB, free: 9.207 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.202e-06/1.202e-06, allocations: 0 / 268.5 MB, free: 6.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.34e-05/2.461e-05, allocations: 6.25 kB / 268.5 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.01522/0.01524, allocations: 6.099 MB / 274.6 MB, free: 76 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004462/0.0197, allocations: 1.88 MB / 276.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001138/0.02084, allocations: 19.88 kB / 276.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007334/0.02158, allocations: 214.1 kB / 276.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001519/0.02309, allocations: 424.5 kB / 277.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009388/0.02403, allocations: 375.5 kB / 277.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002046/0.02608, allocations: 1.537 MB / 279 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006532/0.02673, allocations: 333.8 kB / 279.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001462/0.02819, allocations: 0.8537 MB / 280.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009024/0.0291, allocations: 478.7 kB / 280.6 MB, free: 9.938 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003595/0.02946, allocations: 152 kB / 280.8 MB, free: 9.789 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002475/0.0297, allocations: 156 kB / 280.9 MB, free: 9.637 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001687/0.02987, allocations: 299 kB / 281.2 MB, free: 9.344 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003896/0.03026, allocations: 459 kB / 281.7 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009201/0.03118, allocations: 0.946 MB / 282.6 MB, free: 7.945 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.03119, allocations: 0 / 282.6 MB, free: 7.945 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.03119, allocations: 0 / 282.6 MB, free: 7.945 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.903e-05/0.03121, allocations: 0 / 282.6 MB, free: 7.945 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.001736/0.03294, allocations: 1.317 MB / 283.9 MB, free: 6.602 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.03298, allocations: 8.922 kB / 284 MB, free: 6.594 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.03317, allocations: 164.8 kB / 284.1 MB, free: 6.434 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006439/0.03382, allocations: 433 kB / 284.5 MB, free: 5.984 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.578e-05/0.03387, allocations: 74.36 kB / 284.6 MB, free: 5.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.743e-05/0.03397, allocations: 96.38 kB / 284.7 MB, free: 5.816 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008253/0.0348, allocations: 0.7478 MB / 285.4 MB, free: 5.043 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.044e-05/0.03483, allocations: 12.12 kB / 285.5 MB, free: 5.031 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.893e-05/0.03487, allocations: 36.38 kB / 285.5 MB, free: 4.996 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/0.03489, allocations: 31.94 kB / 285.5 MB, free: 4.965 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004102/0.0353, allocations: 284 kB / 285.8 MB, free: 4.684 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.03803, allocations: 1.948 MB / 287.8 MB, free: 2.676 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005648/0.03859, allocations: 466.2 kB / 288.2 MB, free: 2.207 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002173/0.03881, allocations: 191.1 kB / 288.4 MB, free: 2.016 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.439e-05/0.03885, allocations: 24.42 kB / 288.4 MB, free: 1.988 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.03888, allocations: 47.06 kB / 288.5 MB, free: 1.934 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.425e-06/0.03889, allocations: 0 / 288.5 MB, free: 1.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=113): time 0.1137/0.1526, allocations: 2.508 MB / 291 MB, free: 28.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/0.1526, allocations: 88.89 kB / 291.1 MB, free: 28.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004184/0.1531, allocations: 471.3 kB / 291.5 MB, free: 28.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.296e-05/0.1531, allocations: 44.86 kB / 291.6 MB, free: 28.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.1533, allocations: 383.1 kB / 291.9 MB, free: 28.46 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002135/0.1535, allocations: 403 kB / 292.3 MB, free: 28.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/0.1537, allocations: 187.8 kB / 292.5 MB, free: 28.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.86e-05/0.1538, allocations: 399.9 kB / 292.9 MB, free: 27.92 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.154, allocations: 112 kB / 293 MB, free: 27.92 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002399/0.1542, allocations: 264.4 kB / 293.3 MB, free: 27.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004894/0.1547, allocations: 465 kB / 293.7 MB, free: 27.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1547, allocations: 1.094 kB / 293.7 MB, free: 27.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.0007946/0.1555, allocations: 0.5819 MB / 294.3 MB, free: 27.61 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1555, allocations: 5.938 kB / 294.3 MB, free: 27.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.1555, allocations: 3.844 kB / 294.3 MB, free: 27.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003194/0.1559, allocations: 118.6 kB / 294.4 MB, free: 27.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005215/0.1564, allocations: 232.7 kB / 294.7 MB, free: 27.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/0.158, allocations: 4.064 MB / 298.7 MB, free: 23.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003395/0.1584, allocations: 36.05 kB / 298.8 MB, free: 23.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.1584, allocations: 32.81 kB / 298.8 MB, free: 23.91 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 (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 (127): * Single equations (assignments): 124 * 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.0002029/0.1586, allocations: 175.5 kB / 299 MB, free: 23.79 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.1587, allocations: 94.66 kB / 299.1 MB, free: 23.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005239/0.1592, allocations: 443.6 kB / 299.5 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.1593, allocations: 14.67 kB / 299.5 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.1593, allocations: 4.25 kB / 299.5 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.1593, allocations: 6.141 kB / 299.5 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001685/0.161, allocations: 1.273 MB / 300.8 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.161, allocations: 1.406 kB / 300.8 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004407/0.1614, allocations: 189.4 kB / 301 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003646/0.1618, allocations: 151.1 kB / 301.1 MB, free: 23.31 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.642e-05/0.1618, allocations: 34.55 kB / 301.2 MB, free: 23.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001632/0.1635, allocations: 4.856 MB / 306 MB, free: 18.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1635, allocations: 5.219 kB / 306 MB, free: 18.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009727/0.1644, allocations: 0.8946 MB / 306.9 MB, free: 18.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.1645, allocations: 66.55 kB / 307 MB, free: 18.42 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.389e-05/0.1646, allocations: 23.3 kB / 307 MB, free: 18.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002347/0.1648, allocations: 36.41 kB / 307 MB, free: 18.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.165, allocations: 83.56 kB / 307.1 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.222e-05/0.165, allocations: 22.62 kB / 307.1 MB, free: 18.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002153/0.1652, allocations: 212.2 kB / 307.3 MB, free: 18.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.1652, allocations: 0 / 307.3 MB, free: 18.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007095/0.1659, allocations: 252.3 kB / 307.6 MB, free: 18.39 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 (102): * Single equations (assignments): 98 * 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.0001215/0.1661, allocations: 119 kB / 307.7 MB, free: 18.31 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008258/0.1669, allocations: 0.8569 MB / 308.6 MB, free: 17.93 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/0.1669, allocations: 5.906 kB / 308.6 MB, free: 17.93 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004892/0.1674, allocations: 0.7776 MB / 309.3 MB, free: 17.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.1679, allocations: 184.1 kB / 309.5 MB, free: 17.42 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.1698, allocations: 1.728 MB / 311.3 MB, free: 16.6 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001293/0.1699, allocations: 199.7 kB / 311.5 MB, free: 16.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003067/0.1703, allocations: 113.4 kB / 311.6 MB, free: 16.48 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00029/0.1705, allocations: 232.8 kB / 311.8 MB, free: 16.44 MB / 266.7 MB Notification: Performance of SimCode: time 8.62e-07/0.1705, allocations: 0 / 311.8 MB, free: 16.44 MB / 266.7 MB Notification: Performance of Templates: time 0.01469/0.1852, allocations: 13.07 MB / 324.9 MB, free: 5.098 MB / 266.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: 2.995307727716863]