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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007059/0.007059, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001302/0.001302, allocations: 196.1 kB / 16.67 MB, free: 5.977 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.52/1.52, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.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.001334/0.001334, allocations: 54.17 kB / 326.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1167, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.007944/0.1247, allocations: 4.993 MB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005255/0.13, allocations: 1.767 MB / 379.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001255/0.1313, allocations: 15.94 kB / 379.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008092/0.1322, allocations: 170.4 kB / 380.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001911/0.1341, allocations: 401.1 kB / 380.5 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001508/0.1356, allocations: 0.5186 MB / 381 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00254/0.1382, allocations: 1.616 MB / 382.6 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006022/0.1388, allocations: 323.3 kB / 383 MB, free: 7.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001314/0.1401, allocations: 0.6894 MB / 383.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001397/0.1415, allocations: 0.7825 MB / 384.4 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004401/0.142, allocations: 124 kB / 384.6 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007093/0.1427, allocations: 227.8 kB / 384.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003546/0.1431, allocations: 338.9 kB / 385.1 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006636/0.1437, allocations: 0.6105 MB / 385.7 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001665/0.1454, allocations: 1.503 MB / 387.2 MB, free: 3.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1454, allocations: 0 / 387.2 MB, free: 3.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1455, allocations: 0 / 387.2 MB, free: 3.199 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.001e-05/0.1455, allocations: 7.938 kB / 387.2 MB, free: 3.191 MB / 318.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.003335/0.1488, allocations: 1.531 MB / 388.8 MB, free: 1.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.1489, allocations: 8.031 kB / 388.8 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004959/0.1494, allocations: 139.6 kB / 388.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.1504, allocations: 0.6007 MB / 389.5 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002026/0.1506, allocations: 175.4 kB / 389.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001797/0.1508, allocations: 107.9 kB / 389.8 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00227/0.1531, allocations: 1.259 MB / 391 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.156e-05/0.1532, allocations: 11.81 kB / 391 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/0.1533, allocations: 40 kB / 391.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.1533, allocations: 24 kB / 391.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002807/0.1561, allocations: 1.335 MB / 392.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006515/0.1626, allocations: 3.643 MB / 396.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002074/0.1647, allocations: 1.042 MB / 397.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/0.166, allocations: 0.6732 MB / 397.8 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.12e-05/0.1661, allocations: 17.31 kB / 397.8 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.1661, allocations: 43.88 kB / 397.9 MB, free: 8.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 3.377e-06/0.1661, allocations: 0 / 397.9 MB, free: 8.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01355/0.1797, allocations: 5.627 MB / 403.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.795e-05/0.1798, allocations: 98.41 kB / 403.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007834/0.1806, allocations: 0.5964 MB / 404.2 MB, free: 1.734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.1807, allocations: 61.7 kB / 404.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002699/0.181, allocations: 333.2 kB / 404.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004445/0.1815, allocations: 477.3 kB / 405 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004334/0.1819, allocations: 263.4 kB / 405.3 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.1821, allocations: 390.8 kB / 405.7 MB, free: 216 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.1833, allocations: 0.5857 MB / 406.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.1846, allocations: 0.7231 MB / 407 MB, free: 14.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002117/0.1867, allocations: 1.054 MB / 408 MB, free: 13.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.1867, allocations: 3.984 kB / 408 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003854/0.1906, allocations: 1.794 MB / 409.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.72e-05/0.1906, allocations: 8 kB / 409.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.1906, allocations: 0 / 409.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002068/0.1927, allocations: 0.9735 MB / 410.8 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.1937, allocations: 247.6 kB / 411.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00242/0.1962, allocations: 2.001 MB / 413.1 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.1975, allocations: 151.9 kB / 413.2 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.1977, allocations: 47.98 kB / 413.3 MB, free: 8.508 MB / 350.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.0006995/0.1984, allocations: 273.6 kB / 413.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002314/0.1986, allocations: 90.88 kB / 413.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002931/0.1989, allocations: 137.2 kB / 413.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.792e-05/0.1989, allocations: 16 kB / 413.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.878e-05/0.199, allocations: 0 / 413.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.199, allocations: 3.984 kB / 413.8 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0063/0.2053, allocations: 3.266 MB / 417 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.2053, allocations: 0 / 417 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.2064, allocations: 235.7 kB / 417.3 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001753/0.2082, allocations: 0.907 MB / 418.2 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001205/0.2083, allocations: 51.94 kB / 418.2 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002395/0.2107, allocations: 1.936 MB / 420.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2107, allocations: 4.031 kB / 420.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005447/0.2162, allocations: 2.58 MB / 422.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007321/0.2169, allocations: 295.9 kB / 423 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/0.2171, allocations: 39.98 kB / 423.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.2182, allocations: 147.8 kB / 423.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004401/0.2186, allocations: 197 kB / 423.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.2188, allocations: 59.88 kB / 423.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005697/0.2193, allocations: 418.8 kB / 423.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2193, allocations: 0 / 423.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009363/0.2203, allocations: 320 kB / 424.2 MB, free: 13.37 MB / 366.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.0003472/0.2206, allocations: 201.3 kB / 424.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00308/0.2237, allocations: 1.504 MB / 425.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.2237, allocations: 0 / 425.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001733/0.2255, allocations: 0.852 MB / 426.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00099/0.2265, allocations: 174.3 kB / 426.9 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008055/0.2346, allocations: 3.071 MB / 430 MB, free: 7.535 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005781/0.2352, allocations: 1.027 MB / 431 MB, free: 6.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005553/0.2357, allocations: 135.2 kB / 431.1 MB, free: 6.344 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00027/0.236, allocations: 83.39 kB / 431.2 MB, free: 6.262 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.236, allocations: 0 / 431.2 MB, free: 6.262 MB / 366.1 MB Notification: Performance of Templates: time 0.2809/0.5169, allocations: 23.22 MB / 454.4 MB, free: 74.3 MB / 382.1 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)