Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.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.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses") [: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.003941/0.003941, allocations: 184 kB / 7.457 MB, free: 2.5 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.415/1.415, 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.001747/0.001747, allocations: 115.8 kB / 217.7 MB, free: 8.152 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.237e-05/1.24e-05, allocations: 0 / 261.7 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 38.76 MB / 300.5 MB, free: 3.895 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3796/0.4824, allocations: 77.03 MB / 377.5 MB, free: 7.609 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003638/0.4829, allocations: 74.09 kB / 377.6 MB, free: 7.574 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.09993/0.5828, allocations: 22.72 MB / 400.3 MB, free: 4.488 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.454e-05/0.5829, allocations: 16 kB / 400.3 MB, free: 4.473 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.004369/0.5873, allocations: 1.331 MB / 401.7 MB, free: 3.164 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.5874, allocations: 12.03 kB / 401.7 MB, free: 3.152 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001004/0.5884, allocations: 138.5 kB / 401.8 MB, free: 3.016 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00153/0.5899, allocations: 0.5376 MB / 402.4 MB, free: 2.516 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004409/0.5904, allocations: 170.5 kB / 402.5 MB, free: 2.332 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003627/0.5908, allocations: 63.89 kB / 402.6 MB, free: 2.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002637/0.5934, allocations: 1.161 MB / 403.7 MB, free: 1.457 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002473/0.5959, allocations: 1.057 MB / 404.8 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.503e-05/0.596, allocations: 11.78 kB / 404.8 MB, free: 0.668 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/0.5961, allocations: 0 / 404.8 MB, free: 0.668 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.409e-05/0.5962, allocations: 24 kB / 404.8 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008168/0.6044, allocations: 3.576 MB / 408.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.6057, allocations: 0.7086 MB / 409.1 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008473/0.6066, allocations: 0.5556 MB / 409.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.906e-05/0.6067, allocations: 17.3 kB / 409.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.061e-05/0.6068, allocations: 50.61 kB / 409.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=129): time 2.915e-06/0.6068, allocations: 0 / 409.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=141): time 0.008919/0.6157, allocations: 3.557 MB / 413.3 MB, free: 9.816 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.014e-05/0.6158, allocations: 90.42 kB / 413.4 MB, free: 9.711 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006731/0.6165, allocations: 450 kB / 413.8 MB, free: 9.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.6166, allocations: 41.64 kB / 413.9 MB, free: 9.223 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002532/0.6169, allocations: 281.2 kB / 414.1 MB, free: 8.941 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004734/0.6174, allocations: 469.3 kB / 414.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.047e-05/0.6175, allocations: 3.984 kB / 414.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.6177, allocations: 390.8 kB / 415 MB, free: 8.082 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009542/0.6186, allocations: 0.5233 MB / 415.5 MB, free: 7.559 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/0.6197, allocations: 0.6491 MB / 416.2 MB, free: 6.883 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.621, allocations: 485.7 kB / 416.6 MB, free: 6.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.621, allocations: 0 / 416.6 MB, free: 6.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004392/0.6254, allocations: 1.768 MB / 418.4 MB, free: 4.629 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.743e-05/0.6254, allocations: 7.984 kB / 418.4 MB, free: 4.621 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.293e-05/0.6255, allocations: 4 kB / 418.4 MB, free: 4.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002234/0.6277, allocations: 0.9268 MB / 419.3 MB, free: 3.684 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.6289, allocations: 267.6 kB / 419.6 MB, free: 3.422 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003068/0.632, allocations: 2.145 MB / 421.7 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.6335, allocations: 203.7 kB / 421.9 MB, free: 1.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001624/0.6337, allocations: 59.97 kB / 422 MB, free: 0.9648 MB / 298.7 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 (bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000454/0.6341, allocations: 142.3 kB / 422.1 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002581/0.6344, allocations: 94.86 kB / 422.2 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002863/0.6347, allocations: 117.2 kB / 422.4 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.52e-05/0.6347, allocations: 16 kB / 422.4 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.123e-05/0.6347, allocations: 0 / 422.4 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.6348, allocations: 11.91 kB / 422.4 MB, free: 0.582 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006315/0.6411, allocations: 2.936 MB / 425.3 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.6411, allocations: 8 kB / 425.3 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/0.6424, allocations: 275.7 kB / 425.6 MB, free: 13.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001909/0.6444, allocations: 0.8913 MB / 426.5 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.6445, allocations: 35.94 kB / 426.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002705/0.6472, allocations: 2.049 MB / 428.6 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.6472, allocations: 3.938 kB / 428.6 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004598/0.6518, allocations: 2.367 MB / 430.9 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007454/0.6526, allocations: 295.8 kB / 431.2 MB, free: 7.547 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002295/0.6528, allocations: 16 kB / 431.2 MB, free: 7.531 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/0.6542, allocations: 219.8 kB / 431.5 MB, free: 7.316 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005265/0.6548, allocations: 220.8 kB / 431.7 MB, free: 7.102 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/0.6549, allocations: 67.94 kB / 431.7 MB, free: 7.035 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0006217/0.6556, allocations: 338.9 kB / 432.1 MB, free: 6.703 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001218/0.6568, allocations: 295.9 kB / 432.4 MB, free: 6.414 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 92 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004563/0.6572, allocations: 181 kB / 432.5 MB, free: 6.23 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002702/0.66, allocations: 1.279 MB / 433.8 MB, free: 4.953 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.66, allocations: 4.312 kB / 433.8 MB, free: 4.949 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.6616, allocations: 0.7242 MB / 434.5 MB, free: 4.227 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.6626, allocations: 104.6 kB / 434.6 MB, free: 4.129 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/0.6727, allocations: 2.791 MB / 437.4 MB, free: 1.289 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/0.6742, allocations: 1.151 MB / 438.6 MB, free: 120 kB / 314.7 MB Notification: Performance of SimCode: time 1.834e-06/0.6743, allocations: 0 / 438.6 MB, free: 120 kB / 314.7 MB Notification: Performance of Templates: time 0.03933/0.7136, allocations: 19.56 MB / 458.1 MB, free: 12.52 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)