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.0009272/0.0009272, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009202/0.0009202, allocations: 169 kB / 24.91 MB, free: 8.723 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.8361/0.8361, allocations: 177.1 MB / 205.3 MB, free: 4.492 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.814e-06/1.814e-06, allocations: 0 / 273.4 MB, free: 4.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.183e-05/1.365e-05, allocations: 3.344 kB / 273.5 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.006443/0.006456, allocations: 6.203 MB / 279.7 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00262/0.009077, allocations: 1.961 MB / 281.6 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000337/0.009414, allocations: 23.88 kB / 281.6 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004412/0.009855, allocations: 214 kB / 281.8 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007042/0.01056, allocations: 444.4 kB / 282.3 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005316/0.01109, allocations: 375.5 kB / 282.6 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001288/0.01238, allocations: 1.557 MB / 284.2 MB, free: 9.656 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004169/0.0128, allocations: 333.9 kB / 284.5 MB, free: 9.293 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008134/0.01361, allocations: 0.8848 MB / 285.4 MB, free: 8.406 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005076/0.01412, allocations: 486.6 kB / 285.9 MB, free: 7.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.01427, allocations: 152 kB / 286 MB, free: 7.781 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004483/0.01471, allocations: 160 kB / 286.2 MB, free: 7.625 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001868/0.0149, allocations: 303 kB / 286.5 MB, free: 7.328 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003696/0.01527, allocations: 470.9 kB / 287 MB, free: 6.867 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008659/0.01614, allocations: 0.9577 MB / 287.9 MB, free: 5.906 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.01614, allocations: 0 / 287.9 MB, free: 5.906 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.01614, allocations: 0 / 287.9 MB, free: 5.906 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.01615, allocations: 0 / 287.9 MB, free: 5.906 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.001623/0.01777, allocations: 1.34 MB / 289.2 MB, free: 4.539 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.81e-05/0.0178, allocations: 8.031 kB / 289.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003963/0.01819, allocations: 204.7 kB / 289.5 MB, free: 4.332 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005903/0.01878, allocations: 433 kB / 289.9 MB, free: 3.883 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.168e-05/0.01885, allocations: 74.38 kB / 290 MB, free: 3.809 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002228/0.01907, allocations: 99.94 kB / 290 MB, free: 3.711 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008191/0.01989, allocations: 0.7316 MB / 290.8 MB, free: 2.957 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.892e-05/0.01992, allocations: 7.953 kB / 290.8 MB, free: 2.949 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.909e-05/0.01998, allocations: 44 kB / 290.8 MB, free: 2.906 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.01999, allocations: 24 kB / 290.9 MB, free: 2.883 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004739/0.02047, allocations: 284 kB / 291.1 MB, free: 2.605 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002735/0.0232, allocations: 1.963 MB / 293.1 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005491/0.02375, allocations: 457.2 kB / 293.5 MB, free: 116 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002554/0.02401, allocations: 189.8 kB / 293.7 MB, free: 15.93 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.075e-05/0.02405, allocations: 24.48 kB / 293.8 MB, free: 15.9 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.02408, allocations: 50.81 kB / 293.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of pre-optimization done (n=94): time 2.434e-06/0.02408, allocations: 0 / 293.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=117): time 0.004231/0.02831, allocations: 2.538 MB / 296.3 MB, free: 13.2 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.02835, allocations: 97.64 kB / 296.4 MB, free: 13.08 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003884/0.02874, allocations: 491 kB / 296.9 MB, free: 12.59 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.372e-05/0.02879, allocations: 45.7 kB / 297 MB, free: 12.54 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/0.02904, allocations: 382.2 kB / 297.3 MB, free: 12.16 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.02921, allocations: 420.3 kB / 297.7 MB, free: 11.75 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.02937, allocations: 186.8 kB / 297.9 MB, free: 11.56 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.02947, allocations: 406.6 kB / 298.3 MB, free: 11.15 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.02961, allocations: 106.6 kB / 298.4 MB, free: 11.05 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.02981, allocations: 269.6 kB / 298.7 MB, free: 10.75 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004435/0.03025, allocations: 485.1 kB / 299.2 MB, free: 10.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.03026, allocations: 0 / 299.2 MB, free: 10.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.0005935/0.03085, allocations: 0.5883 MB / 299.8 MB, free: 9.625 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.03087, allocations: 4.344 kB / 299.8 MB, free: 9.621 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.03087, allocations: 11.98 kB / 299.8 MB, free: 9.609 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002444/0.03112, allocations: 114.4 kB / 299.9 MB, free: 9.488 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004532/0.03157, allocations: 231.7 kB / 300.1 MB, free: 9.262 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/0.03327, allocations: 4.062 MB / 304.2 MB, free: 4.941 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/0.03351, allocations: 35.98 kB / 304.2 MB, free: 4.906 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-05/0.03354, allocations: 27.98 kB / 304.2 MB, free: 4.879 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.0001649/0.03371, allocations: 175.8 kB / 304.4 MB, free: 4.699 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.748e-05/0.0338, allocations: 87.92 kB / 304.5 MB, free: 4.613 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004477/0.03425, allocations: 450.8 kB / 304.9 MB, free: 4.152 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.03426, allocations: 12 kB / 304.9 MB, free: 4.141 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.03426, allocations: 4 kB / 304.9 MB, free: 4.137 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.03427, allocations: 11.97 kB / 305 MB, free: 4.125 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001333/0.0356, allocations: 1.286 MB / 306.2 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.03561, allocations: 0 / 306.2 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003967/0.036, allocations: 195.8 kB / 306.4 MB, free: 2.602 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003095/0.03631, allocations: 147.4 kB / 306.6 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.55e-05/0.03635, allocations: 23.98 kB / 306.6 MB, free: 2.422 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00188/0.03823, allocations: 4.864 MB / 311.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.03823, allocations: 3.938 kB / 311.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007774/0.03901, allocations: 0.8939 MB / 312.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001472/0.03915, allocations: 91.36 kB / 312.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.4e-05/0.03922, allocations: 23.94 kB / 312.5 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.03944, allocations: 36.02 kB / 312.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.41e-05/0.03953, allocations: 80.5 kB / 312.6 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.859e-05/0.03956, allocations: 28.12 kB / 312.6 MB, free: 12.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001578/0.03972, allocations: 220.4 kB / 312.8 MB, free: 11.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03972, allocations: 0 / 312.8 MB, free: 11.81 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004792/0.0402, allocations: 256 kB / 313.1 MB, free: 11.56 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.000107/0.04031, allocations: 124.2 kB / 313.2 MB, free: 11.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000678/0.04098, allocations: 0.8617 MB / 314.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.04099, allocations: 8.688 kB / 314.1 MB, free: 10.53 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004737/0.04147, allocations: 0.7781 MB / 314.8 MB, free: 9.699 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/0.04195, allocations: 206.5 kB / 315.1 MB, free: 9.504 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.04378, allocations: 1.773 MB / 316.8 MB, free: 7.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.04391, allocations: 198.9 kB / 317 MB, free: 7.469 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002887/0.0442, allocations: 115.6 kB / 317.1 MB, free: 7.352 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000326/0.04452, allocations: 249.2 kB / 317.4 MB, free: 7.109 MB / 298.7 MB Notification: Performance of SimCode: time 7.12e-07/0.04452, allocations: 4 kB / 317.4 MB, free: 7.105 MB / 298.7 MB Notification: Performance of Templates: time 0.01528/0.05981, allocations: 13.66 MB / 331 MB, free: 9.691 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: 2.7184929940849543]