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.001127/0.001128, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009878/0.0009878, allocations: 108.5 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009054/0.0009055, allocations: 51.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.1916, allocations: 50.45 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002516/0.1942, allocations: 2.321 MB / 409.4 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000873/0.1951, allocations: 0.7554 MB / 410.1 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.882e-05/0.1952, allocations: 7.938 kB / 410.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.1953, allocations: 27.78 kB / 410.2 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.1955, allocations: 67.52 kB / 410.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002065/0.1957, allocations: 95.84 kB / 410.3 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001906/0.1959, allocations: 290.6 kB / 410.6 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.196, allocations: 56.69 kB / 410.7 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.423e-05/0.1961, allocations: 99.58 kB / 410.8 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.1962, allocations: 119.4 kB / 410.9 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.432e-05/0.1963, allocations: 16 kB / 410.9 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.248e-05/0.1963, allocations: 12 kB / 410.9 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.119e-05/0.1963, allocations: 43.83 kB / 410.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.645e-05/0.1964, allocations: 115.3 kB / 411.1 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001561/0.1966, allocations: 252.6 kB / 411.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.1966, allocations: 4 kB / 411.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1966, allocations: 0 / 411.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.1966, allocations: 0 / 411.3 MB, free: 23.55 MB / 298.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.0005704/0.1972, allocations: 0.5184 MB / 411.8 MB, free: 22.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/0.1972, allocations: 8.031 kB / 411.8 MB, free: 22.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.439e-05/0.1973, allocations: 24.66 kB / 411.9 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.1975, allocations: 255.8 kB / 412.1 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.1975, allocations: 20.81 kB / 412.1 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.581e-05/0.1975, allocations: 24.28 kB / 412.2 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003243/0.1979, allocations: 243 kB / 412.4 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.1979, allocations: 3.984 kB / 412.4 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.1979, allocations: 12 kB / 412.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1979, allocations: 4 kB / 412.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002725/0.1982, allocations: 143.8 kB / 412.5 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009943/0.1992, allocations: 1.057 MB / 413.6 MB, free: 21.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003488/0.1996, allocations: 210.4 kB / 413.8 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.1997, allocations: 67.48 kB / 413.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.1997, allocations: 15.86 kB / 413.9 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.1998, allocations: 38.56 kB / 413.9 MB, free: 20.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.222e-06/0.1998, allocations: 0 / 413.9 MB, free: 20.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004732/0.2002, allocations: 201.9 kB / 414.1 MB, free: 20.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.2003, allocations: 140.5 kB / 414.3 MB, free: 20.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.2004, allocations: 187.2 kB / 414.4 MB, free: 20.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.2004, allocations: 29.7 kB / 414.5 MB, free: 20.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.13e-05/0.2005, allocations: 163.8 kB / 414.6 MB, free: 19.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.287e-05/0.2005, allocations: 63.11 kB / 414.7 MB, free: 19.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.439e-05/0.2006, allocations: 49.61 kB / 414.7 MB, free: 19.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.253e-05/0.2006, allocations: 330.8 kB / 415.1 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.2008, allocations: 63.95 kB / 415.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/0.2009, allocations: 157.6 kB / 415.3 MB, free: 19.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002597/0.2012, allocations: 233.5 kB / 415.5 MB, free: 18.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.2012, allocations: 4 kB / 415.5 MB, free: 18.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003687/0.2015, allocations: 257.1 kB / 415.8 MB, free: 18.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.2016, allocations: 10.28 kB / 415.8 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.2016, allocations: 4 kB / 415.8 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.2016, allocations: 4 kB / 415.8 MB, free: 18.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002268/0.2018, allocations: 68.28 kB / 415.9 MB, free: 18.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.2019, allocations: 8 kB / 415.9 MB, free: 18.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.202, allocations: 35.61 kB / 415.9 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.627e-05/0.202, allocations: 16 kB / 415.9 MB, free: 18.51 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.486e-05/0.2021, allocations: 139.2 kB / 416 MB, free: 18.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.096e-05/0.2022, allocations: 19.75 kB / 416.1 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.082e-05/0.2022, allocations: 24.92 kB / 416.1 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.2022, allocations: 4 kB / 416.1 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2022, allocations: 3.938 kB / 416.1 MB, free: 18.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.2022, allocations: 4.25 kB / 416.1 MB, free: 18.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003328/0.2026, allocations: 277.4 kB / 416.4 MB, free: 17.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2026, allocations: 4 kB / 416.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002466/0.2028, allocations: 51.97 kB / 416.4 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.2029, allocations: 7.938 kB / 416.4 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.2029, allocations: 0 / 416.4 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2029, allocations: 4 kB / 416.4 MB, free: 17.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2029, allocations: 0 / 416.4 MB, free: 17.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/0.2053, allocations: 2.103 MB / 418.5 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.931e-05/0.2054, allocations: 88.92 kB / 418.6 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.2054, allocations: 7.984 kB / 418.6 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001987/0.2056, allocations: 8 kB / 418.6 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.367e-05/0.2056, allocations: 11.97 kB / 418.7 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.2057, allocations: 15.98 kB / 418.7 MB, free: 15.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.492e-05/0.2057, allocations: 140.4 kB / 418.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2058, allocations: 0 / 418.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004841/0.2062, allocations: 87.84 kB / 418.9 MB, free: 15.31 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.18e-05/0.2063, allocations: 107.2 kB / 419 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000285/0.2066, allocations: 147.8 kB / 419.1 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2066, allocations: 0.75 kB / 419.1 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.2068, allocations: 71.84 kB / 419.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000665/0.2074, allocations: 50.86 kB / 419.3 MB, free: 14.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.2086, allocations: 1.069 MB / 420.3 MB, free: 13.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001549/0.2087, allocations: 0.7521 MB / 421.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000102/0.2088, allocations: 30.28 kB / 421.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.698e-05/0.2089, allocations: 23.44 kB / 421.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2089, allocations: 0 / 421.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of Templates: time 0.004498/0.2134, allocations: 2.654 MB / 423.8 MB, free: 10.35 MB / 298.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)