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.00102/0.00102, allocations: 195.9 kB / 17.05 MB, free: 5.098 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.6 MB / 244.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007454/0.0007455, allocations: 105.4 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001918/0.0001918, allocations: 11.94 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.1781, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.001555/0.1797, allocations: 1.891 MB / 409.4 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007799/0.1805, allocations: 0.7121 MB / 410.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.57e-05/0.1806, allocations: 4 kB / 410.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.927e-05/0.1807, allocations: 31.72 kB / 410.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.1809, allocations: 65.61 kB / 410.2 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002068/0.1811, allocations: 91.77 kB / 410.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001833/0.1813, allocations: 270.7 kB / 410.5 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.1814, allocations: 59.83 kB / 410.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.071e-05/0.1815, allocations: 91.59 kB / 410.7 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.967e-05/0.1816, allocations: 107.5 kB / 410.8 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.465e-05/0.1816, allocations: 12 kB / 410.8 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.092e-05/0.1817, allocations: 12 kB / 410.8 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.387e-05/0.1817, allocations: 39.78 kB / 410.9 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.599e-05/0.1818, allocations: 69.58 kB / 410.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.1819, allocations: 188.5 kB / 411.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1819, allocations: 0 / 411.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1819, allocations: 0 / 411.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1819, allocations: 4 kB / 411.1 MB, free: 24.19 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.000573/0.1825, allocations: 498.8 kB / 411.6 MB, free: 23.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.1825, allocations: 8.031 kB / 411.6 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.736e-05/0.1826, allocations: 27.72 kB / 411.6 MB, free: 23.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002102/0.1828, allocations: 246.5 kB / 411.9 MB, free: 23.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.1828, allocations: 16.44 kB / 411.9 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.543e-05/0.1829, allocations: 27.95 kB / 411.9 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003301/0.1832, allocations: 230.7 kB / 412.1 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.1832, allocations: 3.906 kB / 412.2 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.1833, allocations: 15.94 kB / 412.2 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.1833, allocations: 7.938 kB / 412.2 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.1836, allocations: 143.9 kB / 412.3 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009826/0.1845, allocations: 1.06 MB / 413.4 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003541/0.1849, allocations: 230.4 kB / 413.6 MB, free: 21.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.185, allocations: 71.44 kB / 413.7 MB, free: 21.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.1851, allocations: 0 / 413.7 MB, free: 21.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.1851, allocations: 38.55 kB / 413.7 MB, free: 21.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.142e-06/0.1851, allocations: 4 kB / 413.7 MB, free: 21.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0005013/0.1856, allocations: 209.9 kB / 413.9 MB, free: 21.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.1857, allocations: 132.5 kB / 414 MB, free: 20.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.1858, allocations: 191.4 kB / 414.2 MB, free: 20.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/0.1858, allocations: 33.7 kB / 414.3 MB, free: 20.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.932e-05/0.1859, allocations: 159.8 kB / 414.4 MB, free: 20.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.665e-05/0.1859, allocations: 71.08 kB / 414.5 MB, free: 20.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.215e-06/0.1859, allocations: 8 kB / 414.5 MB, free: 20.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.99e-05/0.186, allocations: 330.8 kB / 414.8 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.1861, allocations: 55.97 kB / 414.9 MB, free: 20.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.1863, allocations: 161.6 kB / 415 MB, free: 19.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001394/0.1864, allocations: 79.94 kB / 415.1 MB, free: 19.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1864, allocations: 4 kB / 415.1 MB, free: 19.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003636/0.1868, allocations: 261 kB / 415.4 MB, free: 19.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.1868, allocations: 8.375 kB / 415.4 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.1868, allocations: 8 kB / 415.4 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1868, allocations: 4 kB / 415.4 MB, free: 19.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.1871, allocations: 67.91 kB / 415.5 MB, free: 19.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.1871, allocations: 11.89 kB / 415.5 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.1872, allocations: 35.73 kB / 415.5 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.1873, allocations: 8 kB / 415.5 MB, free: 19.41 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.152e-05/0.1873, allocations: 142.2 kB / 415.7 MB, free: 19.26 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.784e-05/0.1874, allocations: 19.81 kB / 415.7 MB, free: 19.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.906e-05/0.1875, allocations: 20.92 kB / 415.7 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1875, allocations: 4 kB / 415.7 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1875, allocations: 0 / 415.7 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.1875, allocations: 7.953 kB / 415.7 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003365/0.1878, allocations: 277.4 kB / 416 MB, free: 18.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1879, allocations: 3.938 kB / 416 MB, free: 18.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002553/0.1881, allocations: 55.91 kB / 416 MB, free: 18.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1881, allocations: 0 / 416 MB, free: 18.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.1881, allocations: 8 kB / 416 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.1882, allocations: 4 kB / 416 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.1882, allocations: 8.234 kB / 416.1 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004162/0.1886, allocations: 0.532 MB / 416.6 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.471e-05/0.1886, allocations: 96.8 kB / 416.7 MB, free: 18.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.715e-05/0.1887, allocations: 8 kB / 416.7 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.1889, allocations: 11.98 kB / 416.7 MB, free: 18.13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.795e-05/0.1889, allocations: 7.984 kB / 416.7 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.1889, allocations: 15.95 kB / 416.7 MB, free: 18.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.157e-05/0.189, allocations: 139.3 kB / 416.9 MB, free: 17.97 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.189, allocations: 4 kB / 416.9 MB, free: 17.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003823/0.1894, allocations: 55.84 kB / 416.9 MB, free: 17.91 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 (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 8.458e-05/0.1895, allocations: 105.5 kB / 417 MB, free: 17.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003015/0.1898, allocations: 160.3 kB / 417.2 MB, free: 17.65 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1898, allocations: 0 / 417.2 MB, free: 17.65 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.1899, allocations: 67.84 kB / 417.2 MB, free: 17.58 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000618/0.1906, allocations: 52.42 kB / 417.3 MB, free: 17.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.1917, allocations: 1.042 MB / 418.3 MB, free: 16.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.1918, allocations: 0.7521 MB / 419.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.409e-05/0.1919, allocations: 23.44 kB / 419.1 MB, free: 15.65 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.1919, allocations: 0 / 419.1 MB, free: 15.65 MB / 298.7 MB Notification: Performance of Templates: time 0.003214/0.1951, allocations: 2.762 MB / 421.9 MB, free: 12.89 MB / 298.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)