Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.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.2.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/Complex 3.2.1+maint.om/package.mo): time 0.007613/0.007613, allocations: 171.7 kB / 7.445 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.161/1.161, allocations: 170.6 MB / 178.4 MB, free: 15.39 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001678/0.001678, allocations: 99.88 kB / 217.7 MB, free: 8.172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.304e-06/7.434e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06367/0.0637, allocations: 38.77 MB / 300.5 MB, free: 3.906 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2292/0.293, allocations: 82.96 MB / 383.5 MB, free: 1.934 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.2933, allocations: 78.52 kB / 383.5 MB, free: 1.895 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.1909/0.4842, allocations: 70.8 MB / 454.3 MB, free: 236 kB / 330.7 MB Notification: Performance of Transformations before backend: time 0.001195/0.4855, allocations: 119.9 kB / 454.5 MB, free: 116 kB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01631/0.5018, allocations: 5.565 MB / 460 MB, free: 10.46 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.5019, allocations: 8.031 kB / 460 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003175/0.5051, allocations: 0.8485 MB / 460.9 MB, free: 9.594 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/0.5159, allocations: 3.483 MB / 464.4 MB, free: 6.043 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.5161, allocations: 64 kB / 464.4 MB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005264/0.5167, allocations: 116 kB / 464.5 MB, free: 5.867 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003973/0.5206, allocations: 1.613 MB / 466.2 MB, free: 4.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003409/0.5241, allocations: 1.669 MB / 467.8 MB, free: 2.516 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.782e-05/0.5241, allocations: 7.906 kB / 467.8 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001431/0.5243, allocations: 0 / 467.8 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.803e-05/0.5243, allocations: 51.94 kB / 467.9 MB, free: 2.457 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1706/0.695, allocations: 9.616 MB / 477.5 MB, free: 116.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002305/0.6973, allocations: 1.21 MB / 478.7 MB, free: 116.7 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00181/0.6992, allocations: 1.126 MB / 479.8 MB, free: 116.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002044/0.6994, allocations: 118.2 kB / 479.9 MB, free: 116.6 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/0.7008, allocations: 0.9743 MB / 480.9 MB, free: 116.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=230): time 4.438e-06/0.7008, allocations: 0 / 480.9 MB, free: 116.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=355): time 0.05271/0.7536, allocations: 16.78 MB / 497.7 MB, free: 112 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000174/0.7538, allocations: 275.2 kB / 498 MB, free: 111.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1268/0.8806, allocations: 12.87 MB / 0.4989 GB, free: 108.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009211/0.8816, allocations: 29.55 kB / 0.4989 GB, free: 108.4 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002905/0.8845, allocations: 1.433 MB / 0.5003 GB, free: 107.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002098/0.8866, allocations: 1.132 MB / 0.5014 GB, free: 107 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006203/0.8873, allocations: 0 / 0.5014 GB, free: 107 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002871/0.8876, allocations: 430.5 kB / 0.5018 GB, free: 106.6 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003491/0.8911, allocations: 1.232 MB / 0.503 GB, free: 106 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003379/0.8945, allocations: 1.54 MB / 0.5045 GB, free: 105.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003905/0.8984, allocations: 1.53 MB / 0.506 GB, free: 103.8 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.367e-05/0.8985, allocations: 0 / 0.506 GB, free: 103.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=418) (initialization): time 0.01195/0.9104, allocations: 4.654 MB / 0.5106 GB, free: 99.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.9105, allocations: 5.219 kB / 0.5106 GB, free: 99.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.44e-05/0.9105, allocations: 4 kB / 0.5106 GB, free: 99.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003447/0.914, allocations: 1.049 MB / 0.5116 GB, free: 98.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003518/0.9175, allocations: 0.5818 MB / 0.5122 GB, free: 98.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009786/0.9273, allocations: 12.73 MB / 0.5246 GB, free: 85.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004993/0.9324, allocations: 93.7 kB / 0.5247 GB, free: 85.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009103/0.9333, allocations: 136.4 kB / 0.5248 GB, free: 84.96 MB / 346.7 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: 17 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,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 (297): * Single equations (assignments): 287 * 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 37,3 49} Notification: Performance of prepare postOptimizeDAE: time 0.001509/0.9349, allocations: 156.7 kB / 0.525 GB, free: 84.84 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003285/0.9381, allocations: 0.8064 MB / 0.5257 GB, free: 84.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01041/0.9486, allocations: 4.808 MB / 0.5304 GB, free: 79.86 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.867e-05/0.9486, allocations: 36 kB / 0.5305 GB, free: 79.83 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-05/0.9487, allocations: 4 kB / 0.5305 GB, free: 79.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.902e-05/0.9487, allocations: 16.92 kB / 0.5305 GB, free: 79.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02854/0.9773, allocations: 12.86 MB / 0.5431 GB, free: 69.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.514e-05/0.9773, allocations: 4 kB / 0.5431 GB, free: 69.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003055/0.9804, allocations: 0.521 MB / 0.5436 GB, free: 69.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00288/0.9833, allocations: 0.972 MB / 0.5445 GB, free: 68.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003461/0.9837, allocations: 44.8 kB / 0.5446 GB, free: 68.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008842/0.9925, allocations: 12.21 MB / 0.5565 GB, free: 55.79 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03332/1.026, allocations: 12.36 MB / 0.5686 GB, free: 44.8 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01455/1.041, allocations: 7.168 MB / 0.5756 GB, free: 37.88 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003969/1.045, allocations: 1.583 MB / 0.5771 GB, free: 36.38 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002143/1.047, allocations: 12 kB / 0.5771 GB, free: 36.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004468/1.051, allocations: 90.55 kB / 0.5772 GB, free: 36.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005821/1.052, allocations: 204.9 kB / 0.5774 GB, free: 36.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000422/1.052, allocations: 118 kB / 0.5775 GB, free: 36.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.01835/1.071, allocations: 10.27 MB / 0.5875 GB, free: 26.92 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.007205/1.078, allocations: 1.299 MB / 0.5888 GB, free: 25.63 MB / 346.7 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,$STATESET139723397626263.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 6 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent) * Number of discrete states: 1 (comparisonWithFEA.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 243 * 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%) 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 42,3 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.001605/1.08, allocations: 314.8 kB / 0.5891 GB, free: 25.44 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008352/1.088, allocations: 4.05 MB / 0.5931 GB, free: 21.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/1.088, allocations: 0 / 0.5931 GB, free: 21.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004351/1.092, allocations: 2.592 MB / 0.5956 GB, free: 18.95 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004748/1.097, allocations: 400.7 kB / 0.596 GB, free: 18.61 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03534/1.132, allocations: 16.62 MB / 0.6122 GB, free: 2.203 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1996/1.332, allocations: 4.559 MB / 0.6167 GB, free: 102.9 MB / 346.7 MB Notification: Performance of SimCode: time 2.976e-06/1.332, allocations: 0 / 0.6167 GB, free: 102.9 MB / 346.7 MB Notification: Performance of Templates: time 0.3096/1.642, allocations: 75.04 MB / 0.6899 GB, free: 66.48 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)