Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.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.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001834/0.001834, allocations: 189.2 kB / 8.137 MB, free: 2.219 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.32/1.32, allocations: 194.2 MB / 202.8 MB, free: 8.762 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.001781/0.001781, allocations: 118 kB / 247.7 MB, free: 6.246 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.601e-06/5.982e-06, allocations: 0 / 297.6 MB, free: 8.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07061/0.07063, allocations: 44.49 MB / 342.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1954/0.266, allocations: 82.18 MB / 424.2 MB, free: 13.03 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001718/0.2663, allocations: 70.83 kB / 424.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.0646/0.3309, allocations: 22.57 MB / 446.9 MB, free: 10.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.95e-05/0.3309, allocations: 20 kB / 446.9 MB, free: 10.14 MB / 330.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.003265/0.3342, allocations: 1.316 MB / 448.2 MB, free: 8.844 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.3343, allocations: 8.031 kB / 448.2 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006302/0.3349, allocations: 145.9 kB / 448.4 MB, free: 8.695 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00093/0.3358, allocations: 0.5342 MB / 448.9 MB, free: 8.195 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003407/0.3362, allocations: 166.2 kB / 449.1 MB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002026/0.3364, allocations: 62.72 kB / 449.1 MB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002061/0.3385, allocations: 1.099 MB / 450.2 MB, free: 7.199 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001874/0.3404, allocations: 1.016 MB / 451.2 MB, free: 6.449 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.11e-05/0.3404, allocations: 19.69 kB / 451.2 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/0.3406, allocations: 0 / 451.2 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.585e-05/0.3406, allocations: 24 kB / 451.3 MB, free: 6.41 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00736/0.348, allocations: 3.586 MB / 454.9 MB, free: 3.445 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.3492, allocations: 0.6945 MB / 455.6 MB, free: 2.988 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008735/0.3501, allocations: 0.5607 MB / 456.1 MB, free: 2.652 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/0.3502, allocations: 21.2 kB / 456.1 MB, free: 2.633 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.3503, allocations: 51.38 kB / 456.2 MB, free: 2.582 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 2.966e-06/0.3503, allocations: 4 kB / 456.2 MB, free: 2.578 MB / 330.7 MB Notification: Performance of matching and sorting (n=147): time 0.008209/0.3585, allocations: 3.489 MB / 459.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.3586, allocations: 94.42 kB / 459.8 MB, free: 15.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.3591, allocations: 402.1 kB / 460.2 MB, free: 15.39 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001392/0.3592, allocations: 44.62 kB / 460.2 MB, free: 15.35 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.3594, allocations: 267 kB / 460.5 MB, free: 15.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004184/0.3598, allocations: 480.3 kB / 460.9 MB, free: 14.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.3599, allocations: 3.375 kB / 460.9 MB, free: 14.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3601, allocations: 395.8 kB / 461.3 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009139/0.361, allocations: 0.4886 MB / 461.8 MB, free: 14.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.3621, allocations: 0.6197 MB / 462.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.3633, allocations: 460.8 kB / 462.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3633, allocations: 0 / 462.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003361/0.3666, allocations: 1.554 MB / 464.4 MB, free: 12.19 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.3667, allocations: 9.094 kB / 464.4 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/0.3667, allocations: 5.688 kB / 464.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001783/0.3685, allocations: 0.7592 MB / 465.2 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/0.3697, allocations: 259.6 kB / 465.5 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002618/0.3723, allocations: 2.036 MB / 467.5 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.3736, allocations: 203.9 kB / 467.7 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001686/0.3738, allocations: 60.92 kB / 467.8 MB, free: 8.859 MB / 346.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: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" 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 brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" 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 ($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,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0003278/0.3741, allocations: 156.9 kB / 467.9 MB, free: 8.699 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002157/0.3743, allocations: 86.97 kB / 468 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003391/0.3777, allocations: 1.685 MB / 469.7 MB, free: 6.898 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.3777, allocations: 19.94 kB / 469.7 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3778, allocations: 0 / 469.7 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.3778, allocations: 9.469 kB / 469.7 MB, free: 6.871 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005736/0.3835, allocations: 2.82 MB / 472.5 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.3835, allocations: 7.906 kB / 472.5 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/0.385, allocations: 275.7 kB / 472.8 MB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001642/0.3866, allocations: 0.7168 MB / 473.5 MB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001338/0.3868, allocations: 35.94 kB / 473.6 MB, free: 2.938 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002474/0.3892, allocations: 1.94 MB / 475.5 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.3893, allocations: 4.625 kB / 475.5 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003895/0.3932, allocations: 2.184 MB / 477.7 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005829/0.3938, allocations: 295.9 kB / 478 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002408/0.394, allocations: 20 kB / 478 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.3953, allocations: 219.7 kB / 478.2 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004376/0.3958, allocations: 220.8 kB / 478.4 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/0.3959, allocations: 63.94 kB / 478.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003459/0.3963, allocations: 322.9 kB / 478.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008366/0.3971, allocations: 276 kB / 479.1 MB, free: 13.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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.0003442/0.3975, allocations: 169.9 kB / 479.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002279/0.3998, allocations: 1.352 MB / 480.6 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3998, allocations: 0 / 480.6 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.4013, allocations: 0.732 MB / 481.3 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008036/0.4021, allocations: 114.4 kB / 481.4 MB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008255/0.4104, allocations: 2.817 MB / 484.3 MB, free: 8.031 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.4114, allocations: 1.143 MB / 485.4 MB, free: 6.859 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.4114, allocations: 0 / 485.4 MB, free: 6.859 MB / 362.7 MB Notification: Performance of Templates: time 0.03163/0.443, allocations: 19.89 MB / 0.4934 GB, free: 2.992 MB / 378.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)