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.001457/0.001457, allocations: 176.6 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 221.5 MB / 230.3 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009091/0.0009091, allocations: 110.5 kB / 281.2 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.567e-05/1.57e-05, allocations: 0 / 337 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1026, allocations: 50.42 MB / 387.5 MB, free: 7.543 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.374/0.4767, allocations: 91.05 MB / 478.5 MB, free: 3.773 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/0.4771, allocations: 89.83 kB / 478.6 MB, free: 3.688 MB / 346.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.05941/0.5365, allocations: 22.52 MB / 0.4894 GB, free: 13.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5366, allocations: 4 kB / 0.4894 GB, free: 13.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.556e-05/0.5366, allocations: 27.98 kB / 0.4894 GB, free: 13.07 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.002418/0.539, allocations: 1.23 MB / 0.4906 GB, free: 11.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.5391, allocations: 11.98 kB / 0.4906 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002374/0.5393, allocations: 126.5 kB / 0.4907 GB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/0.5405, allocations: 0.6615 MB / 0.4914 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.5406, allocations: 50 kB / 0.4914 GB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001433/0.5408, allocations: 52 kB / 0.4915 GB, free: 10.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001498/0.5423, allocations: 0.7186 MB / 0.4922 GB, free: 10.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.5439, allocations: 0.799 MB / 0.493 GB, free: 9.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.792e-05/0.5439, allocations: 7.906 kB / 0.493 GB, free: 9.312 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.161e-05/0.544, allocations: 3.938 kB / 0.493 GB, free: 9.309 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.544, allocations: 24 kB / 0.493 GB, free: 9.285 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005934/0.55, allocations: 3.681 MB / 0.4966 GB, free: 5.418 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/0.5519, allocations: 0.803 MB / 0.4974 GB, free: 4.598 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000556/0.5525, allocations: 353.4 kB / 0.4977 GB, free: 4.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.331e-05/0.5525, allocations: 16.55 kB / 0.4977 GB, free: 4.234 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/0.5526, allocations: 39.12 kB / 0.4978 GB, free: 4.188 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 2.926e-06/0.5526, allocations: 0 / 0.4978 GB, free: 4.188 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.0028/0.5554, allocations: 1.401 MB / 0.4991 GB, free: 2.781 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.5555, allocations: 89.55 kB / 0.4992 GB, free: 2.676 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009242/0.5564, allocations: 0.6912 MB / 0.4999 GB, free: 1.977 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.558e-05/0.5564, allocations: 25.7 kB / 0.4999 GB, free: 1.945 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003646/0.5568, allocations: 0.5183 MB / 0.5004 GB, free: 1.418 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002069/0.557, allocations: 275.8 kB / 0.5007 GB, free: 1.145 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.34e-05/0.5571, allocations: 0 / 0.5007 GB, free: 1.145 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.5573, allocations: 398.7 kB / 0.5011 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004498/0.5577, allocations: 278.6 kB / 0.5013 GB, free: 484 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005549/0.5583, allocations: 442.3 kB / 0.5018 GB, free: 15.98 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004999/0.5588, allocations: 321.9 kB / 0.5021 GB, free: 15.67 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.5588, allocations: 4 kB / 0.5021 GB, free: 15.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001295/0.5601, allocations: 0.8299 MB / 0.5029 GB, free: 14.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.5602, allocations: 12.09 kB / 0.5029 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.5602, allocations: 4 kB / 0.5029 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.5602, allocations: 11.94 kB / 0.5029 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.5617, allocations: 347.5 kB / 0.5032 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.5617, allocations: 8 kB / 0.5032 GB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008664/0.5626, allocations: 95.91 kB / 0.5033 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.442e-05/0.5627, allocations: 39.98 kB / 0.5034 GB, free: 14.32 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 121 * 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.0001737/0.5628, allocations: 134.7 kB / 0.5035 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/0.563, allocations: 98.77 kB / 0.5036 GB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006219/0.5637, allocations: 325.4 kB / 0.5039 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.5637, allocations: 11.98 kB / 0.5039 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.5637, allocations: 0 / 0.5039 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.5637, allocations: 7.984 kB / 0.5039 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0039/0.5676, allocations: 2.663 MB / 0.5065 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/0.5676, allocations: 12 kB / 0.5065 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.5687, allocations: 276.1 kB / 0.5068 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.161e-05/0.5687, allocations: 16 kB / 0.5068 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.848e-05/0.5687, allocations: 19.98 kB / 0.5068 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.602e-05/0.5688, allocations: 19.94 kB / 0.5069 GB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.157e-05/0.5688, allocations: 15.94 kB / 0.5069 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.5705, allocations: 1.625 MB / 0.5085 GB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002429/0.5707, allocations: 192 kB / 0.5086 GB, free: 8.262 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.5708, allocations: 16 kB / 0.5087 GB, free: 8.246 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000689/0.5715, allocations: 67.94 kB / 0.5087 GB, free: 8.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.5717, allocations: 95.69 kB / 0.5088 GB, free: 8.086 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.518e-05/0.5717, allocations: 36 kB / 0.5089 GB, free: 8.051 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006645/0.5724, allocations: 0.5265 MB / 0.5094 GB, free: 7.527 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5724, allocations: 0 / 0.5094 GB, free: 7.527 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009439/0.5734, allocations: 203.9 kB / 0.5096 GB, free: 7.328 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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.0007717/0.5742, allocations: 349 kB / 0.5099 GB, free: 7.055 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.5753, allocations: 0.6593 MB / 0.5105 GB, free: 6.398 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.5753, allocations: 5 kB / 0.5105 GB, free: 6.395 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006023/0.5759, allocations: 380.3 kB / 0.5109 GB, free: 6.023 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009433/0.5768, allocations: 165.3 kB / 0.5111 GB, free: 5.863 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002696/0.5795, allocations: 1.502 MB / 0.5125 GB, free: 4.195 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006653/0.5802, allocations: 1.057 MB / 0.5136 GB, free: 3.113 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006168/0.5808, allocations: 134.5 kB / 0.5137 GB, free: 2.977 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002336/0.5811, allocations: 75.41 kB / 0.5138 GB, free: 2.902 MB / 394.7 MB Notification: Performance of SimCode: time 7.82e-07/0.5811, allocations: 0 / 0.5138 GB, free: 2.902 MB / 394.7 MB Notification: Performance of Templates: time 0.01752/0.5986, allocations: 9.3 MB / 0.5228 GB, free: 9.68 MB / 410.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