Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [: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.004079/0.004079, allocations: 177 kB / 7.452 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.37/1.37, allocations: 170.6 MB / 178.4 MB, free: 15.38 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.001766/0.001766, allocations: 119.8 kB / 217.7 MB, free: 8.152 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.871e-06/5.901e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07672/0.07674, allocations: 38.76 MB / 300.5 MB, free: 3.902 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2541/0.3309, allocations: 70.24 MB / 370.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.3312, allocations: 69.72 kB / 370.8 MB, free: 14.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.02959/0.3608, allocations: 9.539 MB / 380.3 MB, free: 6.332 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.574e-05/0.3609, allocations: 4 kB / 380.4 MB, free: 6.328 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001421/0.3623, allocations: 0.6043 MB / 381 MB, free: 5.699 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.3624, allocations: 8.031 kB / 381 MB, free: 5.691 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004845/0.3629, allocations: 59.5 kB / 381 MB, free: 5.633 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000565/0.3635, allocations: 290.8 kB / 381.3 MB, free: 5.336 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001442/0.3636, allocations: 76.05 kB / 381.4 MB, free: 5.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.3638, allocations: 23.12 kB / 381.4 MB, free: 5.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007465/0.3645, allocations: 403.3 kB / 381.8 MB, free: 4.941 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006108/0.3651, allocations: 333.5 kB / 382.1 MB, free: 4.688 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.3652, allocations: 11.41 kB / 382.1 MB, free: 4.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.175e-05/0.3652, allocations: 0 / 382.1 MB, free: 4.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.3653, allocations: 8 kB / 382.1 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.3669, allocations: 0.8287 MB / 383 MB, free: 3.965 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004454/0.3674, allocations: 287.8 kB / 383.3 MB, free: 3.773 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000327/0.3677, allocations: 187.1 kB / 383.4 MB, free: 3.656 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.81e-05/0.3678, allocations: 4.438 kB / 383.4 MB, free: 3.652 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.3678, allocations: 41.31 kB / 383.5 MB, free: 3.609 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 2.304e-06/0.3678, allocations: 0 / 383.5 MB, free: 3.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.003156/0.371, allocations: 1.418 MB / 384.9 MB, free: 2.379 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.103e-05/0.3711, allocations: 89.59 kB / 385 MB, free: 2.273 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000296/0.3714, allocations: 184.8 kB / 385.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.474e-05/0.3715, allocations: 30.2 kB / 385.2 MB, free: 2.074 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.3716, allocations: 131.6 kB / 385.3 MB, free: 1.949 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002692/0.3719, allocations: 168.5 kB / 385.5 MB, free: 1.805 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.189e-05/0.3719, allocations: 4 kB / 385.5 MB, free: 1.801 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002325/0.3722, allocations: 339.5 kB / 385.8 MB, free: 1.473 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003238/0.3725, allocations: 158.2 kB / 386 MB, free: 1.379 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00031/0.3728, allocations: 204.1 kB / 386.2 MB, free: 1.238 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004148/0.3733, allocations: 156.1 kB / 386.3 MB, free: 1.137 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3733, allocations: 4.031 kB / 386.3 MB, free: 1.133 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009857/0.3743, allocations: 0.5048 MB / 386.8 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.3743, allocations: 7.984 kB / 386.8 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.3743, allocations: 4 kB / 386.8 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007838/0.3751, allocations: 233.3 kB / 387.1 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003948/0.3755, allocations: 71.14 kB / 387.1 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003562/0.3791, allocations: 2.443 MB / 389.6 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003722/0.3795, allocations: 27.97 kB / 389.6 MB, free: 14.37 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.388e-05/0.3796, allocations: 30.8 kB / 389.6 MB, free: 14.34 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002835/0.3799, allocations: 112.8 kB / 389.8 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.38, allocations: 23.72 kB / 389.8 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.3801, allocations: 52.47 kB / 389.8 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3801, allocations: 4 kB / 389.8 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3801, allocations: 0 / 389.8 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.3801, allocations: 3.984 kB / 389.8 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/0.3822, allocations: 1.094 MB / 390.9 MB, free: 13.31 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3822, allocations: 0 / 390.9 MB, free: 13.31 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003905/0.3826, allocations: 83.22 kB / 391 MB, free: 13.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006664/0.3833, allocations: 219.3 kB / 391.2 MB, free: 13.06 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.561e-05/0.3834, allocations: 11.23 kB / 391.2 MB, free: 13.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003243/0.3866, allocations: 2.338 MB / 393.6 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.972e-06/0.3866, allocations: 4 kB / 393.6 MB, free: 11.01 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001496/0.3881, allocations: 0.8372 MB / 394.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002106/0.3884, allocations: 147.7 kB / 394.6 MB, free: 10.24 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.49e-05/0.3884, allocations: 7.812 kB / 394.6 MB, free: 10.24 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000353/0.3888, allocations: 32.03 kB / 394.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.389, allocations: 50.02 kB / 394.7 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.465e-05/0.389, allocations: 18.81 kB / 394.7 MB, free: 10.15 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0001565/0.3892, allocations: 156.3 kB / 394.8 MB, free: 10.02 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007087/0.3899, allocations: 131.9 kB / 395 MB, free: 9.891 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003101/0.3902, allocations: 139.2 kB / 395.1 MB, free: 9.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.3912, allocations: 0.5387 MB / 395.6 MB, free: 9.344 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3912, allocations: 0 / 395.6 MB, free: 9.344 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006199/0.3919, allocations: 367.6 kB / 396 MB, free: 9.043 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.3922, allocations: 27.7 kB / 396 MB, free: 9.023 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.3938, allocations: 0.6025 MB / 396.6 MB, free: 8.473 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006183/0.3944, allocations: 0.8419 MB / 397.5 MB, free: 7.613 MB / 282.7 MB Notification: Performance of SimCode: time 5.41e-07/0.3944, allocations: 0 / 397.5 MB, free: 7.613 MB / 282.7 MB Notification: Performance of Templates: time 0.01465/0.4091, allocations: 7.235 MB / 404.7 MB, free: 388 kB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)