Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.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.ForceStrokeBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|feedX.flange.f|actuator.g_ma.G_m|actuator.g_mb.G_m|actuator.L",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|feedX.flange.f|actuator.g_ma.G_m|actuator.g_mb.G_m|actuator.L",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour") [: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.001527/0.001527, allocations: 186.3 kB / 8.139 MB, free: 2.211 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.228/1.228, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0009932/0.0009931, allocations: 104 kB / 280.8 MB, free: 1.324 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.644e-06/7.674e-06, allocations: 0 / 336.5 MB, free: 9.586 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2249, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09866/0.3236, allocations: 88.73 MB / 475.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.3238, allocations: 91.88 kB / 475.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.04264/0.3665, allocations: 15.86 MB / 491.6 MB, free: 14.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.469e-05/0.3666, allocations: 20 kB / 491.6 MB, free: 14.12 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001787/0.3684, allocations: 0.9929 MB / 492.6 MB, free: 13.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3684, allocations: 8.031 kB / 492.6 MB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001634/0.3686, allocations: 94.78 kB / 492.7 MB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008771/0.3695, allocations: 0.5271 MB / 493.2 MB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.3696, allocations: 41.3 kB / 493.3 MB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.237e-05/0.3697, allocations: 36 kB / 493.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008783/0.3706, allocations: 470.5 kB / 493.8 MB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009295/0.3715, allocations: 0.5204 MB / 494.3 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.3716, allocations: 4 kB / 494.3 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.976e-05/0.3716, allocations: 4 kB / 494.3 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.3716, allocations: 12 kB / 494.3 MB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003987/0.3756, allocations: 2.544 MB / 496.8 MB, free: 8.652 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005003/0.3762, allocations: 318.5 kB / 497.2 MB, free: 8.332 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005081/0.3767, allocations: 258.5 kB / 497.4 MB, free: 8.074 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.758e-05/0.3768, allocations: 12.44 kB / 497.4 MB, free: 8.062 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.3768, allocations: 39 kB / 497.5 MB, free: 8.016 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.645e-06/0.3768, allocations: 0 / 497.5 MB, free: 8.016 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.002197/0.379, allocations: 0.9529 MB / 498.4 MB, free: 7.059 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.379, allocations: 56.06 kB / 498.5 MB, free: 6.992 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.3801, allocations: 0.7534 MB / 499.2 MB, free: 6.234 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/0.3801, allocations: 25.7 kB / 499.2 MB, free: 6.203 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.3803, allocations: 299.7 kB / 499.5 MB, free: 5.902 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.3805, allocations: 220.7 kB / 499.8 MB, free: 5.684 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.189e-05/0.3805, allocations: 0 / 499.8 MB, free: 5.684 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3807, allocations: 386.8 kB / 0.4884 GB, free: 5.297 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003364/0.381, allocations: 197.4 kB / 0.4886 GB, free: 5.102 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004026/0.3814, allocations: 283.5 kB / 0.4889 GB, free: 4.793 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004151/0.3818, allocations: 231.1 kB / 0.4891 GB, free: 4.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3818, allocations: 0 / 0.4891 GB, free: 4.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.0009859/0.3828, allocations: 0.6004 MB / 0.4897 GB, free: 3.961 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.3829, allocations: 4.281 kB / 0.4897 GB, free: 3.957 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-06/0.3829, allocations: 11.94 kB / 0.4897 GB, free: 3.945 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.061e-05/0.3829, allocations: 4 kB / 0.4897 GB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009177/0.3839, allocations: 199.8 kB / 0.4899 GB, free: 3.746 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.3839, allocations: 7.938 kB / 0.4899 GB, free: 3.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006209/0.3845, allocations: 55.86 kB / 0.4899 GB, free: 3.684 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.856e-05/0.3846, allocations: 27.98 kB / 0.49 GB, free: 3.656 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 88 * 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.0001356/0.3847, allocations: 119.8 kB / 0.4901 GB, free: 3.535 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.3848, allocations: 75.06 kB / 0.4902 GB, free: 3.461 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009858/0.3858, allocations: 0.5239 MB / 0.4907 GB, free: 2.922 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.3859, allocations: 8 kB / 0.4907 GB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.974e-06/0.3859, allocations: 3.984 kB / 0.4907 GB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3859, allocations: 0 / 0.4907 GB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002638/0.3885, allocations: 1.743 MB / 0.4924 GB, free: 1.055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.3886, allocations: 4 kB / 0.4924 GB, free: 1.051 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006819/0.3892, allocations: 160.1 kB / 0.4925 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.084e-05/0.3893, allocations: 8 kB / 0.4925 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.3893, allocations: 4 kB / 0.4925 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-06/0.3893, allocations: 7.938 kB / 0.4926 GB, free: 0.875 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.3893, allocations: 4 kB / 0.4926 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1379/0.5272, allocations: 0.7831 MB / 0.4933 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005211/0.5277, allocations: 232.4 kB / 0.4935 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.5279, allocations: 3.719 kB / 0.4935 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005819/0.5285, allocations: 56.02 kB / 0.4936 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.304e-05/0.5286, allocations: 42.38 kB / 0.4936 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.636e-05/0.5286, allocations: 22.75 kB / 0.4937 GB, free: 131.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006634/0.5293, allocations: 0.5918 MB / 0.4942 GB, free: 131.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005978/0.5299, allocations: 150.6 kB / 0.4944 GB, free: 131.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * 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.0006392/0.5305, allocations: 300.9 kB / 0.4947 GB, free: 131.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007742/0.5313, allocations: 493.3 kB / 0.4951 GB, free: 131.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.5313, allocations: 3.969 kB / 0.4951 GB, free: 131.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003427/0.5317, allocations: 261.5 kB / 0.4954 GB, free: 131.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005825/0.5323, allocations: 103.8 kB / 0.4955 GB, free: 131.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/0.5344, allocations: 1.187 MB / 0.4967 GB, free: 131.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006273/0.535, allocations: 1.055 MB / 0.4977 GB, free: 130.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.535, allocations: 7.531 kB / 0.4977 GB, free: 130.5 MB / 378.7 MB Notification: Performance of Templates: time 0.01328/0.5483, allocations: 8.208 MB / 0.5057 GB, free: 130.3 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceStrokeBehaviour/ForceStrokeBehaviour.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches