Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001073/0.001073, allocations: 189 kB / 8.133 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.085/1.085, allocations: 194.2 MB / 202.8 MB, free: 8.758 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00179/0.00179, allocations: 122.7 kB / 247.7 MB, free: 6.211 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.533e-06/6.593e-06, allocations: 0 / 297.6 MB, free: 7.992 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07245/0.07247, allocations: 44.48 MB / 342 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1991/0.2716, allocations: 75.57 MB / 417.6 MB, free: 19.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001915/0.2719, allocations: 68.14 kB / 417.7 MB, free: 19.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02788/0.2998, allocations: 9.534 MB / 427.2 MB, free: 11.69 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.801e-05/0.2998, allocations: 8 kB / 427.2 MB, free: 11.68 MB / 314.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.001109/0.3009, allocations: 0.6079 MB / 427.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.301, allocations: 8.031 kB / 427.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004554/0.3014, allocations: 51.52 kB / 427.9 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/0.3019, allocations: 286 kB / 428.2 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/0.302, allocations: 76.05 kB / 428.2 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.649e-05/0.3021, allocations: 27.42 kB / 428.3 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006255/0.3027, allocations: 399.2 kB / 428.7 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005051/0.3033, allocations: 340.3 kB / 429 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.3033, allocations: 4 kB / 429 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.124e-05/0.3033, allocations: 6 kB / 429 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.3034, allocations: 4 kB / 429 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.3046, allocations: 0.8344 MB / 429.8 MB, free: 9.336 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003923/0.305, allocations: 285.5 kB / 430.1 MB, free: 9.145 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002562/0.3053, allocations: 190.6 kB / 430.3 MB, free: 9.027 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.829e-05/0.3053, allocations: 12.41 kB / 430.3 MB, free: 9.016 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.553e-05/0.3054, allocations: 42.38 kB / 430.4 MB, free: 8.969 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.054e-06/0.3054, allocations: 192 / 430.4 MB, free: 8.969 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.002614/0.308, allocations: 1.416 MB / 431.8 MB, free: 7.742 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.718e-05/0.308, allocations: 89.48 kB / 431.9 MB, free: 7.641 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.3082, allocations: 183.5 kB / 432 MB, free: 7.477 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.3083, allocations: 25.7 kB / 432.1 MB, free: 7.445 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.774e-05/0.3083, allocations: 124.1 kB / 432.2 MB, free: 7.328 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.3084, allocations: 172.5 kB / 432.4 MB, free: 7.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.843e-05/0.3085, allocations: 0 / 432.4 MB, free: 7.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.504e-05/0.3085, allocations: 344.8 kB / 432.7 MB, free: 6.848 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002568/0.3088, allocations: 158 kB / 432.8 MB, free: 6.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002535/0.3091, allocations: 204.2 kB / 433 MB, free: 6.613 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/0.3094, allocations: 148.9 kB / 433.2 MB, free: 6.516 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3094, allocations: 0 / 433.2 MB, free: 6.516 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008775/0.3103, allocations: 0.5188 MB / 433.7 MB, free: 6.129 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.3103, allocations: 4 kB / 433.7 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3103, allocations: 0 / 433.7 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006909/0.311, allocations: 243.8 kB / 434 MB, free: 5.941 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003525/0.3114, allocations: 71.92 kB / 434 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002865/0.3143, allocations: 2.432 MB / 436.5 MB, free: 3.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.3146, allocations: 31.98 kB / 436.5 MB, free: 3.762 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.428e-05/0.3147, allocations: 19.73 kB / 436.5 MB, free: 3.746 MB / 314.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.0001545/0.3149, allocations: 121.8 kB / 436.6 MB, free: 3.621 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.42e-05/0.3149, allocations: 31.62 kB / 436.7 MB, free: 3.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.234e-05/0.315, allocations: 45.83 kB / 436.7 MB, free: 3.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.315, allocations: 4 kB / 436.7 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.315, allocations: 4 kB / 436.7 MB, free: 3.562 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.315, allocations: 3.984 kB / 436.7 MB, free: 3.559 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.3167, allocations: 1.101 MB / 437.8 MB, free: 2.688 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.3167, allocations: 0 / 437.8 MB, free: 2.688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000361/0.3171, allocations: 71.88 kB / 437.9 MB, free: 2.617 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006057/0.3177, allocations: 220.5 kB / 438.1 MB, free: 2.449 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.3177, allocations: 15.23 kB / 438.1 MB, free: 2.438 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002628/0.3204, allocations: 2.348 MB / 440.5 MB, free: 408 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3204, allocations: 0 / 440.5 MB, free: 408 kB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001222/0.3216, allocations: 0.821 MB / 441.3 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.3218, allocations: 152.5 kB / 441.4 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.351e-05/0.3219, allocations: 0.5625 kB / 441.4 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000372/0.3223, allocations: 32.09 kB / 441.5 MB, free: 15.6 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.3224, allocations: 54.52 kB / 441.5 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.787e-05/0.3225, allocations: 27.14 kB / 441.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001218/0.3226, allocations: 153.3 kB / 441.7 MB, free: 15.4 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006095/0.3232, allocations: 130.9 kB / 441.8 MB, free: 15.28 MB / 330.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.0002472/0.3235, allocations: 131.2 kB / 441.9 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008941/0.3244, allocations: 0.5455 MB / 442.5 MB, free: 14.72 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3244, allocations: 4 kB / 442.5 MB, free: 14.72 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005521/0.3249, allocations: 363.5 kB / 442.9 MB, free: 14.44 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.3253, allocations: 13.91 kB / 442.9 MB, free: 14.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.3266, allocations: 0.6137 MB / 443.5 MB, free: 13.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004908/0.3271, allocations: 0.8371 MB / 444.3 MB, free: 13.03 MB / 330.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3272, allocations: 0 / 444.3 MB, free: 13.03 MB / 330.7 MB Notification: Performance of Templates: time 0.01253/0.3397, allocations: 7.237 MB / 451.6 MB, free: 5.867 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)