Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",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 3.2.3+maint.om/package.mo): time 0.0009353/0.0009349, allocations: 179.5 kB / 8.474 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.068/1.068, allocations: 205.2 MB / 214.1 MB, free: 5.102 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008825/0.0008824, allocations: 85.98 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1458/0.1467, allocations: 52.98 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06062/0.2073, allocations: 47.57 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1993/0.4066, allocations: 86.15 MB / 448.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001724/0.4068, allocations: 84.23 kB / 448.9 MB, free: 10.06 MB / 314.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.03829/0.4451, allocations: 16.43 MB / 465.3 MB, free: 3.773 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.4452, allocations: 8.656 kB / 465.3 MB, free: 3.773 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001447/0.4453, allocations: 98.03 kB / 465.4 MB, free: 3.723 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007263/0.4461, allocations: 0.5265 MB / 465.9 MB, free: 3.391 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.4462, allocations: 29.5 kB / 466 MB, free: 3.391 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.45e-05/0.4463, allocations: 33.84 kB / 466 MB, free: 3.391 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008393/0.4471, allocations: 477.2 kB / 466.5 MB, free: 3.355 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008198/0.4479, allocations: 0.5238 MB / 467 MB, free: 3.203 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.448, allocations: 3.938 kB / 467 MB, free: 3.199 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.861e-05/0.448, allocations: 1.594 kB / 467 MB, free: 3.199 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.4481, allocations: 17.28 kB / 467 MB, free: 3.195 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003246/0.4513, allocations: 2.533 MB / 469.5 MB, free: 1.812 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004609/0.4518, allocations: 325.6 kB / 469.8 MB, free: 1.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004525/0.4522, allocations: 259.6 kB / 470.1 MB, free: 1.738 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.257e-05/0.4523, allocations: 11.48 kB / 470.1 MB, free: 1.734 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.481e-05/0.4523, allocations: 39.78 kB / 470.2 MB, free: 1.695 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 1.713e-06/0.4523, allocations: 4 kB / 470.2 MB, free: 1.691 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.001912/0.4542, allocations: 0.9431 MB / 471.1 MB, free: 1.383 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.065e-05/0.4543, allocations: 58.25 kB / 471.2 MB, free: 1.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008854/0.4552, allocations: 0.7546 MB / 471.9 MB, free: 1.121 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.4552, allocations: 25.7 kB / 471.9 MB, free: 1.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.4553, allocations: 303.7 kB / 472.2 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.4554, allocations: 217.7 kB / 472.4 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.4555, allocations: 0 / 472.4 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.875e-05/0.4556, allocations: 386.4 kB / 472.8 MB, free: 372 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003222/0.4559, allocations: 194.5 kB / 473 MB, free: 368 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003418/0.4562, allocations: 291.2 kB / 473.3 MB, free: 260 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.4566, allocations: 223.9 kB / 473.5 MB, free: 228 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.4566, allocations: 0 / 473.5 MB, free: 228 kB / 314.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.0009157/0.4575, allocations: 0.6038 MB / 474.1 MB, free: 15.89 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.4575, allocations: 4 kB / 474.1 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.4575, allocations: 0 / 474.1 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.4576, allocations: 11.94 kB / 474.1 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009083/0.4585, allocations: 207.1 kB / 474.3 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.4585, allocations: 7.938 kB / 474.3 MB, free: 15.67 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005966/0.4591, allocations: 55.86 kB / 474.4 MB, free: 15.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.839e-05/0.4592, allocations: 31.84 kB / 474.4 MB, free: 15.59 MB / 330.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.0001165/0.4593, allocations: 116.3 kB / 474.5 MB, free: 15.47 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.4594, allocations: 75.06 kB / 474.6 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008708/0.4603, allocations: 0.5257 MB / 475.1 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.4603, allocations: 7.938 kB / 475.1 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.4603, allocations: 4 kB / 475.2 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.958e-06/0.4603, allocations: 7.969 kB / 475.2 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.4627, allocations: 1.739 MB / 476.9 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.4628, allocations: 0 / 476.9 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006891/0.4634, allocations: 155.6 kB / 477.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.067e-05/0.4635, allocations: 8 kB / 477.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.994e-05/0.4635, allocations: 7.984 kB / 477.1 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.4635, allocations: 7.938 kB / 477.1 MB, free: 13.44 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.4635, allocations: 4 kB / 477.1 MB, free: 13.44 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008745/0.4644, allocations: 0.7849 MB / 477.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009128/0.4653, allocations: 1.162 MB / 479 MB, free: 11.55 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/0.4656, allocations: 234 kB / 479.3 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.4658, allocations: 4 kB / 479.3 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005287/0.4663, allocations: 51.95 kB / 479.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.228e-05/0.4664, allocations: 48.03 kB / 479.4 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.702e-05/0.4664, allocations: 15.62 kB / 479.4 MB, free: 11.24 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0006138/0.4671, allocations: 0.5972 MB / 480 MB, free: 10.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00117/0.4682, allocations: 155.7 kB / 480.1 MB, free: 10.67 MB / 330.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.0005948/0.4688, allocations: 292.9 kB / 480.4 MB, free: 10.4 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007225/0.4696, allocations: 499.2 kB / 480.9 MB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4696, allocations: 4.25 kB / 480.9 MB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003636/0.47, allocations: 266 kB / 481.2 MB, free: 9.898 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005673/0.4705, allocations: 91.31 kB / 481.2 MB, free: 9.832 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.4727, allocations: 1.203 MB / 482.4 MB, free: 8.734 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007851/0.4735, allocations: 1.066 MB / 483.5 MB, free: 7.66 MB / 330.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4735, allocations: 0 / 483.5 MB, free: 7.66 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour_fmu --startTime=-4 --stopTime=4 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1)