Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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 3.2.1+maint.om/package.mo): time 0.004264/0.004264, allocations: 178.9 kB / 7.451 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.321/1.321, allocations: 170.6 MB / 178.4 MB, free: 15.39 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001718/0.001718, allocations: 123.8 kB / 217.7 MB, free: 8.156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.999e-06/1.003e-05, allocations: 4 kB / 261.7 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08866/0.08869, allocations: 38.76 MB / 300.5 MB, free: 3.895 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.277/0.3658, allocations: 78.46 MB / 379 MB, free: 6.184 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/0.3661, allocations: 84.12 kB / 379.1 MB, free: 6.141 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.06228/0.4284, allocations: 20.92 MB / 400 MB, free: 4.938 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.662e-05/0.4286, allocations: 24 kB / 400 MB, free: 4.914 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003582/0.4322, allocations: 1.272 MB / 401.3 MB, free: 3.66 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.4322, allocations: 8.031 kB / 401.3 MB, free: 3.652 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006181/0.4329, allocations: 134.4 kB / 401.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001742/0.4346, allocations: 0.6452 MB / 402.1 MB, free: 2.977 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/0.4348, allocations: 49.94 kB / 402.1 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002618/0.4351, allocations: 55.19 kB / 402.2 MB, free: 2.879 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00192/0.437, allocations: 0.7167 MB / 402.9 MB, free: 2.453 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001772/0.4388, allocations: 0.7966 MB / 403.7 MB, free: 1.895 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.479e-05/0.4388, allocations: 7.906 kB / 403.7 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.246e-05/0.4389, allocations: 0 / 403.7 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.91e-05/0.439, allocations: 24 kB / 403.7 MB, free: 1.863 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007171/0.4462, allocations: 3.669 MB / 407.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.4477, allocations: 0.5776 MB / 408 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006822/0.4484, allocations: 351.7 kB / 408.3 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.498e-05/0.4485, allocations: 12.55 kB / 408.3 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.927e-05/0.4486, allocations: 50.48 kB / 408.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=68): time 3.888e-06/0.4486, allocations: 0 / 408.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=86): time 0.003781/0.4524, allocations: 1.386 MB / 409.7 MB, free: 13.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.005e-05/0.4525, allocations: 89.53 kB / 409.8 MB, free: 13.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001378/0.4539, allocations: 0.6812 MB / 410.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.122e-05/0.454, allocations: 25.7 kB / 410.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000329/0.4543, allocations: 420.6 kB / 411 MB, free: 12.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00034/0.4546, allocations: 271.8 kB / 411.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.337e-05/0.4547, allocations: 0 / 411.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002771/0.455, allocations: 398.7 kB / 411.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000597/0.4556, allocations: 286 kB / 411.9 MB, free: 11.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006987/0.4563, allocations: 436 kB / 412.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006402/0.457, allocations: 323.9 kB / 412.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.457, allocations: 3.938 kB / 412.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001687/0.4587, allocations: 0.8423 MB / 413.5 MB, free: 9.562 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.4587, allocations: 11.98 kB / 413.5 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.4588, allocations: 4 kB / 413.5 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.022e-05/0.4588, allocations: 8 kB / 413.5 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001655/0.4605, allocations: 371.8 kB / 413.9 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.734e-05/0.4605, allocations: 8 kB / 413.9 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.4617, allocations: 111.9 kB / 414 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.4619, allocations: 39.92 kB / 414 MB, free: 9.02 MB / 298.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 (122): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 1 * 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.0002422/0.4621, allocations: 129.3 kB / 414.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002586/0.4624, allocations: 90.88 kB / 414.2 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007653/0.4632, allocations: 329.5 kB / 414.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.169e-05/0.4632, allocations: 8 kB / 414.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.4632, allocations: 4 kB / 414.6 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.4632, allocations: 3.984 kB / 414.6 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004957/0.4682, allocations: 2.663 MB / 417.2 MB, free: 5.598 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/0.4682, allocations: 8 kB / 417.2 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.4694, allocations: 288.3 kB / 417.5 MB, free: 5.309 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.457e-05/0.4695, allocations: 16 kB / 417.5 MB, free: 5.293 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.622e-05/0.4695, allocations: 23.98 kB / 417.6 MB, free: 5.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.587e-05/0.4696, allocations: 23.78 kB / 417.6 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.327e-05/0.4696, allocations: 15.94 kB / 417.6 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001964/0.4716, allocations: 1.617 MB / 419.2 MB, free: 3.168 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000382/0.472, allocations: 192 kB / 419.4 MB, free: 2.961 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002061/0.4722, allocations: 23.89 kB / 419.4 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008984/0.4731, allocations: 75.94 kB / 419.5 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.4732, allocations: 75.69 kB / 419.6 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.4733, allocations: 39.98 kB / 419.6 MB, free: 2.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0008413/0.4742, allocations: 0.5187 MB / 420.1 MB, free: 2.234 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001092/0.4753, allocations: 196 kB / 420.3 MB, free: 2.043 MB / 298.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.0005437/0.4758, allocations: 215.6 kB / 420.5 MB, free: 1.828 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001367/0.4772, allocations: 0.7013 MB / 421.2 MB, free: 1.125 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.4772, allocations: 4.312 kB / 421.2 MB, free: 1.121 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007088/0.478, allocations: 385.8 kB / 421.6 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/0.479, allocations: 155.2 kB / 421.8 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00381/0.4829, allocations: 1.528 MB / 423.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001262/0.4841, allocations: 1.137 MB / 424.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4842, allocations: 0 / 424.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of Templates: time 0.02468/0.5088, allocations: 10.64 MB / 435.1 MB, free: 3.074 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1)