Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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.ComparisonPullInStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") [: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.7304/0.7304, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001893/0.001893, allocations: 152 kB / 143.7 MB, free: 4.891 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 8.126e-06/8.406e-06, allocations: 0 / 173.5 MB, free: 23.03 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05509/0.05513, allocations: 25.17 MB / 198.6 MB, free: 13.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.143/0.1982, allocations: 44.29 MB / 242.9 MB, free: 3.797 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001727/0.1984, allocations: 69.55 kB / 243 MB, free: 3.785 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.1808/0.3793, allocations: 69.19 MB / 312.2 MB, free: 10.31 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0007548/0.3801, allocations: 108 kB / 312.3 MB, free: 10.21 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 508 * Number of variables: 508 Notification: Performance of Generate backend data structure: time 0.01649/0.3966, allocations: 5.58 MB / 317.9 MB, free: 4.559 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.436e-05/0.3967, allocations: 8.031 kB / 317.9 MB, free: 4.551 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003942/0.4006, allocations: 0.8369 MB / 318.7 MB, free: 3.703 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009454/0.4101, allocations: 3.452 MB / 322.2 MB, free: 192 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001687/0.4103, allocations: 64 kB / 322.2 MB, free: 128 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00107/0.4114, allocations: 119.9 kB / 322.3 MB, free: 8 kB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1113/0.5227, allocations: 5.218 MB / 327.6 MB, free: 64.23 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008967/0.5317, allocations: 5.401 MB / 333 MB, free: 64.13 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.421e-05/0.5318, allocations: 2.125 kB / 333 MB, free: 64.13 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005832/0.5324, allocations: 0 / 333 MB, free: 64.13 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-05/0.5325, allocations: 50.34 kB / 333 MB, free: 64.13 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01852/0.551, allocations: 10 MB / 343 MB, free: 62.91 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005632/0.5567, allocations: 4.579 MB / 347.6 MB, free: 62.84 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005103/0.5619, allocations: 4.5 MB / 352.1 MB, free: 62.81 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002385/0.5621, allocations: 129.5 kB / 352.2 MB, free: 62.71 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.21e-05/0.5622, allocations: 58.88 kB / 352.3 MB, free: 62.67 MB / 234.7 MB Notification: Performance of pre-optimization done (n=225): time 4.789e-06/0.5622, allocations: 3.656 kB / 352.3 MB, free: 62.67 MB / 234.7 MB Notification: Performance of matching and sorting (n=350): time 0.05934/0.6216, allocations: 23.61 MB / 375.9 MB, free: 48.66 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.909e-05/0.6217, allocations: 144.5 kB / 376 MB, free: 48.5 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.01092/0.6326, allocations: 6.882 MB / 382.9 MB, free: 42.55 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001446/0.6341, allocations: 28.23 kB / 382.9 MB, free: 42.52 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001302/0.6354, allocations: 1.439 MB / 384.4 MB, free: 41.44 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001951/0.6373, allocations: 1.113 MB / 385.5 MB, free: 40.56 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004918/0.6378, allocations: 0 / 385.5 MB, free: 40.56 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.638, allocations: 426.3 kB / 385.9 MB, free: 40.18 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005074/0.6431, allocations: 4.594 MB / 390.5 MB, free: 36.19 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005299/0.6484, allocations: 4.867 MB / 395.4 MB, free: 31.94 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005738/0.6542, allocations: 4.882 MB / 400.3 MB, free: 27.82 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.6542, allocations: 0 / 400.3 MB, free: 27.82 MB / 234.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.01516/0.6694, allocations: 11.5 MB / 411.8 MB, free: 17.82 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.6694, allocations: 12.33 kB / 411.8 MB, free: 17.82 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.887e-05/0.6694, allocations: 4 kB / 411.8 MB, free: 17.81 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00324/0.6727, allocations: 1.043 MB / 412.8 MB, free: 16.93 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004983/0.6777, allocations: 0.7486 MB / 413.6 MB, free: 16.34 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009301/0.687, allocations: 12.73 MB / 426.3 MB, free: 3.258 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004589/0.6916, allocations: 71.03 kB / 426.4 MB, free: 3.195 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001284/0.693, allocations: 478.5 kB / 426.8 MB, free: 2.766 MB / 234.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: advancedSolenoid.g_mLeakWork.Phi:VARIABLE(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_mAirWork.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 (comparisonWithFEA.tableID,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (292): * Single equations (assignments): 283 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 37,3 49} Notification: Performance of prepare postOptimizeDAE: time 0.001012/0.694, allocations: 161.2 kB / 427 MB, free: 2.641 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001569/0.6956, allocations: 0.8021 MB / 427.8 MB, free: 1.828 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1133/0.8089, allocations: 11.68 MB / 439.5 MB, free: 58.45 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.162e-05/0.809, allocations: 33.56 kB / 439.5 MB, free: 58.45 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.213e-05/0.809, allocations: 6.625 kB / 439.5 MB, free: 58.45 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.074e-05/0.809, allocations: 17.95 kB / 439.5 MB, free: 58.45 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02524/0.8343, allocations: 12.82 MB / 452.4 MB, free: 57.6 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-05/0.8344, allocations: 3.344 kB / 452.4 MB, free: 57.6 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003744/0.8381, allocations: 0.5176 MB / 452.9 MB, free: 57.6 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003115/0.8413, allocations: 0.9622 MB / 453.8 MB, free: 57.52 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001277/0.8426, allocations: 133.8 kB / 454 MB, free: 57.52 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009177/0.8518, allocations: 12.21 MB / 466.2 MB, free: 48.03 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03195/0.8837, allocations: 12.31 MB / 478.5 MB, free: 41.66 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02366/0.9074, allocations: 19.53 MB / 498 MB, free: 29.62 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001928/0.9094, allocations: 0.747 MB / 498.8 MB, free: 28.86 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001748/0.9112, allocations: 11.8 kB / 498.8 MB, free: 28.85 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003957/0.9152, allocations: 87.47 kB / 498.9 MB, free: 28.79 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004915/0.9157, allocations: 209.5 kB / 499.1 MB, free: 28.69 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008788/0.9166, allocations: 455.4 kB / 499.5 MB, free: 28.32 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.009936/0.9265, allocations: 5.414 MB / 0.4931 GB, free: 23.7 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.004043/0.9306, allocations: 0.7654 MB / 0.4938 GB, free: 22.94 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedSolenoid.g_mLeakWork.Phi) * Number of discrete variables: 5 (comparisonWithFEA.tableID,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 238 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 2,(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.0006711/0.9313, allocations: 226.4 kB / 0.4941 GB, free: 22.8 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.007718/0.939, allocations: 7.732 MB / 0.5016 GB, free: 15.59 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.939, allocations: 7.375 kB / 0.5016 GB, free: 15.58 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004395/0.9434, allocations: 4.454 MB / 0.506 GB, free: 11.45 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003385/0.9468, allocations: 416.5 kB / 0.5064 GB, free: 11.1 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1131/1.06, allocations: 14.74 MB / 0.5208 GB, free: 51.07 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007174/1.067, allocations: 4.395 MB / 0.525 GB, free: 50.23 MB / 234.7 MB Notification: Performance of SimCode: time 1.062e-06/1.067, allocations: 0 / 0.525 GB, free: 50.23 MB / 234.7 MB Notification: Performance of Templates: time 0.1038/1.171, allocations: 60.51 MB / 0.5841 GB, free: 25.18 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)