Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.8614/0.8614, allocations: 110.8 MB / 118 MB, free: 3.484 MB / 98.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001788/0.001788, allocations: 164 kB / 143.7 MB, free: 9.777 MB / 130.8 MB Notification: Performance of FrontEnd - loaded program: time 5.571e-06/5.601e-06, allocations: 0 / 173.4 MB, free: 13.71 MB / 130.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04901/0.04903, allocations: 25.18 MB / 198.6 MB, free: 4.488 MB / 146.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1511/0.2001, allocations: 36.23 MB / 234.9 MB, free: 3.418 MB / 162.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001849/0.2004, allocations: 62.97 kB / 234.9 MB, free: 3.41 MB / 162.8 MB Notification: Performance of FrontEnd: time 0.02379/0.2242, allocations: 8.048 MB / 243 MB, free: 14.14 MB / 178.8 MB Notification: Performance of Transformations before backend: time 2.092e-05/0.2242, allocations: 11.94 kB / 243 MB, free: 14.13 MB / 178.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001448/0.2257, allocations: 0.6493 MB / 243.6 MB, free: 13.46 MB / 178.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.2257, allocations: 8.031 kB / 243.6 MB, free: 13.45 MB / 178.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.2259, allocations: 43.52 kB / 243.7 MB, free: 13.41 MB / 178.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004434/0.2264, allocations: 293.7 kB / 244 MB, free: 13.11 MB / 178.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.474e-05/0.2264, allocations: 12 kB / 244 MB, free: 13.09 MB / 178.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.185e-05/0.2265, allocations: 31.78 kB / 244 MB, free: 13.06 MB / 178.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007196/0.2272, allocations: 403.4 kB / 244.4 MB, free: 12.79 MB / 178.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007016/0.2279, allocations: 419.4 kB / 244.8 MB, free: 12.47 MB / 178.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.228, allocations: 4 kB / 244.8 MB, free: 12.47 MB / 178.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.228, allocations: 7.906 kB / 244.8 MB, free: 12.46 MB / 178.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.559e-05/0.2281, allocations: 11.98 kB / 244.8 MB, free: 12.45 MB / 178.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.2304, allocations: 1.104 MB / 245.9 MB, free: 11.51 MB / 178.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005446/0.2309, allocations: 373.7 kB / 246.3 MB, free: 11.24 MB / 178.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003606/0.2313, allocations: 255.8 kB / 246.6 MB, free: 11.07 MB / 178.8 MB Notification: Performance of preOpt evalFunc (simulation): time 6.106e-05/0.2314, allocations: 8.5 kB / 246.6 MB, free: 11.06 MB / 178.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.2314, allocations: 34.25 kB / 246.6 MB, free: 11.02 MB / 178.8 MB Notification: Performance of pre-optimization done (n=47): time 2.375e-06/0.2314, allocations: 4 kB / 246.6 MB, free: 11.02 MB / 178.8 MB Notification: Performance of matching and sorting (n=55): time 0.003718/0.2352, allocations: 1.79 MB / 248.4 MB, free: 9.453 MB / 178.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.384e-05/0.2352, allocations: 85.61 kB / 248.5 MB, free: 9.352 MB / 178.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002601/0.2355, allocations: 213.9 kB / 248.7 MB, free: 9.168 MB / 178.8 MB Notification: Performance of collectPreVariables (initialization): time 6.266e-05/0.2356, allocations: 33.2 kB / 248.7 MB, free: 9.133 MB / 178.8 MB Notification: Performance of collectInitialEqns (initialization): time 9.92e-05/0.2357, allocations: 143.8 kB / 248.9 MB, free: 8.992 MB / 178.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.2358, allocations: 171.2 kB / 249 MB, free: 8.848 MB / 178.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.2359, allocations: 0 / 249 MB, free: 8.848 MB / 178.8 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.236, allocations: 343.4 kB / 249.4 MB, free: 8.516 MB / 178.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003852/0.2364, allocations: 236.4 kB / 249.6 MB, free: 8.359 MB / 178.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004104/0.2369, allocations: 300.7 kB / 249.9 MB, free: 8.145 MB / 178.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004845/0.2373, allocations: 215 kB / 250.1 MB, free: 7.988 MB / 178.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2374, allocations: 3.938 kB / 250.1 MB, free: 7.984 MB / 178.8 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001442/0.2388, allocations: 0.7442 MB / 250.8 MB, free: 7.41 MB / 178.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.2388, allocations: 12.06 kB / 250.8 MB, free: 7.398 MB / 178.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.2388, allocations: 0 / 250.8 MB, free: 7.398 MB / 178.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009432/0.2398, allocations: 434.2 kB / 251.3 MB, free: 7.055 MB / 178.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004184/0.2402, allocations: 90.25 kB / 251.4 MB, free: 6.969 MB / 178.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.2415, allocations: 1.031 MB / 252.4 MB, free: 6.086 MB / 178.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000482/0.242, allocations: 79.12 kB / 252.5 MB, free: 6.012 MB / 178.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.257e-05/0.2421, allocations: 27.3 kB / 252.5 MB, free: 5.988 MB / 178.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" 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: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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 prepare postOptimizeDAE: time 0.0002374/0.2423, allocations: 128.1 kB / 252.6 MB, free: 5.859 MB / 178.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.2424, allocations: 35.61 kB / 252.7 MB, free: 5.824 MB / 178.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.2426, allocations: 50.28 kB / 252.7 MB, free: 5.809 MB / 178.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.2426, allocations: 4 kB / 252.7 MB, free: 5.805 MB / 178.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.2426, allocations: 3.906 kB / 252.7 MB, free: 5.801 MB / 178.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.2426, allocations: 4.047 kB / 252.7 MB, free: 5.797 MB / 178.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002792/0.2454, allocations: 1.445 MB / 254.2 MB, free: 4.613 MB / 178.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.2454, allocations: 0 / 254.2 MB, free: 4.613 MB / 178.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003948/0.2458, allocations: 82.73 kB / 254.2 MB, free: 4.535 MB / 178.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008185/0.2466, allocations: 417.4 kB / 254.6 MB, free: 4.203 MB / 178.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.722e-05/0.2467, allocations: 23.16 kB / 254.7 MB, free: 4.184 MB / 178.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.2479, allocations: 0.9841 MB / 255.7 MB, free: 3.328 MB / 178.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.2479, allocations: 0 / 255.7 MB, free: 3.328 MB / 178.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001903/0.2498, allocations: 1.106 MB / 256.8 MB, free: 2.477 MB / 178.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002673/0.2501, allocations: 172 kB / 256.9 MB, free: 2.312 MB / 178.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.623e-05/0.2502, allocations: 3.875 kB / 256.9 MB, free: 2.312 MB / 178.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004295/0.2506, allocations: 72 kB / 257 MB, free: 2.242 MB / 178.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.2509, allocations: 89.36 kB / 257.1 MB, free: 2.164 MB / 178.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.577e-05/0.2509, allocations: 29.23 kB / 257.1 MB, free: 2.141 MB / 178.8 MB Notification: Performance of sort global known variables: time 0.0001777/0.2511, allocations: 166.5 kB / 257.3 MB, free: 2 MB / 178.8 MB Notification: Performance of remove unused functions: time 0.0005928/0.2517, allocations: 127.8 kB / 257.4 MB, free: 1.875 MB / 178.8 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * 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 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003131/0.252, allocations: 141.7 kB / 257.5 MB, free: 1.73 MB / 178.8 MB Notification: Performance of simCode: created initialization part: time 0.0009462/0.253, allocations: 0.5366 MB / 258.1 MB, free: 1.348 MB / 178.8 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.253, allocations: 0 / 258.1 MB, free: 1.348 MB / 178.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0005507/0.2536, allocations: 293.4 kB / 258.4 MB, free: 1.133 MB / 178.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003485/0.2539, allocations: 30.7 kB / 258.4 MB, free: 1.109 MB / 178.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.2555, allocations: 0.6579 MB / 259.1 MB, free: 500 kB / 178.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005397/0.2561, allocations: 0.8483 MB / 259.9 MB, free: 15.61 MB / 194.8 MB Notification: Performance of SimCode: time 2.6e-07/0.2561, allocations: 0 / 259.9 MB, free: 15.61 MB / 194.8 MB Notification: Performance of Templates: time 0.0137/0.2698, allocations: 7.389 MB / 267.3 MB, free: 8.211 MB / 194.8 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)