Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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.ArmatureStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") [: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.6382/0.6382, allocations: 110.8 MB / 118 MB, free: 14.56 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001673/0.001673, allocations: 152 kB / 143.7 MB, free: 4.891 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.682e-06/6.703e-06, allocations: 4 kB / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0403/0.04032, allocations: 25.17 MB / 198.6 MB, free: 13.94 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1457/0.1861, allocations: 41.5 MB / 240.1 MB, free: 4.32 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001843/0.1863, allocations: 69.17 kB / 240.2 MB, free: 4.32 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.09505/0.2814, allocations: 34.53 MB / 274.7 MB, free: 216 kB / 186.7 MB Notification: Performance of Transformations before backend: time 7.242e-05/0.2815, allocations: 31.88 kB / 274.8 MB, free: 184 kB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 239 * Number of variables: 239 Notification: Performance of Generate backend data structure: time 0.00313/0.2847, allocations: 1.146 MB / 275.9 MB, free: 14.99 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.2847, allocations: 8.031 kB / 275.9 MB, free: 14.98 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004252/0.2851, allocations: 118.6 kB / 276 MB, free: 14.87 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001398/0.2866, allocations: 0.5811 MB / 276.6 MB, free: 14.25 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001382/0.2867, allocations: 46 kB / 276.7 MB, free: 14.21 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002229/0.2869, allocations: 52 kB / 276.7 MB, free: 14.16 MB / 202.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001678/0.2886, allocations: 0.7146 MB / 277.4 MB, free: 13.45 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/0.2903, allocations: 0.7863 MB / 278.2 MB, free: 12.64 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.964e-05/0.2904, allocations: 7.906 kB / 278.2 MB, free: 12.64 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-05/0.2905, allocations: 0 / 278.2 MB, free: 12.64 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.17e-05/0.2905, allocations: 20 kB / 278.2 MB, free: 12.62 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005878/0.2964, allocations: 3.334 MB / 281.6 MB, free: 9.176 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008279/0.2973, allocations: 489 kB / 282 MB, free: 8.676 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007485/0.298, allocations: 412.2 kB / 282.4 MB, free: 8.27 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.567e-05/0.2981, allocations: 23.3 kB / 282.5 MB, free: 8.25 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.2982, allocations: 39.06 kB / 282.5 MB, free: 8.203 MB / 202.7 MB Notification: Performance of pre-optimization done (n=91): time 3.005e-06/0.2982, allocations: 0 / 282.5 MB, free: 8.203 MB / 202.7 MB Notification: Performance of matching and sorting (n=127): time 0.008117/0.3063, allocations: 3.565 MB / 286.1 MB, free: 4.469 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.3064, allocations: 94.2 kB / 286.2 MB, free: 4.355 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007073/0.3071, allocations: 462.1 kB / 286.6 MB, free: 3.895 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 6.973e-05/0.3072, allocations: 25.7 kB / 286.6 MB, free: 3.863 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002291/0.3075, allocations: 340.2 kB / 287 MB, free: 3.523 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003629/0.3078, allocations: 428.9 kB / 287.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.3079, allocations: 0 / 287.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.3081, allocations: 386.8 kB / 287.8 MB, free: 2.715 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006374/0.3087, allocations: 338.6 kB / 288.1 MB, free: 2.387 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006967/0.3094, allocations: 474 kB / 288.6 MB, free: 1.891 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006824/0.3101, allocations: 393.1 kB / 288.9 MB, free: 1.512 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.3101, allocations: 0 / 288.9 MB, free: 1.512 MB / 202.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002014/0.3122, allocations: 1.079 MB / 290 MB, free: 424 kB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3122, allocations: 7.984 kB / 290 MB, free: 416 kB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.3122, allocations: 4 kB / 290 MB, free: 412 kB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004596/0.3127, allocations: 138.6 kB / 290.2 MB, free: 264 kB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/0.314, allocations: 295.5 kB / 290.5 MB, free: 15.97 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004025/0.3181, allocations: 4.538 MB / 295 MB, free: 11.09 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.3192, allocations: 64.02 kB / 295.1 MB, free: 11.03 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000181/0.3194, allocations: 43.98 kB / 295.1 MB, free: 10.99 MB / 218.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 5,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003245/0.3197, allocations: 125.7 kB / 295.2 MB, free: 10.86 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002529/0.32, allocations: 86.97 kB / 295.3 MB, free: 10.77 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001418/0.3214, allocations: 0.6913 MB / 296 MB, free: 10.07 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.3214, allocations: 16 kB / 296 MB, free: 10.05 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.3214, allocations: 0 / 296 MB, free: 10.05 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.742e-05/0.3215, allocations: 15.97 kB / 296 MB, free: 10.04 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004441/0.3259, allocations: 2.691 MB / 298.7 MB, free: 7.262 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/0.3259, allocations: 4 kB / 298.7 MB, free: 7.258 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.3271, allocations: 252 kB / 299 MB, free: 7.012 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004196/0.3276, allocations: 130.5 kB / 299.1 MB, free: 6.875 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.123e-05/0.3276, allocations: 11.98 kB / 299.1 MB, free: 6.863 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003278/0.3309, allocations: 4.155 MB / 303.3 MB, free: 2.367 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/0.331, allocations: 3.906 kB / 303.3 MB, free: 2.363 MB / 218.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002858/0.3338, allocations: 1.82 MB / 305.1 MB, free: 428 kB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000429/0.3343, allocations: 168 kB / 305.3 MB, free: 240 kB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002499/0.3345, allocations: 11.91 kB / 305.3 MB, free: 228 kB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009455/0.3355, allocations: 63.94 kB / 305.3 MB, free: 164 kB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.3357, allocations: 72.55 kB / 305.4 MB, free: 92 kB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.1e-05/0.3357, allocations: 39.98 kB / 305.4 MB, free: 52 kB / 218.7 MB Notification: Performance of sort global known variables: time 0.0006124/0.3364, allocations: 351 kB / 305.8 MB, free: 15.71 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001294/0.3377, allocations: 220 kB / 306 MB, free: 15.5 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (pmActuator.x,pmActuator.mmf_PM.Phi,pmActuator.armature.stopper_xMin.v_rel,cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i) * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 115 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002754/0.3379, allocations: 134.7 kB / 306.1 MB, free: 15.36 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002213/0.3402, allocations: 1.23 MB / 307.4 MB, free: 14.1 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.3402, allocations: 0 / 307.4 MB, free: 14.1 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.3415, allocations: 0.8354 MB / 308.2 MB, free: 13.23 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.3428, allocations: 149.5 kB / 308.3 MB, free: 13.09 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004302/0.3471, allocations: 1.719 MB / 310.1 MB, free: 11.31 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/0.3483, allocations: 1.138 MB / 311.2 MB, free: 10.14 MB / 234.7 MB Notification: Performance of SimCode: time 6.61e-07/0.3484, allocations: 0 / 311.2 MB, free: 10.14 MB / 234.7 MB Notification: Performance of Templates: time 0.1161/0.4644, allocations: 12.68 MB / 323.9 MB, free: 82.99 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)