Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.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/Modelica 3.1.0+maint.om/package.mo): time 0.6342/0.6342, allocations: 110.8 MB / 118 MB, free: 14.6 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001753/0.001753, allocations: 156 kB / 143.7 MB, free: 4.926 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.412e-06/6.533e-06, allocations: 4 kB / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03892/0.03894, allocations: 25.16 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1693/0.2082, allocations: 42.28 MB / 240.9 MB, free: 4.367 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.2085, allocations: 70.19 kB / 241 MB, free: 4.367 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.07721/0.2858, allocations: 19.71 MB / 260.7 MB, free: 12.46 MB / 186.7 MB Notification: Performance of Transformations before backend: time 9.138e-05/0.2859, allocations: 24 kB / 260.7 MB, free: 12.44 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.004454/0.2904, allocations: 1.223 MB / 261.9 MB, free: 11.24 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.2904, allocations: 12.03 kB / 262 MB, free: 11.23 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005516/0.291, allocations: 126.5 kB / 262.1 MB, free: 11.11 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002122/0.2932, allocations: 0.6053 MB / 262.7 MB, free: 10.61 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002184/0.2934, allocations: 49.94 kB / 262.7 MB, free: 10.55 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003221/0.2937, allocations: 55.5 kB / 262.8 MB, free: 10.5 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002719/0.2965, allocations: 0.7501 MB / 263.5 MB, free: 10.04 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002614/0.2991, allocations: 0.8329 MB / 264.4 MB, free: 9.445 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.352e-05/0.2992, allocations: 4 kB / 264.4 MB, free: 9.441 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.2993, allocations: 0 / 264.4 MB, free: 9.441 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.211e-05/0.2993, allocations: 24 kB / 264.4 MB, free: 9.418 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009545/0.3089, allocations: 3.685 MB / 268.1 MB, free: 6.34 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002264/0.3112, allocations: 0.6012 MB / 268.7 MB, free: 5.727 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.3123, allocations: 390.1 kB / 269.1 MB, free: 5.34 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.99e-05/0.3124, allocations: 8.234 kB / 269.1 MB, free: 5.332 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/0.3125, allocations: 42.8 kB / 269.1 MB, free: 5.281 MB / 186.7 MB Notification: Performance of pre-optimization done (n=65): time 3.707e-06/0.3125, allocations: 0 / 269.1 MB, free: 5.281 MB / 186.7 MB Notification: Performance of matching and sorting (n=83): time 0.005341/0.3178, allocations: 1.496 MB / 270.6 MB, free: 3.785 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.3179, allocations: 85.55 kB / 270.7 MB, free: 3.684 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001382/0.3193, allocations: 0.609 MB / 271.3 MB, free: 3.07 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 8.467e-05/0.3194, allocations: 25.7 kB / 271.3 MB, free: 3.039 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000375/0.3198, allocations: 414.7 kB / 271.7 MB, free: 2.625 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003616/0.3202, allocations: 268 kB / 272 MB, free: 2.359 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.968e-05/0.3203, allocations: 4 kB / 272 MB, free: 2.355 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002821/0.3206, allocations: 394.7 kB / 272.4 MB, free: 1.961 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009795/0.3216, allocations: 314 kB / 272.7 MB, free: 1.656 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/0.3227, allocations: 466.2 kB / 273.1 MB, free: 1.152 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.3238, allocations: 354.9 kB / 273.5 MB, free: 0.8047 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.305e-06/0.3238, allocations: 4 kB / 273.5 MB, free: 0.8008 MB / 186.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002993/0.3268, allocations: 0.905 MB / 274.4 MB, free: 15.89 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.3269, allocations: 6.031 kB / 274.4 MB, free: 15.88 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.379e-05/0.3269, allocations: 4 kB / 274.4 MB, free: 15.88 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.611e-05/0.327, allocations: 8 kB / 274.4 MB, free: 15.87 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002772/0.3298, allocations: 375.5 kB / 274.8 MB, free: 15.5 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.01e-05/0.3298, allocations: 11.94 kB / 274.8 MB, free: 15.49 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001885/0.3317, allocations: 111.9 kB / 274.9 MB, free: 15.38 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002039/0.3319, allocations: 43.89 kB / 274.9 MB, free: 15.34 MB / 202.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (cActuator.armature.stopper_xMin.contact,comparisonWithFEA.tableID,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 (118): * Single equations (assignments): 118 * 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.0003131/0.3323, allocations: 122.6 kB / 275.1 MB, free: 15.21 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003789/0.3327, allocations: 86.97 kB / 275.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00139/0.3341, allocations: 408.7 kB / 275.5 MB, free: 14.72 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/0.3341, allocations: 8 kB / 275.6 MB, free: 14.71 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.3341, allocations: 4 kB / 275.6 MB, free: 14.71 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.947e-05/0.3342, allocations: 7.984 kB / 275.6 MB, free: 14.7 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007592/0.3418, allocations: 2.638 MB / 278.2 MB, free: 11.91 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.857e-05/0.3419, allocations: 12.03 kB / 278.2 MB, free: 11.9 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001996/0.3439, allocations: 279.6 kB / 278.5 MB, free: 11.63 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.217e-05/0.3439, allocations: 20 kB / 278.5 MB, free: 11.61 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000136/0.3441, allocations: 16 kB / 278.5 MB, free: 11.59 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.6e-05/0.3441, allocations: 19.92 kB / 278.5 MB, free: 11.57 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.919e-05/0.3441, allocations: 15.94 kB / 278.6 MB, free: 11.56 MB / 202.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00285/0.347, allocations: 1.625 MB / 280.2 MB, free: 9.527 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005429/0.3476, allocations: 180 kB / 280.4 MB, free: 9.332 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003333/0.3479, allocations: 15.91 kB / 280.4 MB, free: 9.316 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001561/0.3495, allocations: 75.94 kB / 280.5 MB, free: 9.242 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.3497, allocations: 71.77 kB / 280.5 MB, free: 9.172 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.3499, allocations: 47.98 kB / 280.6 MB, free: 9.125 MB / 202.7 MB Notification: Performance of sort global known variables: time 0.001185/0.3511, allocations: 467.2 kB / 281 MB, free: 8.672 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001684/0.3528, allocations: 187.9 kB / 281.2 MB, free: 8.488 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 3 (comparisonWithFEA.tableID,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 (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005269/0.3533, allocations: 174.3 kB / 281.4 MB, free: 8.316 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.3552, allocations: 0.7113 MB / 282.1 MB, free: 7.605 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.3552, allocations: 4.062 kB / 282.1 MB, free: 7.602 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009669/0.3562, allocations: 397.6 kB / 282.5 MB, free: 7.215 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001588/0.3578, allocations: 165.7 kB / 282.6 MB, free: 7.059 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004724/0.3625, allocations: 1.456 MB / 284.1 MB, free: 5.438 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001419/0.364, allocations: 1.125 MB / 285.2 MB, free: 4.285 MB / 202.7 MB Notification: Performance of SimCode: time 8.72e-07/0.364, allocations: 0 / 285.2 MB, free: 4.285 MB / 202.7 MB Notification: Performance of Templates: time 0.0317/0.3957, allocations: 10.38 MB / 295.6 MB, free: 9.93 MB / 218.7 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1)