Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 197.4 kB / 18.1 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 226.5 MB / 245.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008315/0.0008314, allocations: 98.06 kB / 297.5 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000237/0.0002372, allocations: 7.984 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2197, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0916/0.3114, allocations: 79.89 MB / 489.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.3116, allocations: 67.97 kB / 489.3 MB, free: 11.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01433/0.326, allocations: 5.401 MB / 494.7 MB, free: 6.168 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.326, allocations: 4 kB / 494.7 MB, free: 6.164 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.007e-05/0.326, allocations: 7.938 kB / 494.7 MB, free: 6.156 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.000749/0.3268, allocations: 499 kB / 495.2 MB, free: 5.617 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.3268, allocations: 8.031 kB / 495.2 MB, free: 5.609 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.891e-05/0.3269, allocations: 24.66 kB / 495.3 MB, free: 5.586 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.3273, allocations: 247.8 kB / 495.5 MB, free: 5.305 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.3273, allocations: 16.81 kB / 495.5 MB, free: 5.289 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.014e-05/0.3274, allocations: 36.3 kB / 495.6 MB, free: 5.254 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004231/0.3278, allocations: 239.2 kB / 495.8 MB, free: 5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.585e-05/0.3278, allocations: 4.094 kB / 495.8 MB, free: 4.996 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.3279, allocations: 15.94 kB / 495.8 MB, free: 4.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.3279, allocations: 4 kB / 495.8 MB, free: 4.977 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003354/0.3282, allocations: 147.8 kB / 496 MB, free: 4.832 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.3297, allocations: 1.061 MB / 497 MB, free: 3.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004377/0.3302, allocations: 218.4 kB / 497.2 MB, free: 3.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.3303, allocations: 75.48 kB / 497.3 MB, free: 3.344 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.3304, allocations: 0 / 497.3 MB, free: 3.344 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.3304, allocations: 42.5 kB / 497.3 MB, free: 3.293 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 1.222e-06/0.3304, allocations: 0 / 497.3 MB, free: 3.293 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.0005639/0.331, allocations: 213.2 kB / 497.6 MB, free: 3.078 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.331, allocations: 132.5 kB / 497.7 MB, free: 2.918 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.3312, allocations: 198.8 kB / 497.9 MB, free: 2.707 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.3312, allocations: 33.7 kB / 497.9 MB, free: 2.668 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.156e-05/0.3313, allocations: 163.8 kB / 498.1 MB, free: 2.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.917e-05/0.3314, allocations: 63.09 kB / 498.1 MB, free: 2.438 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-06/0.3314, allocations: 8 kB / 498.1 MB, free: 2.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.3315, allocations: 326.8 kB / 498.5 MB, free: 2.102 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.3317, allocations: 59.95 kB / 498.5 MB, free: 2.043 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.3319, allocations: 165.6 kB / 498.7 MB, free: 1.832 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003555/0.3323, allocations: 233.5 kB / 498.9 MB, free: 1.555 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3323, allocations: 0 / 498.9 MB, free: 1.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004716/0.3327, allocations: 261.2 kB / 499.2 MB, free: 1.293 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.3328, allocations: 8 kB / 499.2 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3328, allocations: 7.938 kB / 499.2 MB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.3328, allocations: 7.938 kB / 499.2 MB, free: 1.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.3331, allocations: 71.89 kB / 499.3 MB, free: 1.199 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.3331, allocations: 4.375 kB / 499.3 MB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.3333, allocations: 35.69 kB / 499.3 MB, free: 1.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.3333, allocations: 12 kB / 499.3 MB, free: 1.148 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001318/0.3334, allocations: 133.8 kB / 499.4 MB, free: 1.008 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.932e-05/0.3335, allocations: 19.8 kB / 499.5 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.953e-05/0.3336, allocations: 24.88 kB / 499.5 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.024e-06/0.3336, allocations: 4 kB / 499.5 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.3336, allocations: 3.938 kB / 499.5 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.3336, allocations: 7.984 kB / 499.5 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004314/0.3341, allocations: 273.4 kB / 499.8 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.3341, allocations: 0 / 499.8 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000266/0.3343, allocations: 59.91 kB / 499.8 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3344, allocations: 0 / 499.8 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.3344, allocations: 7.938 kB / 499.8 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3344, allocations: 3.984 kB / 499.8 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/0.3344, allocations: 4 kB / 499.8 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000556/0.335, allocations: 0.5321 MB / 0.4886 GB, free: 12 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.506e-05/0.3351, allocations: 92.91 kB / 0.4887 GB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.3351, allocations: 11.94 kB / 0.4887 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.3353, allocations: 12 kB / 0.4888 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.967e-05/0.3354, allocations: 11.98 kB / 0.4888 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.3354, allocations: 7.984 kB / 0.4888 GB, free: 15.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001129/0.3355, allocations: 140.5 kB / 0.4889 GB, free: 15.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3355, allocations: 0 / 0.4889 GB, free: 15.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004271/0.336, allocations: 59.84 kB / 0.489 GB, free: 15.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001535/0.3361, allocations: 118.1 kB / 0.4891 GB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003592/0.3365, allocations: 157 kB / 0.4892 GB, free: 15.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3365, allocations: 3.938 kB / 0.4892 GB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001414/0.3366, allocations: 68.66 kB / 0.4893 GB, free: 15.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006795/0.3373, allocations: 69.38 kB / 0.4894 GB, free: 15.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.3387, allocations: 1.012 MB / 0.4903 GB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.339, allocations: 0.7404 MB / 0.4911 GB, free: 13.44 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.3392, allocations: 34.27 kB / 0.4911 GB, free: 13.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.125e-05/0.3392, allocations: 19.44 kB / 0.4911 GB, free: 13.39 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3392, allocations: 0 / 0.4911 GB, free: 13.39 MB / 378.7 MB Notification: Performance of Templates: time 0.004811/0.344, allocations: 2.028 MB / 0.4931 GB, free: 11.39 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)