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") [: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.001046/0.001046, 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.212/1.212, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0008751/0.0008752, allocations: 95.97 kB / 280.8 MB, free: 1.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.442e-06/6.542e-06, allocations: 0 / 336.5 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2533, allocations: 50.4 MB / 386.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1015/0.3548, allocations: 90.98 MB / 477.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.3551, allocations: 87.95 kB / 478 MB, free: 11.71 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.05902/0.4141, allocations: 22.31 MB / 0.4886 GB, free: 5.395 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.575e-05/0.4142, allocations: 24 kB / 0.4886 GB, free: 5.371 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.002422/0.4166, allocations: 1.259 MB / 0.4898 GB, free: 4.066 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.4167, allocations: 8.031 kB / 0.4898 GB, free: 4.059 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002167/0.4169, allocations: 130.4 kB / 0.4899 GB, free: 3.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.418, allocations: 0.657 MB / 0.4906 GB, free: 3.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.4181, allocations: 45.98 kB / 0.4906 GB, free: 3.184 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.4182, allocations: 64 kB / 0.4907 GB, free: 3.121 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001403/0.4196, allocations: 0.7147 MB / 0.4914 GB, free: 2.406 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.4211, allocations: 0.7984 MB / 0.4922 GB, free: 1.598 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/0.4212, allocations: 3.906 kB / 0.4922 GB, free: 1.594 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.36e-05/0.4213, allocations: 0 / 0.4922 GB, free: 1.594 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.503e-05/0.4213, allocations: 24 kB / 0.4922 GB, free: 1.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1218/0.5431, allocations: 3.689 MB / 0.4958 GB, free: 127 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.5443, allocations: 0.5713 MB / 0.4964 GB, free: 127 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004814/0.5448, allocations: 352.5 kB / 0.4967 GB, free: 127 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.837e-05/0.5449, allocations: 20.98 kB / 0.4967 GB, free: 127 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.771e-05/0.5449, allocations: 42 kB / 0.4968 GB, free: 126.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 2.424e-06/0.5449, allocations: 0 / 0.4968 GB, free: 126.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.002462/0.5474, allocations: 1.393 MB / 0.4981 GB, free: 126.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.359e-05/0.5474, allocations: 87.92 kB / 0.4982 GB, free: 126.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007357/0.5482, allocations: 0.6917 MB / 0.4989 GB, free: 126.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.01e-05/0.5482, allocations: 29.61 kB / 0.4989 GB, free: 126.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.5484, allocations: 419.6 kB / 0.4993 GB, free: 126.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.5485, allocations: 279.3 kB / 0.4996 GB, free: 126 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.49e-05/0.5486, allocations: 0 / 0.4996 GB, free: 126 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.393e-05/0.5487, allocations: 399.2 kB / 0.4999 GB, free: 125.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004246/0.5491, allocations: 278.5 kB / 0.5002 GB, free: 125.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000486/0.5496, allocations: 431.2 kB / 0.5006 GB, free: 125.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004637/0.5501, allocations: 324.9 kB / 0.5009 GB, free: 125.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.5501, allocations: 0 / 0.5009 GB, free: 125.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001189/0.5513, allocations: 0.8401 MB / 0.5018 GB, free: 125.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.5513, allocations: 7.156 kB / 0.5018 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.5513, allocations: 4.531 kB / 0.5018 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.5513, allocations: 7.188 kB / 0.5018 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/0.5528, allocations: 377.5 kB / 0.5021 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.5528, allocations: 11.67 kB / 0.5021 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009063/0.5538, allocations: 113 kB / 0.5023 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.637e-05/0.5538, allocations: 36.48 kB / 0.5023 GB, free: 125.4 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 () * 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.0001339/0.554, allocations: 123.8 kB / 0.5024 GB, free: 125.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.5541, allocations: 94.22 kB / 0.5025 GB, free: 125.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005411/0.5547, allocations: 324.1 kB / 0.5028 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.5547, allocations: 11.11 kB / 0.5028 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.5547, allocations: 7.219 kB / 0.5028 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.5547, allocations: 3.609 kB / 0.5028 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003319/0.558, allocations: 2.663 MB / 0.5054 GB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.5581, allocations: 10.75 kB / 0.5054 GB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.5591, allocations: 287.8 kB / 0.5057 GB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.46e-05/0.5591, allocations: 17.47 kB / 0.5057 GB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.547e-05/0.5592, allocations: 17.64 kB / 0.5057 GB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.188e-05/0.5592, allocations: 24.06 kB / 0.5058 GB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/0.5592, allocations: 17.12 kB / 0.5058 GB, free: 124.5 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001212/0.5604, allocations: 1.619 MB / 0.5074 GB, free: 123.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001933/0.5606, allocations: 201.3 kB / 0.5076 GB, free: 123 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.5608, allocations: 19 kB / 0.5076 GB, free: 123 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007613/0.5615, allocations: 77.61 kB / 0.5076 GB, free: 123 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.5617, allocations: 75 kB / 0.5077 GB, free: 123 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.066e-05/0.5617, allocations: 38.44 kB / 0.5078 GB, free: 123 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005295/0.5622, allocations: 0.5291 MB / 0.5083 GB, free: 122.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007632/0.563, allocations: 201.7 kB / 0.5085 GB, free: 122.9 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 () * 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.0005685/0.5636, allocations: 321.7 kB / 0.5088 GB, free: 122.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000909/0.5645, allocations: 0.6638 MB / 0.5094 GB, free: 122.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.5645, allocations: 2.406 kB / 0.5094 GB, free: 122.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005146/0.5651, allocations: 386 kB / 0.5098 GB, free: 122.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008435/0.5659, allocations: 151.4 kB / 0.5099 GB, free: 122.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/0.5684, allocations: 1.545 MB / 0.5114 GB, free: 122 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007109/0.5691, allocations: 1.142 MB / 0.5126 GB, free: 121.3 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5691, allocations: 1.719 kB / 0.5126 GB, free: 121.3 MB / 378.7 MB Notification: Performance of Templates: time 0.0177/0.5868, allocations: 10.85 MB / 0.5232 GB, free: 120.7 MB / 378.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