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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 92.25 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 182.4 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.672/1.672, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004642/0.0004642, allocations: 8 kB / 280.7 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1241, allocations: 47.59 MB / 328.3 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.005946/0.1301, allocations: 4.576 MB / 332.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004914/0.1351, allocations: 1.759 MB / 334.7 MB, free: 13.4 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005187/0.1356, allocations: 15.94 kB / 334.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003764/0.136, allocations: 131.1 kB / 334.8 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00112/0.1372, allocations: 349.7 kB / 335.1 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.1382, allocations: 455.4 kB / 335.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001697/0.14, allocations: 1.534 MB / 337.1 MB, free: 10.92 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004198/0.1404, allocations: 277 kB / 337.4 MB, free: 10.64 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.1415, allocations: 0.6071 MB / 338 MB, free: 10.03 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009778/0.1425, allocations: 0.7161 MB / 338.7 MB, free: 9.312 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001381/0.1427, allocations: 68 kB / 338.8 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003608/0.143, allocations: 147.9 kB / 338.9 MB, free: 9.102 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002979/0.1433, allocations: 267 kB / 339.2 MB, free: 8.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005916/0.1439, allocations: 0.573 MB / 339.8 MB, free: 8.258 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001377/0.1453, allocations: 1.398 MB / 341.2 MB, free: 6.855 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1453, allocations: 4 kB / 341.2 MB, free: 6.852 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1453, allocations: 0 / 341.2 MB, free: 6.852 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.392e-05/0.1454, allocations: 0 / 341.2 MB, free: 6.852 MB / 286.1 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.003113/0.1485, allocations: 1.38 MB / 342.5 MB, free: 5.418 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1486, allocations: 11.97 kB / 342.5 MB, free: 5.406 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004608/0.149, allocations: 135.5 kB / 342.7 MB, free: 5.273 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009238/0.15, allocations: 0.6006 MB / 343.3 MB, free: 4.629 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003338/0.1503, allocations: 207.4 kB / 343.5 MB, free: 4.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001931/0.1505, allocations: 103.8 kB / 343.6 MB, free: 4.309 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00236/0.1529, allocations: 1.271 MB / 344.9 MB, free: 3.02 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.506e-05/0.1529, allocations: 7.906 kB / 344.9 MB, free: 3.012 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.1531, allocations: 47.92 kB / 344.9 MB, free: 2.965 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.1531, allocations: 24 kB / 344.9 MB, free: 2.941 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002845/0.1559, allocations: 1.374 MB / 346.3 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006677/0.1626, allocations: 3.745 MB / 350 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002081/0.1647, allocations: 1.081 MB / 351.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.1661, allocations: 0.6867 MB / 351.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.794e-05/0.1661, allocations: 17.31 kB / 351.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.838e-05/0.1662, allocations: 47.81 kB / 351.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=129): time 2.966e-06/0.1662, allocations: 0 / 351.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=141): time 0.01403/0.1802, allocations: 5.924 MB / 357.8 MB, free: 5.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.353e-05/0.1803, allocations: 98.36 kB / 357.9 MB, free: 5.609 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007538/0.1811, allocations: 0.5887 MB / 358.5 MB, free: 5.016 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001164/0.1812, allocations: 61.7 kB / 358.6 MB, free: 4.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002452/0.1815, allocations: 337.2 kB / 358.9 MB, free: 4.613 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003547/0.1819, allocations: 477.3 kB / 359.3 MB, free: 4.141 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/0.182, allocations: 121.6 kB / 359.5 MB, free: 4.016 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1822, allocations: 390.7 kB / 359.8 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.1833, allocations: 0.5896 MB / 360.4 MB, free: 3.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.1846, allocations: 0.7271 MB / 361.2 MB, free: 2.285 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001985/0.1866, allocations: 1.073 MB / 362.2 MB, free: 1.195 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.1866, allocations: 0 / 362.2 MB, free: 1.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003462/0.1901, allocations: 1.81 MB / 364 MB, free: 15.37 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/0.1901, allocations: 8 kB / 364.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.1901, allocations: 0 / 364.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001848/0.192, allocations: 0.9696 MB / 365 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.1931, allocations: 259.6 kB / 365.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002426/0.1955, allocations: 1.997 MB / 367.3 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/0.1968, allocations: 211.9 kB / 367.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.1969, allocations: 59.97 kB / 367.5 MB, free: 11.82 MB / 318.1 MB 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,lossyGear.ideal,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,lossyGear.mode,$PRE.lossyGear.mode,lossyGear.locked,lossyGear.startBackward,lossyGear.startForward,lossyGear.tau_aPos,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,40), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005375/0.1974, allocations: 273.6 kB / 367.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001858/0.1976, allocations: 86.97 kB / 367.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002863/0.1979, allocations: 129.2 kB / 368 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.198, allocations: 16 kB / 368 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/0.198, allocations: 0 / 368 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.198, allocations: 11.91 kB / 368 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006057/0.2041, allocations: 3.335 MB / 371.4 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.2041, allocations: 3.938 kB / 371.4 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.2052, allocations: 251.8 kB / 371.6 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001969/0.2072, allocations: 0.9224 MB / 372.6 MB, free: 6.703 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001235/0.2073, allocations: 43.95 kB / 372.6 MB, free: 6.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002716/0.21, allocations: 1.952 MB / 374.5 MB, free: 4.652 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.2101, allocations: 160 / 374.5 MB, free: 4.652 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006103/0.2162, allocations: 2.622 MB / 377.2 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001243/0.2175, allocations: 299.8 kB / 377.5 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002531/0.2178, allocations: 36 kB / 377.5 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001216/0.219, allocations: 219.8 kB / 377.7 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004912/0.2195, allocations: 193.1 kB / 377.9 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.2196, allocations: 63.83 kB / 378 MB, free: 1.188 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006972/0.2203, allocations: 422.8 kB / 378.4 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2203, allocations: 0 / 378.4 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001242/0.2216, allocations: 320 kB / 378.7 MB, free: 472 kB / 318.1 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,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (4,38)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000409/0.222, allocations: 189.4 kB / 378.9 MB, free: 276 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.2072/0.4293, allocations: 1.526 MB / 380.4 MB, free: 54.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.308e-06/0.4293, allocations: 0.5 kB / 380.4 MB, free: 54.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003381/0.4327, allocations: 0.8589 MB / 381.3 MB, free: 54.28 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00169/0.4344, allocations: 163.2 kB / 381.4 MB, free: 54.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/0.4473, allocations: 3.897 MB / 385.3 MB, free: 52.64 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007993/0.4481, allocations: 1.028 MB / 386.3 MB, free: 51.93 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00109/0.4492, allocations: 134.2 kB / 386.5 MB, free: 51.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004173/0.4497, allocations: 72.86 kB / 386.5 MB, free: 51.88 MB / 318.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4497, allocations: 0 / 386.5 MB, free: 51.88 MB / 318.1 MB Notification: Performance of Templates: time 0.04282/0.4925, allocations: 20.51 MB / 407.1 MB, free: 38 MB / 318.1 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)