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.00884/0.00884, allocations: 165.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.288/1.288, allocations: 170.8 MB / 186.6 MB, free: 1.137 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.001656/0.001656, allocations: 103.3 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003651/0.0003651, allocations: 8 kB / 274.1 MB, free: 10.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2333, allocations: 38.77 MB / 312.9 MB, free: 38.7 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1068/0.3401, allocations: 77.86 MB / 390.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/0.3404, allocations: 79.95 kB / 390.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06683/0.4073, allocations: 23.04 MB / 413.9 MB, free: 5.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.4073, allocations: 0 / 413.9 MB, free: 5.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.792e-05/0.4073, allocations: 23.94 kB / 413.9 MB, free: 5.457 MB / 314.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.00317/0.4105, allocations: 1.376 MB / 415.3 MB, free: 4.027 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.4106, allocations: 8.031 kB / 415.3 MB, free: 4.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000468/0.411, allocations: 138.6 kB / 415.4 MB, free: 3.883 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008736/0.4119, allocations: 0.549 MB / 416 MB, free: 3.289 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003315/0.4123, allocations: 199.1 kB / 416.1 MB, free: 3.078 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001945/0.4125, allocations: 103.9 kB / 416.2 MB, free: 2.977 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002349/0.4148, allocations: 1.255 MB / 417.5 MB, free: 1.703 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.595e-05/0.4149, allocations: 15.88 kB / 417.5 MB, free: 1.688 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001164/0.415, allocations: 40 kB / 417.6 MB, free: 1.648 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.415, allocations: 20 kB / 417.6 MB, free: 1.629 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002811/0.4179, allocations: 1.358 MB / 418.9 MB, free: 280 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1823/0.6001, allocations: 3.69 MB / 422.6 MB, free: 81.13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002122/0.6023, allocations: 1.04 MB / 423.7 MB, free: 81.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.222e-05/0.6024, allocations: 19.39 kB / 423.7 MB, free: 81.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.6025, allocations: 48.89 kB / 423.7 MB, free: 81.05 MB / 314.7 MB Notification: Performance of pre-optimization done (n=129): time 4.167e-06/0.6025, allocations: 0 / 423.7 MB, free: 81.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.01454/0.617, allocations: 5.874 MB / 429.6 MB, free: 79.56 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.007e-05/0.6171, allocations: 100.3 kB / 429.7 MB, free: 79.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000705/0.6178, allocations: 487.8 kB / 430.2 MB, free: 79.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.618, allocations: 61.3 kB / 430.2 MB, free: 79.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002247/0.6182, allocations: 341.3 kB / 430.6 MB, free: 78.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003217/0.6185, allocations: 488.4 kB / 431 MB, free: 78.65 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.004e-05/0.6186, allocations: 23.91 kB / 431.1 MB, free: 78.63 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.6188, allocations: 398.5 kB / 431.5 MB, free: 78.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.62, allocations: 0.5711 MB / 432 MB, free: 78.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001263/0.6213, allocations: 0.713 MB / 432.7 MB, free: 77.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.6224, allocations: 0.5123 MB / 433.3 MB, free: 77.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.6224, allocations: 0 / 433.3 MB, free: 77.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.00414/0.6265, allocations: 1.929 MB / 435.2 MB, free: 76.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.6266, allocations: 9.875 kB / 435.2 MB, free: 76.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.6266, allocations: 0 / 435.2 MB, free: 76.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001682/0.6283, allocations: 1.002 MB / 436.2 MB, free: 76.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.6293, allocations: 266.7 kB / 436.5 MB, free: 76.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00203/0.6314, allocations: 1.972 MB / 438.4 MB, free: 75.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/0.6326, allocations: 211.2 kB / 438.6 MB, free: 75.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.6328, allocations: 63.89 kB / 438.7 MB, free: 75.18 MB / 314.7 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.0005894/0.6334, allocations: 282.3 kB / 439 MB, free: 74.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002926/0.6337, allocations: 92.06 kB / 439.1 MB, free: 74.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002608/0.6339, allocations: 131.7 kB / 439.2 MB, free: 74.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.634, allocations: 15.22 kB / 439.2 MB, free: 74.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.168e-05/0.634, allocations: 0 / 439.2 MB, free: 74.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.634, allocations: 6.422 kB / 439.2 MB, free: 74.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00549/0.6395, allocations: 3.32 MB / 442.5 MB, free: 73.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.6396, allocations: 3.094 kB / 442.5 MB, free: 73.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.6407, allocations: 258.5 kB / 442.8 MB, free: 73.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001632/0.6423, allocations: 0.9491 MB / 443.7 MB, free: 73.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.6424, allocations: 55.59 kB / 443.8 MB, free: 73.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001889/0.6443, allocations: 1.919 MB / 445.7 MB, free: 71.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6444, allocations: 0 / 445.7 MB, free: 71.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004648/0.649, allocations: 2.705 MB / 448.4 MB, free: 70.63 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000622/0.6497, allocations: 303.2 kB / 448.7 MB, free: 70.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001773/0.6498, allocations: 36 kB / 448.7 MB, free: 70.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.6509, allocations: 219.8 kB / 449 MB, free: 70.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003783/0.6512, allocations: 222.1 kB / 449.2 MB, free: 70.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.6514, allocations: 64.36 kB / 449.2 MB, free: 70.02 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004244/0.6518, allocations: 375.3 kB / 449.6 MB, free: 69.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6518, allocations: 0 / 449.6 MB, free: 69.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009754/0.6528, allocations: 346.4 kB / 449.9 MB, free: 69.38 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) * 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.0003578/0.6531, allocations: 211.8 kB / 450.2 MB, free: 69.19 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002602/0.6558, allocations: 1.466 MB / 451.6 MB, free: 67.88 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.6558, allocations: 0 / 451.6 MB, free: 67.88 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.6572, allocations: 0.8304 MB / 452.5 MB, free: 67.15 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007959/0.6581, allocations: 143.8 kB / 452.6 MB, free: 67.04 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007739/0.6658, allocations: 3.774 MB / 456.4 MB, free: 63.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004621/0.6663, allocations: 1.056 MB / 457.4 MB, free: 62.78 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007793/0.6671, allocations: 150.4 kB / 457.6 MB, free: 62.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002958/0.6674, allocations: 76.56 kB / 457.6 MB, free: 62.6 MB / 314.7 MB Notification: Performance of SimCode: time 1.502e-06/0.6674, allocations: 0 / 457.6 MB, free: 62.6 MB / 314.7 MB Notification: Performance of Templates: time 0.02529/0.6927, allocations: 18.85 MB / 476.5 MB, free: 44.1 MB / 314.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)