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.001687/0.001687, allocations: 176.4 kB / 8.347 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.436/1.436, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0009835/0.0009835, allocations: 95.59 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.668e-05/1.686e-05, allocations: 0 / 337 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 50.41 MB / 387.5 MB, free: 7.555 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4182/0.5287, allocations: 88.48 MB / 475.9 MB, free: 6.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.5291, allocations: 83.95 kB / 476 MB, free: 6.258 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.1312/0.6603, allocations: 36.57 MB / 0.5006 GB, free: 1.551 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6603, allocations: 4 kB / 0.5006 GB, free: 1.547 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.95e-05/0.6604, allocations: 24 kB / 0.5006 GB, free: 1.523 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.002904/0.6633, allocations: 1.131 MB / 0.5017 GB, free: 356 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.6633, allocations: 12.03 kB / 0.5017 GB, free: 344 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002733/0.6636, allocations: 122.5 kB / 0.5018 GB, free: 220 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.6649, allocations: 0.6018 MB / 0.5024 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/0.6651, allocations: 49.94 kB / 0.5025 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001836/0.6653, allocations: 59.91 kB / 0.5025 GB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001981/0.6673, allocations: 0.7303 MB / 0.5032 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002138/0.6694, allocations: 0.8058 MB / 0.504 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.12e-05/0.6695, allocations: 0 / 0.504 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001038/0.6696, allocations: 0 / 0.504 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.136e-05/0.6696, allocations: 24 kB / 0.504 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00714/0.6768, allocations: 3.393 MB / 0.5074 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.6784, allocations: 0.7537 MB / 0.5081 GB, free: 9.578 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009568/0.6794, allocations: 431.5 kB / 0.5085 GB, free: 9.152 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.374e-05/0.6795, allocations: 16.53 kB / 0.5085 GB, free: 9.137 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.644e-05/0.6795, allocations: 47.75 kB / 0.5086 GB, free: 9.082 MB / 394.7 MB Notification: Performance of pre-optimization done (n=95): time 6.603e-06/0.6795, allocations: 0 / 0.5086 GB, free: 9.082 MB / 394.7 MB Notification: Performance of matching and sorting (n=131): time 0.009658/0.6892, allocations: 3.658 MB / 0.5121 GB, free: 5.242 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.297e-05/0.6893, allocations: 90.33 kB / 0.5122 GB, free: 5.133 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008676/0.6902, allocations: 466.1 kB / 0.5127 GB, free: 4.668 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.926e-05/0.6903, allocations: 25.7 kB / 0.5127 GB, free: 4.637 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003673/0.6907, allocations: 428.3 kB / 0.5131 GB, free: 4.211 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004295/0.6911, allocations: 433.5 kB / 0.5135 GB, free: 3.781 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.168e-05/0.6912, allocations: 0 / 0.5135 GB, free: 3.781 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002237/0.6914, allocations: 403.4 kB / 0.5139 GB, free: 3.379 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008691/0.6923, allocations: 346.6 kB / 0.5142 GB, free: 3.039 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009819/0.6933, allocations: 477.9 kB / 0.5147 GB, free: 2.543 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000975/0.6943, allocations: 401.3 kB / 0.5151 GB, free: 2.152 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.6943, allocations: 0 / 0.5151 GB, free: 2.152 MB / 394.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.002734/0.697, allocations: 1.101 MB / 0.5161 GB, free: 1.035 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.6971, allocations: 8 kB / 0.5162 GB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.6971, allocations: 4.312 kB / 0.5162 GB, free: 1.023 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005936/0.6977, allocations: 142.5 kB / 0.5163 GB, free: 0.875 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001721/0.6994, allocations: 295.6 kB / 0.5166 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00498/0.7044, allocations: 4.611 MB / 0.5211 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.7057, allocations: 56.05 kB / 0.5211 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.7059, allocations: 43.98 kB / 0.5212 GB, free: 11.53 MB / 410.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 () * 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 {(2,100.0%) 5,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003009/0.7062, allocations: 132.7 kB / 0.5213 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002505/0.7065, allocations: 94.83 kB / 0.5214 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001888/0.7084, allocations: 0.7012 MB / 0.5221 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/0.7084, allocations: 12 kB / 0.5221 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/0.7084, allocations: 8 kB / 0.5221 GB, free: 10.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-05/0.7084, allocations: 7.969 kB / 0.5221 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005703/0.7141, allocations: 2.744 MB / 0.5248 GB, free: 7.699 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.7142, allocations: 4 kB / 0.5248 GB, free: 7.695 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001534/0.7157, allocations: 256 kB / 0.525 GB, free: 7.445 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005096/0.7163, allocations: 126.4 kB / 0.5252 GB, free: 7.312 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.58e-05/0.7164, allocations: 15.98 kB / 0.5252 GB, free: 7.297 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004284/0.7206, allocations: 4.218 MB / 0.5293 GB, free: 2.734 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.164e-06/0.7207, allocations: 4.062 kB / 0.5293 GB, free: 2.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003958/0.7247, allocations: 1.845 MB / 0.5311 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003489/0.725, allocations: 168.1 kB / 0.5313 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001621/0.7252, allocations: 4 kB / 0.5313 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.7263, allocations: 59.95 kB / 0.5313 GB, free: 0.5156 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002168/0.7265, allocations: 88.53 kB / 0.5314 GB, free: 436 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.7266, allocations: 39.98 kB / 0.5314 GB, free: 396 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006809/0.7273, allocations: 359 kB / 0.5318 GB, free: 36 kB / 410.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.7273, allocations: 0 / 0.5318 GB, free: 36 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.001613/0.7289, allocations: 228 kB / 0.532 GB, free: 15.81 MB / 426.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.g_ma.Phi,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 () * 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.0003376/0.7293, allocations: 154.4 kB / 0.5321 GB, free: 15.66 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002441/0.7317, allocations: 1.292 MB / 0.5334 GB, free: 14.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.7318, allocations: 0 / 0.5334 GB, free: 14.34 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001344/0.7331, allocations: 0.8719 MB / 0.5343 GB, free: 13.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009672/0.7341, allocations: 131.5 kB / 0.5344 GB, free: 13.31 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00353/0.7376, allocations: 1.718 MB / 0.5361 GB, free: 11.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006935/0.7383, allocations: 1.064 MB / 0.5371 GB, free: 10.44 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007643/0.7391, allocations: 127.5 kB / 0.5372 GB, free: 10.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002845/0.7394, allocations: 75.41 kB / 0.5373 GB, free: 10.24 MB / 426.7 MB Notification: Performance of SimCode: time 8.52e-07/0.7394, allocations: 0 / 0.5373 GB, free: 10.24 MB / 426.7 MB Notification: Performance of Templates: time 0.2236/0.9631, allocations: 10.61 MB / 0.5476 GB, free: 122.6 MB / 426.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/jenkins/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