Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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/Complex 3.2.2+maint.om/package.mo): time 0.001762/0.001762, allocations: 188.9 kB / 8.134 MB, free: 2.641 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.206/1.206, allocations: 194.2 MB / 202.8 MB, free: 12.9 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.08401/0.08401, allocations: 109.3 kB / 247.7 MB, free: 6.355 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 5.63e-06/5.821e-06, allocations: 0 / 297.6 MB, free: 12.16 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07212/0.07214, allocations: 44.48 MB / 342.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2182/0.2904, allocations: 86.7 MB / 428.8 MB, free: 15.39 MB / 318.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.2907, allocations: 88.83 kB / 428.8 MB, free: 15.34 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getDerTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getTableTimeTmin. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getTableTimeTmax. Notification: Performance of FrontEnd: time 0.2044/0.495, allocations: 75.96 MB / 0.493 GB, free: 10.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008244/0.4959, allocations: 116 kB / 0.4931 GB, free: 10.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01282/0.5087, allocations: 5.618 MB / 0.4986 GB, free: 4.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.5088, allocations: 8.031 kB / 0.4986 GB, free: 4.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002164/0.511, allocations: 0.8524 MB / 0.4994 GB, free: 3.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009182/0.5202, allocations: 3.55 MB / 0.5029 GB, free: 108 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/0.5203, allocations: 72 kB / 0.5029 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006426/0.521, allocations: 124.1 kB / 0.5031 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0045/0.5255, allocations: 1.68 MB / 0.5047 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004166/0.5297, allocations: 1.725 MB / 0.5064 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.501e-05/0.5298, allocations: 11.84 kB / 0.5064 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001759/0.5299, allocations: 4 kB / 0.5064 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.991e-05/0.53, allocations: 51.94 kB / 0.5064 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02063/0.5506, allocations: 9.779 MB / 0.516 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002847/0.5535, allocations: 1.322 MB / 0.5173 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1041/0.6576, allocations: 1.194 MB / 0.5185 GB, free: 124.6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002178/0.6579, allocations: 31.83 kB / 0.5185 GB, free: 124.6 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00166/0.6595, allocations: 1.035 MB / 0.5195 GB, free: 124.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=246): time 4.138e-06/0.6596, allocations: 0 / 0.5195 GB, free: 124.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=382): time 0.03889/0.6984, allocations: 16.14 MB / 0.5353 GB, free: 120.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.536e-05/0.6986, allocations: 285.2 kB / 0.5355 GB, free: 119.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1323/0.8309, allocations: 12.87 MB / 0.5481 GB, free: 119.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006267/0.8316, allocations: 32.33 kB / 0.5481 GB, free: 119.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001564/0.8331, allocations: 1.444 MB / 0.5495 GB, free: 119 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001245/0.8344, allocations: 1.209 MB / 0.5507 GB, free: 118.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002344/0.8346, allocations: 0 / 0.5507 GB, free: 118.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.8348, allocations: 440.6 kB / 0.5511 GB, free: 118 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00218/0.837, allocations: 1.183 MB / 0.5523 GB, free: 117.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002613/0.8396, allocations: 1.507 MB / 0.5538 GB, free: 116.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002564/0.8422, allocations: 1.39 MB / 0.5551 GB, free: 116.1 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.667e-06/0.8422, allocations: 1.219 kB / 0.5551 GB, free: 116.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=448) (initialization): time 0.01195/0.8542, allocations: 4.947 MB / 0.56 GB, free: 114.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.8542, allocations: 4.188 kB / 0.56 GB, free: 114.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.94e-05/0.8542, allocations: 9.875 kB / 0.56 GB, free: 114.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006209/0.8605, allocations: 1.423 MB / 0.5614 GB, free: 113.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003397/0.8639, allocations: 0.576 MB / 0.5619 GB, free: 113.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02507/0.889, allocations: 21.24 MB / 0.5827 GB, free: 97.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004111/0.8931, allocations: 92.58 kB / 0.5828 GB, free: 97.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006673/0.8938, allocations: 125.2 kB / 0.5829 GB, free: 97.54 MB / 398.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference between both ports" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,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 (314): * Single equations (assignments): 304 * 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: 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 42,3 55} Notification: Performance of prepare postOptimizeDAE: time 0.0009887/0.8948, allocations: 151.7 kB / 0.583 GB, free: 97.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001934/0.8968, allocations: 0.8155 MB / 0.5838 GB, free: 96.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01119/0.908, allocations: 4.965 MB / 0.5887 GB, free: 95.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.817e-05/0.908, allocations: 37.38 kB / 0.5887 GB, free: 95.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.446e-05/0.9081, allocations: 6.625 kB / 0.5887 GB, free: 95.11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.961e-05/0.9081, allocations: 25.81 kB / 0.5887 GB, free: 95.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02726/0.9354, allocations: 12.91 MB / 0.6013 GB, free: 90.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.882e-05/0.9354, allocations: 3.312 kB / 0.6013 GB, free: 90.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003042/0.9385, allocations: 0.5091 MB / 0.6018 GB, free: 90.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005817/0.9443, allocations: 1.301 MB / 0.6031 GB, free: 89.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005723/0.9449, allocations: 28.8 kB / 0.6031 GB, free: 89.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02242/0.9673, allocations: 19.05 MB / 0.6217 GB, free: 71.37 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02756/0.9949, allocations: 11.69 MB / 0.6332 GB, free: 60.8 MB / 398.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01501/1.01, allocations: 7.35 MB / 0.6403 GB, free: 53.76 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004148/1.014, allocations: 1.915 MB / 0.6422 GB, free: 52.01 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001805/1.016, allocations: 19.38 kB / 0.6422 GB, free: 51.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003474/1.019, allocations: 85.33 kB / 0.6423 GB, free: 51.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004957/1.02, allocations: 198.3 kB / 0.6425 GB, free: 51.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003089/1.02, allocations: 102.3 kB / 0.6426 GB, free: 51.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 0.01622/1.037, allocations: 10.27 MB / 0.6526 GB, free: 42.53 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006465/1.043, allocations: 1.453 MB / 0.654 GB, free: 41.09 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedSolenoid.g_mLeakWork.Phi,$STATESET139771941939607.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 4,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 47,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.001228/1.044, allocations: 340.3 kB / 0.6544 GB, free: 40.92 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007904/1.052, allocations: 4.342 MB / 0.6586 GB, free: 36.65 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/1.052, allocations: 0 / 0.6586 GB, free: 36.65 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00458/1.057, allocations: 2.9 MB / 0.6614 GB, free: 33.79 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003495/1.06, allocations: 393.1 kB / 0.6618 GB, free: 33.45 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03551/1.096, allocations: 16.71 MB / 0.6781 GB, free: 18.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008679/1.105, allocations: 4.512 MB / 0.6825 GB, free: 15.25 MB / 398.1 MB Notification: Performance of SimCode: time 1.222e-06/1.105, allocations: 0 / 0.6825 GB, free: 15.25 MB / 398.1 MB Notification: Performance of Templates: time 0.4421/1.547, allocations: 84.69 MB / 0.7652 GB, free: 94.35 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)