Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [: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.004571/0.004571, allocations: 172.9 kB / 7.447 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.301/1.301, allocations: 170.6 MB / 178.4 MB, free: 15.45 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.001845/0.001844, allocations: 112.4 kB / 217.7 MB, free: 8.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.027e-06/9.057e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07347/0.0735, allocations: 38.76 MB / 300.5 MB, free: 3.906 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2374/0.311, allocations: 69.64 MB / 370.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/0.3112, allocations: 69.64 kB / 370.2 MB, free: 14.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.02674/0.338, allocations: 8.926 MB / 379.1 MB, free: 7.465 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.973e-05/0.338, allocations: 4 kB / 379.1 MB, free: 7.461 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001108/0.3392, allocations: 0.5606 MB / 379.7 MB, free: 6.875 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.3392, allocations: 12.03 kB / 379.7 MB, free: 6.863 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000375/0.3396, allocations: 59.48 kB / 379.8 MB, free: 6.805 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005092/0.3401, allocations: 278.5 kB / 380 MB, free: 6.516 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/0.3403, allocations: 79.98 kB / 380.1 MB, free: 6.422 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.178e-05/0.3404, allocations: 23.03 kB / 380.1 MB, free: 6.402 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006403/0.341, allocations: 357.2 kB / 380.5 MB, free: 6.148 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005111/0.3415, allocations: 313 kB / 380.8 MB, free: 5.898 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.3415, allocations: 4 kB / 380.8 MB, free: 5.895 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.3416, allocations: 0 / 380.8 MB, free: 5.895 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.3416, allocations: 8 kB / 380.8 MB, free: 5.887 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.3434, allocations: 1.11 MB / 381.9 MB, free: 4.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003903/0.3438, allocations: 260.8 kB / 382.2 MB, free: 4.742 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002435/0.3441, allocations: 151.1 kB / 382.3 MB, free: 4.648 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.429e-05/0.3441, allocations: 4 kB / 382.3 MB, free: 4.645 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.3442, allocations: 37.5 kB / 382.4 MB, free: 4.602 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 3.567e-06/0.3442, allocations: 0 / 382.4 MB, free: 4.602 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002502/0.3467, allocations: 1.231 MB / 383.6 MB, free: 3.504 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.3468, allocations: 84.86 kB / 383.7 MB, free: 3.402 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/0.347, allocations: 185 kB / 383.8 MB, free: 3.242 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.91e-05/0.347, allocations: 25.7 kB / 383.9 MB, free: 3.211 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.3471, allocations: 127 kB / 384 MB, free: 3.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.3473, allocations: 150.3 kB / 384.1 MB, free: 2.961 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.288e-05/0.3473, allocations: 3.938 kB / 384.1 MB, free: 2.957 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3475, allocations: 333.4 kB / 384.5 MB, free: 2.633 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/0.3477, allocations: 136.2 kB / 384.6 MB, free: 2.551 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002794/0.348, allocations: 198.6 kB / 384.8 MB, free: 2.398 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003218/0.3483, allocations: 133.6 kB / 384.9 MB, free: 2.309 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.3484, allocations: 7.906 kB / 384.9 MB, free: 2.301 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009049/0.3493, allocations: 479.5 kB / 385.4 MB, free: 1.945 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.3493, allocations: 7.906 kB / 385.4 MB, free: 1.938 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.3493, allocations: 0 / 385.4 MB, free: 1.938 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007017/0.35, allocations: 243 kB / 385.7 MB, free: 1.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.3503, allocations: 58.95 kB / 385.7 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003351/0.3537, allocations: 2.387 MB / 388.1 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003416/0.354, allocations: 28.05 kB / 388.1 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.461e-05/0.3541, allocations: 27.77 kB / 388.2 MB, free: 15.58 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: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002122/0.3543, allocations: 110.7 kB / 388.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.322e-05/0.3544, allocations: 23.72 kB / 388.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.649e-05/0.3545, allocations: 37.77 kB / 388.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.3545, allocations: 8 kB / 388.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3545, allocations: 0 / 388.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-05/0.3546, allocations: 7.906 kB / 388.3 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001701/0.3563, allocations: 0.9501 MB / 389.3 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3563, allocations: 3.938 kB / 389.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002599/0.3566, allocations: 47.84 kB / 389.3 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000693/0.3573, allocations: 230.7 kB / 389.6 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-05/0.3573, allocations: 7.984 kB / 389.6 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003365/0.3607, allocations: 2.331 MB / 391.9 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.3608, allocations: 0 / 391.9 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001218/0.362, allocations: 0.7117 MB / 392.6 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002389/0.3622, allocations: 142.9 kB / 392.8 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.391e-05/0.3623, allocations: 3.312 kB / 392.8 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003396/0.3627, allocations: 28.09 kB / 392.8 MB, free: 11.69 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.3628, allocations: 42.48 kB / 392.8 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.813e-05/0.3628, allocations: 19.3 kB / 392.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0001525/0.363, allocations: 144.2 kB / 393 MB, free: 11.52 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000693/0.3637, allocations: 120 kB / 393.1 MB, free: 11.4 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0003329/0.364, allocations: 146.7 kB / 393.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.3651, allocations: 489.7 kB / 393.7 MB, free: 10.88 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3651, allocations: 4.188 kB / 393.7 MB, free: 10.88 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005409/0.3657, allocations: 333.5 kB / 394.1 MB, free: 10.61 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.366, allocations: 17.34 kB / 394.1 MB, free: 10.6 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.3674, allocations: 0.5237 MB / 394.6 MB, free: 10.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006602/0.368, allocations: 0.8104 MB / 395.4 MB, free: 9.285 MB / 282.7 MB Notification: Performance of SimCode: time 1.242e-06/0.3681, allocations: 0 / 395.4 MB, free: 9.285 MB / 282.7 MB Notification: Performance of Templates: time 0.01274/0.3808, allocations: 6.625 MB / 402 MB, free: 2.656 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)