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.0009837/0.0009838, allocations: 96.41 kB / 15.05 MB, free: 1.109 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.001184/0.001184, allocations: 181.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.664/1.664, allocations: 205.4 MB / 222.1 MB, free: 5.516 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.00044/0.0004401, allocations: 8 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2133, allocations: 47.59 MB / 326.4 MB, free: 1.445 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004485/0.2179, allocations: 4.016 MB / 330.5 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003731/0.2216, allocations: 1.769 MB / 332.2 MB, free: 12.9 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007054/0.2224, allocations: 14.5 kB / 332.2 MB, free: 12.89 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003311/0.2227, allocations: 116.4 kB / 332.4 MB, free: 12.81 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00122/0.224, allocations: 425.9 kB / 332.8 MB, free: 12.47 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009616/0.2249, allocations: 397.1 kB / 333.2 MB, free: 12.15 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001849/0.2268, allocations: 1.001 MB / 334.2 MB, free: 11.5 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005655/0.2274, allocations: 242.4 kB / 334.4 MB, free: 11.35 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001506/0.2289, allocations: 0.59 MB / 335 MB, free: 10.92 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001041/0.2299, allocations: 0.6851 MB / 335.7 MB, free: 10.23 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.2301, allocations: 64 kB / 335.7 MB, free: 10.17 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004183/0.2305, allocations: 135.9 kB / 335.9 MB, free: 10.04 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003002/0.2308, allocations: 263.1 kB / 336.1 MB, free: 9.777 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002582/0.2311, allocations: 213.1 kB / 336.3 MB, free: 9.562 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001033/0.2321, allocations: 1.061 MB / 337.4 MB, free: 8.5 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2322, allocations: 0 / 337.4 MB, free: 8.5 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.2322, allocations: 0 / 337.4 MB, free: 8.5 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.2322, allocations: 0 / 337.4 MB, free: 8.5 MB / 270.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.003254/0.2354, allocations: 1.387 MB / 338.8 MB, free: 7.059 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.2355, allocations: 8.031 kB / 338.8 MB, free: 7.051 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004887/0.236, allocations: 142.6 kB / 338.9 MB, free: 6.91 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009139/0.2369, allocations: 0.5765 MB / 339.5 MB, free: 6.289 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003238/0.2373, allocations: 195 kB / 339.7 MB, free: 6.082 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001814/0.2374, allocations: 103.9 kB / 339.8 MB, free: 5.98 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/0.2397, allocations: 1.263 MB / 341.1 MB, free: 4.699 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.018e-05/0.2398, allocations: 11.91 kB / 341.1 MB, free: 4.688 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.2399, allocations: 36 kB / 341.1 MB, free: 4.652 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/0.2399, allocations: 24 kB / 341.1 MB, free: 4.629 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002757/0.2427, allocations: 1.37 MB / 342.5 MB, free: 3.262 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006304/0.249, allocations: 3.754 MB / 346.3 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002106/0.2511, allocations: 1.07 MB / 347.3 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.717e-05/0.2512, allocations: 17.31 kB / 347.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.2513, allocations: 51.81 kB / 347.4 MB, free: 14.19 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 2.826e-06/0.2513, allocations: 0 / 347.4 MB, free: 14.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01328/0.2646, allocations: 5.872 MB / 353.3 MB, free: 8.16 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.2646, allocations: 90.42 kB / 353.4 MB, free: 8.055 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006708/0.2653, allocations: 0.5925 MB / 353.9 MB, free: 7.453 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.2655, allocations: 69.69 kB / 354 MB, free: 7.379 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002312/0.2657, allocations: 337.1 kB / 354.3 MB, free: 7.043 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003611/0.2661, allocations: 477.4 kB / 354.8 MB, free: 6.57 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.309e-05/0.2662, allocations: 28 kB / 354.8 MB, free: 6.543 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.2663, allocations: 394.7 kB / 355.2 MB, free: 6.148 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/0.2675, allocations: 0.5818 MB / 355.8 MB, free: 5.566 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.2687, allocations: 0.7192 MB / 356.5 MB, free: 4.824 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.2698, allocations: 0.5175 MB / 357 MB, free: 4.309 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2698, allocations: 0 / 357 MB, free: 4.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003598/0.2734, allocations: 1.853 MB / 358.9 MB, free: 2.441 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.2734, allocations: 15.97 kB / 358.9 MB, free: 2.426 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.2735, allocations: 0 / 358.9 MB, free: 2.426 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00181/0.2753, allocations: 0.9579 MB / 359.9 MB, free: 1.461 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.2763, allocations: 263.6 kB / 360.1 MB, free: 1.203 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002318/0.2787, allocations: 2.005 MB / 362.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.2798, allocations: 207.9 kB / 362.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.28, allocations: 47.98 kB / 362.4 MB, free: 14.89 MB / 302.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,$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 () * 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 (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.0004977/0.2805, allocations: 257.6 kB / 362.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001689/0.2807, allocations: 90.88 kB / 362.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002528/0.2809, allocations: 137.2 kB / 362.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/0.2809, allocations: 16.08 kB / 362.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.755e-05/0.281, allocations: 7.953 kB / 362.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/0.281, allocations: 7.969 kB / 362.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005951/0.2869, allocations: 3.319 MB / 366.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.287, allocations: 0 / 366.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.2881, allocations: 267.6 kB / 366.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001711/0.2898, allocations: 0.9068 MB / 367.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.2899, allocations: 55.94 kB / 367.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002322/0.2923, allocations: 1.929 MB / 369.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2923, allocations: 4.062 kB / 369.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005324/0.2976, allocations: 2.645 MB / 372 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007319/0.2984, allocations: 291.9 kB / 372.3 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000202/0.2986, allocations: 43.98 kB / 372.3 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.2997, allocations: 215.8 kB / 372.5 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004668/0.3002, allocations: 220.8 kB / 372.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.851e-05/0.3003, allocations: 56.06 kB / 372.8 MB, free: 4.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005136/0.3008, allocations: 426.7 kB / 373.2 MB, free: 3.832 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3008, allocations: 0 / 373.2 MB, free: 3.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008563/0.3017, allocations: 324 kB / 373.5 MB, free: 3.516 MB / 302.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 (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.0003383/0.3021, allocations: 189.3 kB / 373.7 MB, free: 3.324 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003095/0.3052, allocations: 1.523 MB / 375.3 MB, free: 1.801 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3052, allocations: 0 / 375.3 MB, free: 1.801 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001773/0.307, allocations: 0.8677 MB / 376.1 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008462/0.3078, allocations: 134.2 kB / 376.3 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008359/0.3162, allocations: 3.776 MB / 380 MB, free: 13 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005864/0.3168, allocations: 1.047 MB / 381.1 MB, free: 11.92 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005322/0.3173, allocations: 127.2 kB / 381.2 MB, free: 11.79 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.3176, allocations: 83.39 kB / 381.3 MB, free: 11.71 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3176, allocations: 0 / 381.3 MB, free: 11.71 MB / 318.1 MB Notification: Performance of Templates: time 0.02951/0.3471, allocations: 19.84 MB / 401.1 MB, free: 7.84 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: