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.001461/0.001461, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.001422/0.001422, allocations: 190.8 kB / 23.71 MB, free: 4.406 MB / 14.72 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 1.466/1.466, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001609/0.001609, allocations: 43.94 kB / 370.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2374, allocations: 52.19 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007662/0.2451, allocations: 5.613 MB / 428.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003353/0.2484, allocations: 1.759 MB / 430.4 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003939/0.2488, allocations: 23.88 kB / 430.5 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005993/0.2494, allocations: 210.1 kB / 430.7 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008272/0.2502, allocations: 400.9 kB / 431.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007043/0.2509, allocations: 375.6 kB / 431.4 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00152/0.2525, allocations: 1.495 MB / 432.9 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005339/0.253, allocations: 317.8 kB / 433.2 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006838/0.2537, allocations: 0.5607 MB / 433.8 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006903/0.2544, allocations: 0.5171 MB / 434.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002172/0.2546, allocations: 160 kB / 434.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002381/0.2548, allocations: 164 kB / 434.6 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002722/0.2551, allocations: 303 kB / 434.9 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005351/0.2556, allocations: 0.5251 MB / 435.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001886/0.2575, allocations: 1.864 MB / 437.3 MB, free: 164 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.2575, allocations: 3.984 kB / 437.3 MB, free: 160 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2575, allocations: 3.938 kB / 437.3 MB, free: 156 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.2575, allocations: 0 / 437.3 MB, free: 156 kB / 334.1 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.003052/0.2606, allocations: 1.393 MB / 438.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.2606, allocations: 12.03 kB / 438.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002282/0.2609, allocations: 124.2 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.2621, allocations: 0.6115 MB / 439.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.645e-05/0.2622, allocations: 74.38 kB / 439.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/0.2624, allocations: 112.2 kB / 439.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002031/0.2644, allocations: 1.056 MB / 440.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.828e-05/0.2645, allocations: 3.984 kB / 440.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.767e-05/0.2646, allocations: 36 kB / 440.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-05/0.2646, allocations: 24 kB / 440.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001982/0.2666, allocations: 0.8601 MB / 441.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005119/0.2717, allocations: 2.719 MB / 444.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/0.2732, allocations: 0.7683 MB / 445.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009146/0.2742, allocations: 435.6 kB / 445.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.105e-05/0.2742, allocations: 20.34 kB / 445.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/0.2743, allocations: 39.06 kB / 445.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.856e-06/0.2743, allocations: 0 / 445.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=115): time 0.009735/0.284, allocations: 3.943 MB / 449.5 MB, free: 3.641 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/0.2841, allocations: 85.77 kB / 449.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007774/0.2848, allocations: 0.5573 MB / 450.2 MB, free: 2.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.608e-05/0.2849, allocations: 49.7 kB / 450.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003304/0.2852, allocations: 441 kB / 450.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000329/0.2856, allocations: 420.3 kB / 451.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002993/0.2859, allocations: 182.9 kB / 451.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.2861, allocations: 390.7 kB / 451.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008631/0.2869, allocations: 378.4 kB / 452 MB, free: 1.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009705/0.2879, allocations: 0.512 MB / 452.5 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00179/0.2897, allocations: 0.8809 MB / 453.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.2897, allocations: 4 kB / 453.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002434/0.2921, allocations: 1.185 MB / 454.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.2922, allocations: 8 kB / 454.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.2922, allocations: 0 / 454.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004188/0.2926, allocations: 130.6 kB / 454.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.2937, allocations: 247.7 kB / 454.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004269/0.2979, allocations: 4.579 MB / 459.5 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007469/0.2987, allocations: 48.16 kB / 459.6 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.653e-05/0.2987, allocations: 43.98 kB / 459.6 MB, free: 9.094 MB / 366.1 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.0005058/0.2993, allocations: 272.8 kB / 459.9 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001678/0.2994, allocations: 91.42 kB / 460 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/0.3011, allocations: 0.7562 MB / 460.7 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.3011, allocations: 19.97 kB / 460.7 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.3011, allocations: 4 kB / 460.8 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/0.3011, allocations: 11.91 kB / 460.8 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004166/0.3053, allocations: 2.207 MB / 463 MB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.3053, allocations: 4 kB / 463 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008989/0.3062, allocations: 215.6 kB / 463.2 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004476/0.3067, allocations: 155.3 kB / 463.3 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.36e-05/0.3067, allocations: 27.98 kB / 463.4 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004611/0.3113, allocations: 5.477 MB / 468.8 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3113, allocations: 0 / 468.8 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003331/0.3147, allocations: 1.735 MB / 470.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.3149, allocations: 75.53 kB / 470.7 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.315, allocations: 24 kB / 470.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005906/0.3156, allocations: 55.95 kB / 470.7 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.3157, allocations: 84.44 kB / 470.8 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.55e-05/0.3158, allocations: 31.98 kB / 470.8 MB, free: 13.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005362/0.3163, allocations: 390.8 kB / 471.2 MB, free: 12.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3163, allocations: 0 / 471.2 MB, free: 12.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008853/0.3172, allocations: 256 kB / 471.5 MB, free: 12.7 MB / 382.1 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.0001747/0.3174, allocations: 131.1 kB / 471.6 MB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.3198, allocations: 1.295 MB / 472.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.331e-06/0.3198, allocations: 4 kB / 472.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.3214, allocations: 0.9678 MB / 473.9 MB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009455/0.3223, allocations: 183.8 kB / 474 MB, free: 10.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003824/0.3261, allocations: 2.159 MB / 476.2 MB, free: 7.828 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004907/0.3266, allocations: 436.7 kB / 476.6 MB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004905/0.3271, allocations: 115.3 kB / 476.7 MB, free: 7.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002286/0.3273, allocations: 75.42 kB / 476.8 MB, free: 7.18 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3274, allocations: 0 / 476.8 MB, free: 7.18 MB / 382.1 MB Notification: Performance of Templates: time 0.02366/0.351, allocations: 13.2 MB / 490 MB, free: 10.16 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.012111002579331]