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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=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.0.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.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 101.5 kB / 16.51 MB, free: 6.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009703/0.0009703, allocations: 194.2 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.00101, allocations: 45.69 kB / 300 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08245/0.08348, allocations: 49.44 MB / 349.4 MB, free: 4.879 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.006779/0.09028, allocations: 6.31 MB / 355.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002582/0.09289, allocations: 1.815 MB / 357.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003086/0.09323, allocations: 19.94 kB / 357.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004851/0.09372, allocations: 170.8 kB / 357.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006391/0.09437, allocations: 349.5 kB / 358 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000512/0.09489, allocations: 327.7 kB / 358.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001075/0.09598, allocations: 1.374 MB / 359.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005373/0.09653, allocations: 447.3 kB / 360.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004042/0.09694, allocations: 454.2 kB / 360.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004776/0.09742, allocations: 0.5483 MB / 361.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.09756, allocations: 76 kB / 361.2 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001604/0.09773, allocations: 76 kB / 361.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.09789, allocations: 231 kB / 361.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004425/0.09834, allocations: 0.5597 MB / 362.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00122/0.09957, allocations: 1.771 MB / 363.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.09958, allocations: 4 kB / 363.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.09959, allocations: 0 / 363.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.09961, allocations: 0 / 363.9 MB, free: 6.305 MB / 302.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.002679/0.1023, allocations: 1.442 MB / 365.3 MB, free: 4.809 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.1023, allocations: 12.03 kB / 365.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001817/0.1025, allocations: 119.5 kB / 365.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009837/0.1035, allocations: 0.6689 MB / 366.1 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.1036, allocations: 78.56 kB / 366.2 MB, free: 3.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.1038, allocations: 96.38 kB / 366.3 MB, free: 3.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001819/0.1056, allocations: 1.013 MB / 367.3 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.302e-05/0.1057, allocations: 11.89 kB / 367.3 MB, free: 2.758 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.607e-05/0.1058, allocations: 36 kB / 367.3 MB, free: 2.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.1058, allocations: 24 kB / 367.4 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001836/0.1076, allocations: 0.8679 MB / 368.2 MB, free: 1.836 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1527/0.2603, allocations: 3.33 MB / 371.6 MB, free: 23.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/0.2618, allocations: 0.8115 MB / 372.4 MB, free: 23.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008666/0.2627, allocations: 471.9 kB / 372.8 MB, free: 23.72 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.7e-05/0.2627, allocations: 16.3 kB / 372.9 MB, free: 23.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.2628, allocations: 42.75 kB / 372.9 MB, free: 23.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.846e-06/0.2628, allocations: 3.531 kB / 372.9 MB, free: 23.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.008888/0.2717, allocations: 4.299 MB / 377.2 MB, free: 21.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.2717, allocations: 90.94 kB / 377.3 MB, free: 21.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007483/0.2725, allocations: 0.6002 MB / 377.9 MB, free: 21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.2725, allocations: 45.98 kB / 377.9 MB, free: 20.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.2727, allocations: 429 kB / 378.4 MB, free: 20.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.2729, allocations: 391.5 kB / 378.7 MB, free: 20.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002698/0.2732, allocations: 185.4 kB / 378.9 MB, free: 20.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.2733, allocations: 400.7 kB / 379.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008231/0.2742, allocations: 380.1 kB / 379.7 MB, free: 19.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008688/0.275, allocations: 0.5111 MB / 380.2 MB, free: 19.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001576/0.2766, allocations: 0.8847 MB / 381.1 MB, free: 19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2766, allocations: 1.906 kB / 381.1 MB, free: 19 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00222/0.2789, allocations: 1.185 MB / 382.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.2789, allocations: 12.03 kB / 382.3 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.2789, allocations: 3.094 kB / 382.3 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003737/0.2793, allocations: 133.5 kB / 382.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.2803, allocations: 247.8 kB / 382.6 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002518/0.2829, allocations: 4.522 MB / 387.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006756/0.2836, allocations: 53.44 kB / 387.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-05/0.2836, allocations: 46.42 kB / 387.3 MB, free: 14.02 MB / 302.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.0003745/0.284, allocations: 281.9 kB / 387.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.2842, allocations: 92.08 kB / 387.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001478/0.2857, allocations: 0.7662 MB / 388.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.2857, allocations: 15.31 kB / 388.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.2857, allocations: 3 kB / 388.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.2857, allocations: 6.75 kB / 388.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003877/0.2896, allocations: 2.655 MB / 391.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.2896, allocations: 1.125 kB / 391.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008818/0.2905, allocations: 203.1 kB / 391.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004161/0.2909, allocations: 154.8 kB / 391.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-05/0.291, allocations: 30.92 kB / 391.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002605/0.2936, allocations: 5.579 MB / 397 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2936, allocations: 0 / 397 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002767/0.2964, allocations: 1.74 MB / 398.8 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001975/0.2966, allocations: 171.1 kB / 398.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.2967, allocations: 22.53 kB / 399 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005791/0.2973, allocations: 54.52 kB / 399 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/0.2975, allocations: 84.47 kB / 399.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.379e-05/0.2976, allocations: 32.45 kB / 399.1 MB, free: 5.168 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005503/0.2981, allocations: 439.2 kB / 399.6 MB, free: 4.914 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2981, allocations: 0 / 399.6 MB, free: 4.914 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001075/0.2992, allocations: 259.5 kB / 399.8 MB, free: 4.875 MB / 302.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.0001587/0.2994, allocations: 139.8 kB / 400 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002128/0.3015, allocations: 1.334 MB / 401.3 MB, free: 3.957 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3015, allocations: 0 / 401.3 MB, free: 3.957 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.3027, allocations: 1.003 MB / 402.3 MB, free: 3.234 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.3038, allocations: 164.7 kB / 402.4 MB, free: 3.141 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003552/0.3073, allocations: 2.597 MB / 405 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004955/0.3078, allocations: 1.024 MB / 406.1 MB, free: 15.83 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000641/0.3085, allocations: 119.6 kB / 406.2 MB, free: 15.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002322/0.3087, allocations: 75.41 kB / 406.3 MB, free: 15.64 MB / 318.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3087, allocations: 7.938 kB / 406.3 MB, free: 15.63 MB / 318.1 MB Notification: Performance of Templates: time 0.01882/0.3276, allocations: 11.28 MB / 417.6 MB, free: 4.453 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (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) 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) Reference file matches