Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009306/0.0009306, allocations: 199.4 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 226.5 MB / 245.3 MB, free: 8.25 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007173/0.0007173, allocations: 108.6 kB / 297.4 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002148/0.0002149, allocations: 8 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1987/0.1989, allocations: 51.29 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1027/0.3017, allocations: 93 MB / 0.4899 GB, free: 14.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.302, allocations: 91.95 kB / 0.49 GB, free: 14.53 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.2398/0.5418, allocations: 23.48 MB / 0.5129 GB, free: 90.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.5419, allocations: 0 / 0.5129 GB, free: 90.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.655e-05/0.542, allocations: 27.44 kB / 0.5129 GB, free: 90.69 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.003079/0.5451, allocations: 1.362 MB / 0.5143 GB, free: 89.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.5451, allocations: 7.219 kB / 0.5143 GB, free: 89.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006579/0.5458, allocations: 168 kB / 0.5144 GB, free: 89.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001152/0.547, allocations: 0.6804 MB / 0.5151 GB, free: 89.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.5471, allocations: 78.53 kB / 0.5152 GB, free: 89.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001932/0.5473, allocations: 96.31 kB / 0.5153 GB, free: 89.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.5491, allocations: 1.049 MB / 0.5163 GB, free: 89.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.5492, allocations: 11.56 kB / 0.5163 GB, free: 89.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.134e-05/0.5492, allocations: 35.66 kB / 0.5163 GB, free: 89.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.5493, allocations: 21.91 kB / 0.5164 GB, free: 89.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001824/0.5511, allocations: 0.9778 MB / 0.5173 GB, free: 88.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004946/0.5561, allocations: 3.874 MB / 0.5211 GB, free: 86.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002022/0.5581, allocations: 0.9561 MB / 0.522 GB, free: 86.19 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007852/0.5589, allocations: 467.2 kB / 0.5225 GB, free: 86.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.525e-05/0.559, allocations: 6.938 kB / 0.5225 GB, free: 86.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.559, allocations: 53.06 kB / 0.5225 GB, free: 85.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 3.527e-06/0.559, allocations: 0 / 0.5225 GB, free: 85.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.004892/0.5639, allocations: 2.304 MB / 0.5248 GB, free: 85.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/0.564, allocations: 92.47 kB / 0.5249 GB, free: 84.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001077/0.5651, allocations: 0.9205 MB / 0.5258 GB, free: 84.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.465e-05/0.5651, allocations: 41.7 kB / 0.5258 GB, free: 84.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002283/0.5653, allocations: 0.5087 MB / 0.5263 GB, free: 83.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.5655, allocations: 294.1 kB / 0.5266 GB, free: 83.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.991e-05/0.5655, allocations: 23.56 kB / 0.5266 GB, free: 83.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.678e-05/0.5656, allocations: 343.6 kB / 0.5269 GB, free: 83.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008938/0.5665, allocations: 432.4 kB / 0.5273 GB, free: 82.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009375/0.5675, allocations: 0.5778 MB / 0.5279 GB, free: 82.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001719/0.5692, allocations: 0.9607 MB / 0.5289 GB, free: 81.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.5692, allocations: 8 kB / 0.5289 GB, free: 81.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002253/0.5715, allocations: 1.177 MB / 0.53 GB, free: 80.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.5715, allocations: 8 kB / 0.53 GB, free: 80.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.5715, allocations: 4 kB / 0.53 GB, free: 80.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/0.5716, allocations: 8 kB / 0.53 GB, free: 80.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.5729, allocations: 354.3 kB / 0.5304 GB, free: 80.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.466e-05/0.5729, allocations: 11.94 kB / 0.5304 GB, free: 80.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009494/0.5739, allocations: 116.8 kB / 0.5305 GB, free: 79.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.057e-05/0.5739, allocations: 43.8 kB / 0.5305 GB, free: 79.88 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 (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.0004794/0.5744, allocations: 292.4 kB / 0.5308 GB, free: 79.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/0.5746, allocations: 102.8 kB / 0.5309 GB, free: 79.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001037/0.5757, allocations: 488.8 kB / 0.5314 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.5757, allocations: 8 kB / 0.5314 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.5757, allocations: 0 / 0.5314 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.5757, allocations: 9.203 kB / 0.5314 GB, free: 79.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0044/0.5801, allocations: 3.044 MB / 0.5344 GB, free: 76.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/0.5801, allocations: 12 kB / 0.5344 GB, free: 76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009033/0.581, allocations: 272.2 kB / 0.5346 GB, free: 75.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-05/0.5811, allocations: 19.94 kB / 0.5347 GB, free: 75.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.332e-05/0.5811, allocations: 24 kB / 0.5347 GB, free: 75.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-05/0.5812, allocations: 23.92 kB / 0.5347 GB, free: 75.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.195e-06/0.5812, allocations: 15.94 kB / 0.5347 GB, free: 75.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.5828, allocations: 1.294 MB / 0.536 GB, free: 74.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002712/0.5831, allocations: 207.8 kB / 0.5362 GB, free: 73.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/0.5833, allocations: 35.92 kB / 0.5362 GB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007807/0.5841, allocations: 83.94 kB / 0.5363 GB, free: 73.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.5842, allocations: 95.61 kB / 0.5364 GB, free: 73.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.608e-05/0.5843, allocations: 43.98 kB / 0.5364 GB, free: 73.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008551/0.5851, allocations: 0.6396 MB / 0.537 GB, free: 73.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5851, allocations: 0 / 0.537 GB, free: 73.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009329/0.5861, allocations: 239.9 kB / 0.5373 GB, free: 72.86 MB / 378.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 () * Number of clocked 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.0008275/0.5869, allocations: 421.9 kB / 0.5377 GB, free: 72.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001883/0.5888, allocations: 0.9241 MB / 0.5386 GB, free: 71.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.5888, allocations: 4 kB / 0.5386 GB, free: 71.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008533/0.5897, allocations: 486.6 kB / 0.539 GB, free: 71.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002487/0.5922, allocations: 266.5 kB / 0.5393 GB, free: 70.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003378/0.5956, allocations: 2.562 MB / 0.5418 GB, free: 68.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005509/0.5961, allocations: 1.031 MB / 0.5428 GB, free: 67.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003809/0.5965, allocations: 107.4 kB / 0.5429 GB, free: 67.02 MB / 378.7 MB Notification: Performance of SimCode: time 6.02e-07/0.5965, allocations: 0 / 0.5429 GB, free: 67.02 MB / 378.7 MB Notification: Performance of Templates: time 0.01821/0.6148, allocations: 13.46 MB / 0.5561 GB, free: 53.61 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches