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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0008732/0.0008733, allocations: 175 kB / 17.39 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.261/1.261, allocations: 223.3 MB / 241.4 MB, free: 11.68 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007473/0.0007473, allocations: 91.3 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003294/0.0003295, allocations: 15.94 kB / 352.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2023, allocations: 50.4 MB / 402.8 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09915/0.3015, allocations: 89.28 MB / 492 MB, free: 7.059 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.3018, allocations: 89.14 kB / 492.1 MB, free: 6.973 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Magnetic/FluxTubes/Examples/MovingCoilActuator/Components/ConstantActuator.mo:67:3-67:83:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.2384/0.5401, allocations: 36.9 MB / 0.5166 GB, free: 93.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5402, allocations: 0 / 0.5166 GB, free: 93.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.218e-05/0.5402, allocations: 32.38 kB / 0.5166 GB, free: 93.83 MB / 378.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.002477/0.5427, allocations: 1.227 MB / 0.5178 GB, free: 93.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.5428, allocations: 10.41 kB / 0.5179 GB, free: 93.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002997/0.5431, allocations: 117.4 kB / 0.518 GB, free: 93.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009289/0.544, allocations: 0.629 MB / 0.5186 GB, free: 92.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.5442, allocations: 78.88 kB / 0.5187 GB, free: 92.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.5443, allocations: 105.3 kB / 0.5188 GB, free: 92.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001787/0.5461, allocations: 1.028 MB / 0.5198 GB, free: 92.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.161e-05/0.5462, allocations: 10.67 kB / 0.5198 GB, free: 92.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.073e-05/0.5463, allocations: 38.53 kB / 0.5198 GB, free: 92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.5463, allocations: 24.78 kB / 0.5198 GB, free: 92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/0.5481, allocations: 0.9426 MB / 0.5208 GB, free: 91.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004446/0.5525, allocations: 3.584 MB / 0.5243 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.5539, allocations: 0.8762 MB / 0.5251 GB, free: 88.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008468/0.5547, allocations: 0.5186 MB / 0.5256 GB, free: 88.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.239e-05/0.5548, allocations: 17.19 kB / 0.5256 GB, free: 88.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.5548, allocations: 47.11 kB / 0.5257 GB, free: 88.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=95): time 2.956e-06/0.5548, allocations: 0 / 0.5257 GB, free: 88.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.009758/0.5646, allocations: 5.087 MB / 0.5306 GB, free: 83.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.245e-05/0.5646, allocations: 98.2 kB / 0.5307 GB, free: 82.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006924/0.5653, allocations: 0.6007 MB / 0.5313 GB, free: 82.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.772e-05/0.5654, allocations: 49.7 kB / 0.5314 GB, free: 82.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/0.5656, allocations: 420.4 kB / 0.5318 GB, free: 81.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/0.5659, allocations: 449 kB / 0.5322 GB, free: 81.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.259e-05/0.5659, allocations: 24 kB / 0.5322 GB, free: 81.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.566, allocations: 398.7 kB / 0.5326 GB, free: 81.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008256/0.5669, allocations: 442.4 kB / 0.533 GB, free: 80.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009224/0.5678, allocations: 0.5904 MB / 0.5336 GB, free: 80 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001625/0.5694, allocations: 1.029 MB / 0.5346 GB, free: 78.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.5695, allocations: 0 / 0.5346 GB, free: 78.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.002286/0.5718, allocations: 1.38 MB / 0.536 GB, free: 77.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.5718, allocations: 4 kB / 0.536 GB, free: 77.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.5718, allocations: 4 kB / 0.536 GB, free: 77.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003882/0.5722, allocations: 146.6 kB / 0.5361 GB, free: 77.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.5733, allocations: 291.6 kB / 0.5364 GB, free: 77.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002741/0.576, allocations: 4.779 MB / 0.541 GB, free: 71.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000811/0.5768, allocations: 80.02 kB / 0.5411 GB, free: 71.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-05/0.5769, allocations: 39.98 kB / 0.5412 GB, free: 71.81 MB / 378.7 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 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004402/0.5774, allocations: 289.6 kB / 0.5414 GB, free: 71.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/0.5776, allocations: 94.91 kB / 0.5415 GB, free: 71.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001469/0.579, allocations: 0.8663 MB / 0.5424 GB, free: 70.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.5791, allocations: 12 kB / 0.5424 GB, free: 70.53 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.5791, allocations: 4 kB / 0.5424 GB, free: 70.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.5791, allocations: 7.969 kB / 0.5424 GB, free: 70.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004091/0.5832, allocations: 3.122 MB / 0.5454 GB, free: 67.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.5832, allocations: 4 kB / 0.5455 GB, free: 67.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009691/0.5842, allocations: 259.9 kB / 0.5457 GB, free: 67.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000314/0.5845, allocations: 122.5 kB / 0.5458 GB, free: 66.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.872e-05/0.5846, allocations: 31.98 kB / 0.5458 GB, free: 66.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002293/0.5869, allocations: 4.374 MB / 0.5501 GB, free: 62.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5869, allocations: 8.016 kB / 0.5501 GB, free: 62.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002981/0.5899, allocations: 2.043 MB / 0.5521 GB, free: 60.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002583/0.5902, allocations: 179.8 kB / 0.5523 GB, free: 59.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/0.5904, allocations: 27.98 kB / 0.5523 GB, free: 59.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006868/0.5911, allocations: 75.95 kB / 0.5524 GB, free: 59.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.5912, allocations: 92.47 kB / 0.5525 GB, free: 59.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-05/0.5913, allocations: 36 kB / 0.5525 GB, free: 59.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005705/0.5919, allocations: 447 kB / 0.5529 GB, free: 59.17 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5919, allocations: 0 / 0.5529 GB, free: 59.17 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001044/0.5929, allocations: 276 kB / 0.5532 GB, free: 58.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.i,cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i) * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002263/0.5932, allocations: 166.8 kB / 0.5534 GB, free: 58.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002331/0.5955, allocations: 1.518 MB / 0.5548 GB, free: 57.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.5955, allocations: 0 / 0.5548 GB, free: 57.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/0.5967, allocations: 0.9925 MB / 0.5558 GB, free: 56.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/0.5981, allocations: 179.3 kB / 0.556 GB, free: 55.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003583/0.6017, allocations: 2.823 MB / 0.5587 GB, free: 53.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004472/0.6022, allocations: 1.036 MB / 0.5598 GB, free: 52.06 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006259/0.6028, allocations: 127.8 kB / 0.5599 GB, free: 51.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002189/0.603, allocations: 79.41 kB / 0.56 GB, free: 51.86 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.603, allocations: 0 / 0.56 GB, free: 51.86 MB / 378.7 MB Notification: Performance of Templates: time 0.01836/0.6214, allocations: 11.76 MB / 0.5714 GB, free: 40.2 MB / 378.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches