Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001972/0.001973, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 226.5 MB / 245.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000816/0.0008161, allocations: 100.2 kB / 297.4 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002557/0.0002558, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.2039, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1013/0.3053, allocations: 79.9 MB / 488.6 MB, free: 11.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.3056, allocations: 67.97 kB / 488.6 MB, free: 11.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02083/0.3265, allocations: 5.396 MB / 494 MB, free: 6.254 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.692e-06/0.3265, allocations: 3.984 kB / 494 MB, free: 6.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.893e-05/0.3266, allocations: 15.98 kB / 494 MB, free: 6.234 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.001009/0.3276, allocations: 491 kB / 494.5 MB, free: 5.703 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.3276, allocations: 8.031 kB / 494.5 MB, free: 5.695 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.3278, allocations: 28.64 kB / 494.5 MB, free: 5.668 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004279/0.3282, allocations: 255.7 kB / 494.8 MB, free: 5.379 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.421e-05/0.3283, allocations: 16.81 kB / 494.8 MB, free: 5.363 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.005e-05/0.3283, allocations: 24.38 kB / 494.8 MB, free: 5.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006279/0.329, allocations: 231.2 kB / 495.1 MB, free: 5.094 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.166e-05/0.329, allocations: 8.094 kB / 495.1 MB, free: 5.086 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.965e-05/0.3291, allocations: 23.86 kB / 495.1 MB, free: 5.062 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.3291, allocations: 8 kB / 495.1 MB, free: 5.055 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006205/0.3297, allocations: 147.8 kB / 495.2 MB, free: 4.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002274/0.332, allocations: 1.057 MB / 496.3 MB, free: 3.762 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007531/0.3328, allocations: 214.4 kB / 496.5 MB, free: 3.516 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/0.3331, allocations: 79.42 kB / 496.6 MB, free: 3.426 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.3331, allocations: 0 / 496.6 MB, free: 3.426 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/0.3332, allocations: 38.56 kB / 496.6 MB, free: 3.379 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 2.335e-06/0.3332, allocations: 0 / 496.6 MB, free: 3.379 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.001003/0.3342, allocations: 205.9 kB / 496.8 MB, free: 3.172 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.906e-05/0.3343, allocations: 136.5 kB / 497 MB, free: 3.008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002853/0.3346, allocations: 194.9 kB / 497.2 MB, free: 2.801 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.3346, allocations: 25.7 kB / 497.2 MB, free: 2.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.3348, allocations: 171.8 kB / 497.3 MB, free: 2.594 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.497e-05/0.3349, allocations: 63.11 kB / 497.4 MB, free: 2.531 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.648e-05/0.3349, allocations: 8 kB / 497.4 MB, free: 2.523 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.3351, allocations: 330.8 kB / 497.7 MB, free: 2.191 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.3354, allocations: 59.95 kB / 497.8 MB, free: 2.133 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003713/0.3358, allocations: 165.6 kB / 498 MB, free: 1.922 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006744/0.3365, allocations: 229.5 kB / 498.2 MB, free: 1.648 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.3365, allocations: 0 / 498.2 MB, free: 1.648 MB / 362.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008489/0.3374, allocations: 269 kB / 498.4 MB, free: 1.379 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.3374, allocations: 8 kB / 498.5 MB, free: 1.371 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.3374, allocations: 7.938 kB / 498.5 MB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.712e-05/0.3375, allocations: 7.938 kB / 498.5 MB, free: 1.355 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004719/0.338, allocations: 68.28 kB / 498.5 MB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.662e-05/0.338, allocations: 12 kB / 498.5 MB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.3383, allocations: 31.77 kB / 498.6 MB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.424e-05/0.3383, allocations: 12 kB / 498.6 MB, free: 1.234 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.0001934/0.3386, allocations: 141.7 kB / 498.7 MB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.3387, allocations: 19.8 kB / 498.7 MB, free: 1.066 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.281e-05/0.3388, allocations: 24.86 kB / 498.8 MB, free: 1.047 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.3388, allocations: 4 kB / 498.8 MB, free: 1.043 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.3389, allocations: 0 / 498.8 MB, free: 1.043 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.3389, allocations: 8 kB / 498.8 MB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007614/0.3396, allocations: 281.3 kB / 499.1 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3397, allocations: 0 / 499.1 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005188/0.3402, allocations: 51.97 kB / 499.1 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.3402, allocations: 0 / 499.1 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-05/0.3403, allocations: 11.94 kB / 499.1 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.3403, allocations: 0 / 499.1 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.3403, allocations: 0 / 499.1 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.3413, allocations: 0.5331 MB / 499.7 MB, free: 100 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.3415, allocations: 93.09 kB / 499.7 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.69e-05/0.3415, allocations: 8.188 kB / 499.8 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004244/0.342, allocations: 19.98 kB / 499.8 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.637e-05/0.3421, allocations: 7.984 kB / 499.8 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.3421, allocations: 8 kB / 499.8 MB, free: 15.94 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001908/0.3423, allocations: 136.5 kB / 499.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3423, allocations: 4 kB / 499.9 MB, free: 15.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008196/0.3432, allocations: 59.84 kB / 500 MB, free: 15.75 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.000195/0.3434, allocations: 118 kB / 0.4884 GB, free: 15.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005888/0.344, allocations: 155.8 kB / 0.4885 GB, free: 15.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.344, allocations: 0.75 kB / 0.4885 GB, free: 15.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002646/0.3443, allocations: 67.91 kB / 0.4886 GB, free: 15.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.3454, allocations: 65.64 kB / 0.4887 GB, free: 15.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002632/0.3481, allocations: 1.042 MB / 0.4897 GB, free: 14.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004554/0.3486, allocations: 0.7443 MB / 0.4904 GB, free: 13.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.581e-05/0.3487, allocations: 27.44 kB / 0.4904 GB, free: 13.46 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.3487, allocations: 0 / 0.4904 GB, free: 13.46 MB / 378.7 MB Notification: Performance of Templates: time 0.007641/0.3563, allocations: 2.772 MB / 0.4931 GB, free: 10.7 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque --alarm=480 > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)