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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001464/0.001464, allocations: 171.5 kB / 7.638 MB, free: 1.418 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.254/1.254, allocations: 170.6 MB / 178.7 MB, free: 15.64 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.001651/0.001651, allocations: 119.5 kB / 218 MB, free: 8.402 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.393e-05/1.394e-05, allocations: 4 kB / 262.2 MB, free: 26.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08244/0.08247, allocations: 38.77 MB / 301 MB, free: 3.629 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3259/0.4085, allocations: 77.1 MB / 378.1 MB, free: 7.34 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.4087, allocations: 73.34 kB / 378.2 MB, free: 7.305 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06624/0.475, allocations: 22.86 MB / 401 MB, free: 4.109 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.475, allocations: 0 / 401 MB, free: 4.109 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.116e-05/0.4751, allocations: 23.98 kB / 401 MB, free: 4.086 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.003514/0.4786, allocations: 1.283 MB / 402.3 MB, free: 2.824 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.4786, allocations: 8.031 kB / 402.3 MB, free: 2.816 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006925/0.4793, allocations: 142.6 kB / 402.5 MB, free: 2.676 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.4804, allocations: 0.543 MB / 403 MB, free: 2.168 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003388/0.4808, allocations: 166 kB / 403.2 MB, free: 1.988 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002458/0.481, allocations: 63.28 kB / 403.2 MB, free: 1.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002058/0.4831, allocations: 1.157 MB / 404.4 MB, free: 1.121 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001872/0.485, allocations: 1.055 MB / 405.5 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.929e-05/0.4851, allocations: 11.84 kB / 405.5 MB, free: 336 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/0.4852, allocations: 0 / 405.5 MB, free: 336 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.835e-05/0.4852, allocations: 24 kB / 405.5 MB, free: 312 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006771/0.492, allocations: 3.548 MB / 409 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.4935, allocations: 0.9081 MB / 409.9 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008825/0.4944, allocations: 0.5585 MB / 410.5 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-05/0.4945, allocations: 18.67 kB / 410.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/0.4946, allocations: 52.38 kB / 410.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=129): time 2.424e-06/0.4946, allocations: 0 / 410.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=141): time 0.008274/0.5029, allocations: 3.583 MB / 414.2 MB, free: 9.148 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.111e-05/0.503, allocations: 94.42 kB / 414.2 MB, free: 9.039 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006912/0.5037, allocations: 453.9 kB / 414.7 MB, free: 8.594 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001172/0.5038, allocations: 45.69 kB / 414.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003023/0.5041, allocations: 333.3 kB / 415.1 MB, free: 8.211 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004495/0.5046, allocations: 469.2 kB / 415.5 MB, free: 7.746 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.69e-05/0.5047, allocations: 8 kB / 415.5 MB, free: 7.738 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002226/0.5049, allocations: 394.7 kB / 415.9 MB, free: 7.344 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000993/0.5059, allocations: 0.5155 MB / 416.4 MB, free: 6.828 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.507, allocations: 0.6491 MB / 417.1 MB, free: 6.156 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/0.5082, allocations: 489.7 kB / 417.6 MB, free: 5.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.5082, allocations: 4 kB / 417.6 MB, free: 5.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003586/0.5118, allocations: 1.76 MB / 419.3 MB, free: 3.902 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.5119, allocations: 7.953 kB / 419.3 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.5119, allocations: 4 kB / 419.3 MB, free: 3.891 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001833/0.5137, allocations: 0.9658 MB / 420.3 MB, free: 2.918 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.5149, allocations: 263.6 kB / 420.6 MB, free: 2.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002659/0.5176, allocations: 2.11 MB / 422.7 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.5189, allocations: 179.9 kB / 422.8 MB, free: 328 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/0.5191, allocations: 63.97 kB / 422.9 MB, free: 264 kB / 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.0004023/0.5195, allocations: 145.3 kB / 423 MB, free: 112 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002609/0.5198, allocations: 98.86 kB / 423.1 MB, free: 12 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003252/0.5201, allocations: 109.3 kB / 423.2 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.5201, allocations: 16 kB / 423.3 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.5202, allocations: 0 / 423.3 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/0.5202, allocations: 11.92 kB / 423.3 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005461/0.5256, allocations: 2.951 MB / 426.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.5257, allocations: 0 / 426.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.5269, allocations: 259.8 kB / 426.5 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001679/0.5285, allocations: 0.9263 MB / 427.4 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/0.5287, allocations: 35.94 kB / 427.4 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002422/0.5311, allocations: 2.018 MB / 429.5 MB, free: 9.562 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.748e-06/0.5311, allocations: 0 / 429.5 MB, free: 9.562 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004273/0.5354, allocations: 2.368 MB / 431.8 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006547/0.5361, allocations: 291.9 kB / 432.1 MB, free: 6.848 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/0.5363, allocations: 16 kB / 432.1 MB, free: 6.832 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/0.5377, allocations: 195.8 kB / 432.3 MB, free: 6.641 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005407/0.5382, allocations: 224.8 kB / 432.5 MB, free: 6.422 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002391/0.5385, allocations: 63.95 kB / 432.6 MB, free: 6.359 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000653/0.5392, allocations: 342.9 kB / 432.9 MB, free: 6.023 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.966e-06/0.5392, allocations: 0 / 432.9 MB, free: 6.023 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001601/0.5408, allocations: 295.9 kB / 433.2 MB, free: 5.734 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.0005469/0.5413, allocations: 185.9 kB / 433.4 MB, free: 5.539 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.544, allocations: 1.276 MB / 434.7 MB, free: 4.266 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.544, allocations: 0 / 434.7 MB, free: 4.266 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001337/0.5454, allocations: 0.7218 MB / 435.4 MB, free: 3.547 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009442/0.5463, allocations: 104 kB / 435.5 MB, free: 3.445 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007831/0.5542, allocations: 2.857 MB / 438.4 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00092/0.5551, allocations: 1.051 MB / 439.4 MB, free: 15.48 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008059/0.5559, allocations: 139.1 kB / 439.5 MB, free: 15.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003504/0.5563, allocations: 83.39 kB / 439.6 MB, free: 15.25 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5563, allocations: 3.938 kB / 439.6 MB, free: 15.25 MB / 330.7 MB Notification: Performance of Templates: time 0.0328/0.5891, allocations: 18.12 MB / 457.7 MB, free: 13.1 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)