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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) [: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.001048/0.001048, allocations: 181.8 kB / 8.132 MB, free: 2.184 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.171/1.171, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.0009598/0.0009598, allocations: 94.94 kB / 280.8 MB, free: 1.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09354/0.09453, allocations: 55.82 MB / 336.6 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.2724, allocations: 50.4 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09304/0.3655, allocations: 90.98 MB / 478 MB, free: 11.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002245/0.3658, allocations: 95.88 kB / 478.1 MB, free: 11.7 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: 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.06414/0.4299, allocations: 23.59 MB / 0.4899 GB, free: 4.055 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.43, allocations: 8 kB / 0.4899 GB, free: 4.047 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002212/0.4302, allocations: 134.3 kB / 0.49 GB, free: 3.914 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.4313, allocations: 0.6532 MB / 0.4907 GB, free: 3.219 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.4314, allocations: 45.94 kB / 0.4907 GB, free: 3.172 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.4316, allocations: 56 kB / 0.4908 GB, free: 3.117 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001457/0.433, allocations: 0.7225 MB / 0.4915 GB, free: 2.395 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.4345, allocations: 0.8023 MB / 0.4923 GB, free: 1.582 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.289e-05/0.4345, allocations: 3.906 kB / 0.4923 GB, free: 1.578 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.57e-05/0.4346, allocations: 0 / 0.4923 GB, free: 1.578 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.264e-05/0.4346, allocations: 24 kB / 0.4923 GB, free: 1.555 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1026/0.5372, allocations: 3.691 MB / 0.4959 GB, free: 126.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.5385, allocations: 0.5674 MB / 0.4965 GB, free: 126.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005023/0.539, allocations: 348.8 kB / 0.4968 GB, free: 126.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.064e-05/0.5391, allocations: 15.06 kB / 0.4968 GB, free: 126.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.605e-05/0.5391, allocations: 44.92 kB / 0.4968 GB, free: 126.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 3.707e-06/0.5391, allocations: 3.594 kB / 0.4968 GB, free: 126.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.002533/0.5417, allocations: 1.39 MB / 0.4982 GB, free: 126.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.922e-05/0.5417, allocations: 89.95 kB / 0.4983 GB, free: 126 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007522/0.5425, allocations: 0.6911 MB / 0.499 GB, free: 125.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.578e-05/0.5425, allocations: 29.5 kB / 0.499 GB, free: 125.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.5426, allocations: 419.7 kB / 0.4994 GB, free: 125.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.5428, allocations: 282.2 kB / 0.4997 GB, free: 125.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.947e-05/0.5428, allocations: 0 / 0.4997 GB, free: 125.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.577e-05/0.5429, allocations: 397.5 kB / 0.5 GB, free: 125.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004481/0.5434, allocations: 281.1 kB / 0.5003 GB, free: 125.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004983/0.5439, allocations: 436 kB / 0.5007 GB, free: 125.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004825/0.5444, allocations: 316.4 kB / 0.501 GB, free: 125.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.5444, allocations: 4.781 kB / 0.501 GB, free: 125.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001255/0.5457, allocations: 0.8355 MB / 0.5018 GB, free: 125 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.5457, allocations: 11.59 kB / 0.5019 GB, free: 125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.5457, allocations: 3.844 kB / 0.5019 GB, free: 125 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.5457, allocations: 7.531 kB / 0.5019 GB, free: 125 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001578/0.5473, allocations: 370.2 kB / 0.5022 GB, free: 125 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.5473, allocations: 9.828 kB / 0.5022 GB, free: 125 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009619/0.5483, allocations: 118.4 kB / 0.5023 GB, free: 125 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.098e-05/0.5484, allocations: 38.86 kB / 0.5024 GB, free: 125 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.0001763/0.5486, allocations: 125.5 kB / 0.5025 GB, free: 124.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.5487, allocations: 93.81 kB / 0.5026 GB, free: 124.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005739/0.5493, allocations: 326.6 kB / 0.5029 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.5493, allocations: 14.42 kB / 0.5029 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.5493, allocations: 3.375 kB / 0.5029 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.5494, allocations: 3.422 kB / 0.5029 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003469/0.5528, allocations: 2.663 MB / 0.5055 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.5529, allocations: 10.41 kB / 0.5055 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.554, allocations: 287.9 kB / 0.5058 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.459e-05/0.554, allocations: 17.69 kB / 0.5058 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.844e-05/0.5541, allocations: 17.86 kB / 0.5058 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.151e-05/0.5541, allocations: 27.41 kB / 0.5059 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/0.5541, allocations: 16.59 kB / 0.5059 GB, free: 124 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001202/0.5553, allocations: 1.616 MB / 0.5075 GB, free: 122.6 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001099/0.5564, allocations: 2 MB / 0.5094 GB, free: 120.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001876/0.5566, allocations: 199.4 kB / 0.5096 GB, free: 120.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.5568, allocations: 16.25 kB / 0.5096 GB, free: 120.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008142/0.5576, allocations: 77.95 kB / 0.5097 GB, free: 120.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.5577, allocations: 83.06 kB / 0.5098 GB, free: 120.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.115e-05/0.5578, allocations: 36.03 kB / 0.5098 GB, free: 120.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005459/0.5583, allocations: 0.5262 MB / 0.5103 GB, free: 120.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001423/0.5598, allocations: 199.7 kB / 0.5105 GB, free: 120.6 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.0005883/0.5604, allocations: 318.2 kB / 0.5108 GB, free: 120.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009663/0.5613, allocations: 0.6723 MB / 0.5115 GB, free: 120.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.5614, allocations: 4.562 kB / 0.5115 GB, free: 120.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005319/0.5619, allocations: 374.3 kB / 0.5118 GB, free: 120.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008998/0.5628, allocations: 164.1 kB / 0.512 GB, free: 120.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002618/0.5654, allocations: 1.54 MB / 0.5135 GB, free: 119.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007489/0.5662, allocations: 1.148 MB / 0.5146 GB, free: 119 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5662, allocations: 3.391 kB / 0.5146 GB, free: 119 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1)