Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.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.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.flange.f|pmActuator.flange.f|pmActuator.coil.Phi|pmActuator.coil.L_stat",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.flange.f|pmActuator.flange.f|pmActuator.coil.Phi|pmActuator.coil.L_stat",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009832/0.0009833, allocations: 181.3 kB / 16.39 MB, free: 5.766 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.238/1.238, allocations: 223.2 MB / 240.3 MB, free: 10.12 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.0008575/0.0008575, allocations: 97.12 kB / 291.5 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002487/0.0002487, allocations: 8 kB / 351.1 MB, free: 15.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2142, allocations: 50.41 MB / 401.5 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1052/0.3195, allocations: 91.79 MB / 493.3 MB, free: 4.621 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.3198, allocations: 99.92 kB / 493.4 MB, free: 4.523 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.2247/0.5445, allocations: 22.72 MB / 0.504 GB, free: 91.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5445, allocations: 0 / 0.504 GB, free: 91.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.092e-05/0.5446, allocations: 21.62 kB / 0.504 GB, free: 91.2 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002689/0.5473, allocations: 1.351 MB / 0.5054 GB, free: 90.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/0.5474, allocations: 11.44 kB / 0.5054 GB, free: 90.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002844/0.5477, allocations: 130.6 kB / 0.5055 GB, free: 90.44 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.5489, allocations: 0.6592 MB / 0.5061 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/0.5491, allocations: 77.41 kB / 0.5062 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.5492, allocations: 95.67 kB / 0.5063 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002025/0.5513, allocations: 1.04 MB / 0.5073 GB, free: 90.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/0.5513, allocations: 7.156 kB / 0.5073 GB, free: 90.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.063e-05/0.5514, allocations: 40.64 kB / 0.5074 GB, free: 90.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.5514, allocations: 23.97 kB / 0.5074 GB, free: 90.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/0.5532, allocations: 0.9782 MB / 0.5083 GB, free: 90.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004449/0.5577, allocations: 3.857 MB / 0.5121 GB, free: 88.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001953/0.5596, allocations: 0.9624 MB / 0.513 GB, free: 88.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.306e-05/0.5597, allocations: 15.86 kB / 0.5131 GB, free: 88.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.964e-05/0.5597, allocations: 51.67 kB / 0.5131 GB, free: 88.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 2.033e-06/0.5597, allocations: 0 / 0.5131 GB, free: 88.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.004569/0.5643, allocations: 2.21 MB / 0.5153 GB, free: 87.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.5643, allocations: 90.98 kB / 0.5154 GB, free: 87.76 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008479/0.5652, allocations: 0.8243 MB / 0.5162 GB, free: 87.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.276e-05/0.5653, allocations: 41.7 kB / 0.5162 GB, free: 87.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002258/0.5655, allocations: 0.5031 MB / 0.5167 GB, free: 86.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.5656, allocations: 278.1 kB / 0.517 GB, free: 86.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/0.5657, allocations: 16.59 kB / 0.517 GB, free: 86.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.791e-05/0.5657, allocations: 343 kB / 0.5173 GB, free: 86.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008497/0.5666, allocations: 415.7 kB / 0.5177 GB, free: 86.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008914/0.5675, allocations: 0.5619 MB / 0.5182 GB, free: 85.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008983/0.5684, allocations: 452.3 kB / 0.5187 GB, free: 85.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.5684, allocations: 0 / 0.5187 GB, free: 85.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002024/0.5704, allocations: 1.15 MB / 0.5198 GB, free: 85.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.5705, allocations: 10.09 kB / 0.5198 GB, free: 85.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.5705, allocations: 7.297 kB / 0.5198 GB, free: 85.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.5705, allocations: 9.906 kB / 0.5198 GB, free: 85.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/0.5718, allocations: 340.8 kB / 0.5201 GB, free: 85.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.705e-05/0.5718, allocations: 13.34 kB / 0.5202 GB, free: 85.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008794/0.5727, allocations: 122.3 kB / 0.5203 GB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-05/0.5728, allocations: 34.83 kB / 0.5203 GB, free: 85.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (117): * Single equations (assignments): 117 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003233/0.5731, allocations: 286.5 kB / 0.5206 GB, free: 85.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.5732, allocations: 95.88 kB / 0.5207 GB, free: 85.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009351/0.5742, allocations: 493 kB / 0.5211 GB, free: 84.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.5742, allocations: 9 kB / 0.5212 GB, free: 84.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.5742, allocations: 0 / 0.5212 GB, free: 84.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.5742, allocations: 10.52 kB / 0.5212 GB, free: 84.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003856/0.5781, allocations: 2.93 MB / 0.524 GB, free: 83.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/0.5781, allocations: 11.38 kB / 0.524 GB, free: 83.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009065/0.579, allocations: 261.5 kB / 0.5243 GB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.3e-05/0.579, allocations: 16.16 kB / 0.5243 GB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.935e-05/0.5791, allocations: 26.95 kB / 0.5243 GB, free: 83.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-05/0.5791, allocations: 27.61 kB / 0.5244 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.792e-06/0.5791, allocations: 15.69 kB / 0.5244 GB, free: 83.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.5808, allocations: 1.75 MB / 0.5261 GB, free: 81.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002218/0.581, allocations: 208.5 kB / 0.5263 GB, free: 81.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/0.5811, allocations: 28.48 kB / 0.5263 GB, free: 81.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006962/0.5819, allocations: 79.22 kB / 0.5264 GB, free: 81.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.582, allocations: 91.17 kB / 0.5265 GB, free: 81.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.523e-05/0.582, allocations: 34.84 kB / 0.5265 GB, free: 81.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006563/0.5827, allocations: 0.6331 MB / 0.5271 GB, free: 80.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5827, allocations: 0 / 0.5271 GB, free: 80.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007796/0.5835, allocations: 239.5 kB / 0.5273 GB, free: 80.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.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 (82): * Single equations (assignments): 82 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007966/0.5843, allocations: 414.9 kB / 0.5277 GB, free: 80.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001674/0.586, allocations: 0.8978 MB / 0.5286 GB, free: 79.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.586, allocations: 0 / 0.5286 GB, free: 79.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007821/0.5868, allocations: 464.8 kB / 0.5291 GB, free: 79.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009119/0.5877, allocations: 193.2 kB / 0.5292 GB, free: 78.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.5907, allocations: 2.447 MB / 0.5316 GB, free: 76.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.5912, allocations: 1.054 MB / 0.5327 GB, free: 75.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006011/0.5918, allocations: 128 kB / 0.5328 GB, free: 75.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002595/0.592, allocations: 78.8 kB / 0.5329 GB, free: 75.41 MB / 378.7 MB Notification: Performance of SimCode: time 6.11e-07/0.592, allocations: 0 / 0.5329 GB, free: 75.41 MB / 378.7 MB Notification: Performance of Templates: time 0.015/0.6071, allocations: 10.39 MB / 0.543 GB, free: 67.23 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches