Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.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.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") [: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.6724/0.6724, allocations: 110.7 MB / 118 MB, free: 14.59 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00226/0.00226, allocations: 152 kB / 143.7 MB, free: 4.914 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.133e-06/7.253e-06, allocations: 0 / 173.5 MB, free: 23.03 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05435/0.05437, allocations: 25.16 MB / 198.6 MB, free: 13.94 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2004/0.2548, allocations: 44.71 MB / 243.3 MB, free: 3.672 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/0.2552, allocations: 70.8 kB / 243.4 MB, free: 3.66 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.1664/0.4216, allocations: 42.39 MB / 285.8 MB, free: 5.57 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0002034/0.4219, allocations: 52 kB / 285.8 MB, free: 5.52 MB / 202.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.009608/0.4315, allocations: 2.299 MB / 288.1 MB, free: 3.168 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.4316, allocations: 8.031 kB / 288.2 MB, free: 3.16 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001305/0.4329, allocations: 288.5 kB / 288.4 MB, free: 2.875 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003938/0.4368, allocations: 1.243 MB / 289.7 MB, free: 1.582 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.437, allocations: 68 kB / 289.7 MB, free: 1.516 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004818/0.4375, allocations: 112 kB / 289.9 MB, free: 1.406 MB / 202.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005651/0.4431, allocations: 1.722 MB / 291.6 MB, free: 15.68 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005333/0.4485, allocations: 1.797 MB / 293.4 MB, free: 13.87 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.906e-05/0.4486, allocations: 4 kB / 293.4 MB, free: 13.86 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002469/0.4489, allocations: 0 / 293.4 MB, free: 13.86 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-05/0.4489, allocations: 48 kB / 293.4 MB, free: 13.82 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02205/0.471, allocations: 7.087 MB / 300.5 MB, free: 6.543 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003822/0.4749, allocations: 1.222 MB / 301.7 MB, free: 5.316 MB / 218.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003329/0.4783, allocations: 1.237 MB / 303 MB, free: 4.078 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003142/0.4786, allocations: 123.1 kB / 303.1 MB, free: 3.938 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.48e-05/0.4787, allocations: 56.56 kB / 303.1 MB, free: 3.875 MB / 218.7 MB Notification: Performance of pre-optimization done (n=220): time 7.074e-06/0.4787, allocations: 0 / 303.1 MB, free: 3.875 MB / 218.7 MB Notification: Performance of matching and sorting (n=345): time 0.07167/0.5504, allocations: 13.57 MB / 316.7 MB, free: 6.18 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.637e-05/0.5505, allocations: 90.12 kB / 316.8 MB, free: 6.078 MB / 234.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Magnetic/FluxTubes.mo:3057:9-3059:53:writable] Warning: Parameter advancedSolenoid.g_mFePole.r_i has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002131/0.5526, allocations: 1.264 MB / 318.1 MB, free: 4.812 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002392/0.5529, allocations: 25.7 kB / 318.1 MB, free: 4.781 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003933/0.5533, allocations: 0.6641 MB / 318.8 MB, free: 4.105 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009526/0.5542, allocations: 1.081 MB / 319.8 MB, free: 3.008 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/0.5544, allocations: 0 / 319.8 MB, free: 3.008 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.5547, allocations: 432.5 kB / 320.3 MB, free: 2.578 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002315/0.557, allocations: 1.334 MB / 321.6 MB, free: 1.242 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.08134/0.6383, allocations: 1.6 MB / 323.2 MB, free: 74.43 MB / 234.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: advancedSolenoid.armature.mass.v = $START.advancedSolenoid.armature.mass.v (if time < x_set.startTime then 0.0 else if time < x_set.startTime + x_set.duration then x_set.height / x_set.duration else 0.0 = $START.advancedSolenoid.armature.mass.v) Notification: Performance of analyzeInitialSystem (initialization): time 0.0208/0.6592, allocations: 5.945 MB / 329.1 MB, free: 74.23 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.6592, allocations: 3.812 kB / 329.1 MB, free: 74.23 MB / 234.7 MB Notification: Performance of matching and sorting (n=404) (initialization): time 0.007853/0.6671, allocations: 4.191 MB / 333.3 MB, free: 74.06 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.6671, allocations: 9.188 kB / 333.3 MB, free: 74.06 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/0.6671, allocations: 11.28 kB / 333.4 MB, free: 74.06 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002976/0.6701, allocations: 0.9823 MB / 334.3 MB, free: 73.99 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003654/0.6738, allocations: 0.6162 MB / 335 MB, free: 73.99 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007479/0.6813, allocations: 9.862 MB / 344.8 MB, free: 66.84 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00329/0.6846, allocations: 84.72 kB / 344.9 MB, free: 66.84 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004086/0.6851, allocations: 145.6 kB / 345 MB, free: 66.84 MB / 234.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: advancedSolenoid.armature.mass.v = $START.advancedSolenoid.armature.mass.v Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: advancedSolenoid.g_mAirWork.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real advancedSolenoid.g_mFeYokeSide2.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real advancedSolenoid.coil1.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux coupled into magnetic circuit" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mLeakWork.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference between both ports" type: Real simpleSolenoid.g_mFeYokeBot.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (293): * Single equations (assignments): 286 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 37,3 49} Notification: Performance of prepare postOptimizeDAE: time 0.0006042/0.6857, allocations: 162.6 kB / 345.2 MB, free: 66.73 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004537/0.6861, allocations: 249.7 kB / 345.4 MB, free: 66.66 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007301/0.6934, allocations: 4.199 MB / 349.6 MB, free: 66.42 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.25e-05/0.6935, allocations: 36.41 kB / 349.7 MB, free: 66.42 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.6935, allocations: 6.438 kB / 349.7 MB, free: 66.42 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.782e-05/0.6935, allocations: 17.86 kB / 349.7 MB, free: 66.42 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01463/0.7082, allocations: 8.845 MB / 358.5 MB, free: 62.5 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/0.7082, allocations: 7.688 kB / 358.6 MB, free: 62.5 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00359/0.7118, allocations: 0.5352 MB / 359.1 MB, free: 62.48 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003115/0.715, allocations: 0.9176 MB / 360 MB, free: 62.2 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005383/0.7155, allocations: 51.81 kB / 360.1 MB, free: 62.2 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00763/0.7232, allocations: 9.665 MB / 369.7 MB, free: 53.75 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03245/0.7557, allocations: 12.35 MB / 382.1 MB, free: 45.7 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01076/0.7665, allocations: 6.513 MB / 388.6 MB, free: 39.43 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001914/0.7685, allocations: 0.7134 MB / 389.3 MB, free: 38.81 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000737/0.7692, allocations: 4 kB / 389.3 MB, free: 38.81 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002737/0.772, allocations: 110.2 kB / 389.4 MB, free: 38.73 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004057/0.7724, allocations: 198.3 kB / 389.6 MB, free: 38.62 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002999/0.7727, allocations: 133.5 kB / 389.7 MB, free: 38.52 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.001467/0.7742, allocations: 0.9576 MB / 390.7 MB, free: 37.64 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002752/0.7769, allocations: 0.6313 MB / 391.3 MB, free: 37.03 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 ($STATESET1.x,advancedSolenoid.coil1.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedSolenoid.g_mLeakWork.Phi,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 5 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (244): * Single equations (assignments): 236 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 38,3 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006699/0.7776, allocations: 201.9 kB / 391.5 MB, free: 36.89 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.006552/0.7842, allocations: 3.87 MB / 395.4 MB, free: 33.17 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/0.7842, allocations: 128 / 395.4 MB, free: 33.17 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004074/0.7883, allocations: 2.42 MB / 397.8 MB, free: 30.84 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002464/0.7908, allocations: 252.6 kB / 398.1 MB, free: 30.64 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.802, allocations: 5.046 MB / 403.1 MB, free: 26.11 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002555/0.8046, allocations: 2.02 MB / 405.1 MB, free: 24.53 MB / 234.7 MB Notification: Performance of SimCode: time 1.002e-06/0.8046, allocations: 0 / 405.1 MB, free: 24.53 MB / 234.7 MB Notification: Performance of Templates: time 0.1895/0.9942, allocations: 53.49 MB / 458.6 MB, free: 67.43 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe 2>&1)