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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 181.9 kB / 8.136 MB, free: 2.207 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.203/1.203, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0009594/0.0009594, allocations: 92.28 kB / 280.8 MB, free: 240 kB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.882e-06/7.053e-06, allocations: 0 / 336.5 MB, free: 8.469 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2117, allocations: 50.39 MB / 386.9 MB, free: 37.1 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09559/0.3074, allocations: 88.4 MB / 475.3 MB, free: 13.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.3077, allocations: 91.88 kB / 475.4 MB, free: 13.08 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: time 0.2485/0.5562, allocations: 36.42 MB / 0.4998 GB, free: 93.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.209e-05/0.5563, allocations: 17.69 kB / 0.4998 GB, free: 93.95 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.001934/0.5582, allocations: 1.176 MB / 0.501 GB, free: 93.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.5582, allocations: 9.906 kB / 0.501 GB, free: 93.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.5584, allocations: 125 kB / 0.5011 GB, free: 93.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008103/0.5592, allocations: 0.6006 MB / 0.5017 GB, free: 93.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.5594, allocations: 49.41 kB / 0.5017 GB, free: 93.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.5595, allocations: 59.77 kB / 0.5018 GB, free: 93.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001236/0.5607, allocations: 0.7264 MB / 0.5025 GB, free: 93.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.562, allocations: 0.7982 MB / 0.5033 GB, free: 92.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.449e-05/0.562, allocations: 14.38 kB / 0.5033 GB, free: 92.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.485e-05/0.5621, allocations: 0 / 0.5033 GB, free: 92.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.5621, allocations: 23.03 kB / 0.5033 GB, free: 92.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004478/0.5666, allocations: 3.407 MB / 0.5067 GB, free: 91.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006687/0.5673, allocations: 496.7 kB / 0.5071 GB, free: 91.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005795/0.5679, allocations: 428.4 kB / 0.5075 GB, free: 91.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.445e-05/0.568, allocations: 19.75 kB / 0.5076 GB, free: 91.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.568, allocations: 44.22 kB / 0.5076 GB, free: 91.51 MB / 378.7 MB Notification: Performance of pre-optimization done (n=95): time 2.765e-06/0.568, allocations: 0 / 0.5076 GB, free: 91.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.006116/0.5741, allocations: 3.644 MB / 0.5112 GB, free: 89.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.969e-05/0.5742, allocations: 89.89 kB / 0.5112 GB, free: 89.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004778/0.5747, allocations: 462.6 kB / 0.5117 GB, free: 89.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.489e-05/0.5747, allocations: 25.7 kB / 0.5117 GB, free: 89.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.5749, allocations: 352 kB / 0.512 GB, free: 88.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/0.5751, allocations: 429.8 kB / 0.5125 GB, free: 88.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.12e-05/0.5751, allocations: 4 kB / 0.5125 GB, free: 88.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.518e-05/0.5752, allocations: 393 kB / 0.5128 GB, free: 88.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004981/0.5757, allocations: 346.4 kB / 0.5132 GB, free: 87.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005461/0.5763, allocations: 492.6 kB / 0.5136 GB, free: 87.67 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005581/0.5769, allocations: 385.9 kB / 0.514 GB, free: 87.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.5769, allocations: 3.875 kB / 0.514 GB, free: 87.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001912/0.5788, allocations: 1.107 MB / 0.5151 GB, free: 87.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.5788, allocations: 12.06 kB / 0.5151 GB, free: 87.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.5788, allocations: 6.75 kB / 0.5151 GB, free: 87.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005258/0.5794, allocations: 138.4 kB / 0.5152 GB, free: 86.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.5808, allocations: 296.5 kB / 0.5155 GB, free: 86.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002961/0.5838, allocations: 4.537 MB / 0.52 GB, free: 82.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008028/0.5846, allocations: 63.45 kB / 0.52 GB, free: 82.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.477e-05/0.5847, allocations: 39.28 kB / 0.5201 GB, free: 82.67 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 () * 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.0001765/0.5849, allocations: 138.3 kB / 0.5202 GB, free: 82.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.5851, allocations: 87.19 kB / 0.5203 GB, free: 82.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.5863, allocations: 0.7183 MB / 0.521 GB, free: 81.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.5863, allocations: 12 kB / 0.521 GB, free: 81.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.5863, allocations: 4 kB / 0.521 GB, free: 81.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.5863, allocations: 3.75 kB / 0.521 GB, free: 81.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00321/0.5895, allocations: 2.732 MB / 0.5237 GB, free: 79.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.5895, allocations: 2.812 kB / 0.5237 GB, free: 79.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.5906, allocations: 258.7 kB / 0.5239 GB, free: 79.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003334/0.591, allocations: 137.1 kB / 0.524 GB, free: 79.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.203e-05/0.5911, allocations: 4 kB / 0.524 GB, free: 79.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002166/0.5932, allocations: 4.162 MB / 0.5281 GB, free: 74.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.5932, allocations: 7.938 kB / 0.5281 GB, free: 74.85 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002037/0.5953, allocations: 1.857 MB / 0.5299 GB, free: 72.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.5954, allocations: 167.7 kB / 0.5301 GB, free: 72.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.5956, allocations: 12 kB / 0.5301 GB, free: 72.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007178/0.5963, allocations: 68.45 kB / 0.5302 GB, free: 72.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.5964, allocations: 67.33 kB / 0.5302 GB, free: 72.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.268e-05/0.5965, allocations: 39.8 kB / 0.5303 GB, free: 72.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003401/0.5968, allocations: 360.9 kB / 0.5306 GB, free: 72.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009435/0.5978, allocations: 220 kB / 0.5308 GB, free: 72.09 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.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.000205/0.598, allocations: 142.6 kB / 0.531 GB, free: 71.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.5996, allocations: 1.262 MB / 0.5322 GB, free: 70.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.5996, allocations: 0 / 0.5322 GB, free: 70.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008632/0.6005, allocations: 0.8553 MB / 0.533 GB, free: 69.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007361/0.6012, allocations: 128.6 kB / 0.5331 GB, free: 69.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002857/0.6041, allocations: 1.739 MB / 0.5348 GB, free: 68.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007247/0.6048, allocations: 1.154 MB / 0.536 GB, free: 67.1 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.6048, allocations: 0 / 0.536 GB, free: 67.1 MB / 378.7 MB Notification: Performance of Templates: time 0.01893/0.6238, allocations: 12.8 MB / 0.5485 GB, free: 55.72 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/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