Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008785/0.0008786, allocations: 191.7 kB / 17.38 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 226.5 MB / 244.7 MB, free: 8.055 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007058/0.0007058, allocations: 99.62 kB / 296.7 MB, free: 6.855 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002029/0.0002029, allocations: 8 kB / 356.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.1821, allocations: 51.3 MB / 408.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.001576/0.1837, allocations: 1.966 MB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008053/0.1845, allocations: 0.714 MB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.1847, allocations: 8.781 kB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.574e-05/0.1848, allocations: 23.78 kB / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002054/0.185, allocations: 73.8 kB / 410.9 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002121/0.1852, allocations: 95.77 kB / 411 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002045/0.1854, allocations: 279.4 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.1855, allocations: 62.78 kB / 411.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.483e-05/0.1856, allocations: 96.11 kB / 411.4 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.1857, allocations: 118.4 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.1858, allocations: 12 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.044e-05/0.1858, allocations: 12 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.79e-05/0.1858, allocations: 43.83 kB / 411.6 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.911e-05/0.1859, allocations: 141.1 kB / 411.8 MB, free: 24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.1861, allocations: 184.8 kB / 411.9 MB, free: 23.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1861, allocations: 3.938 kB / 411.9 MB, free: 23.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1861, allocations: 0 / 411.9 MB, free: 23.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.1861, allocations: 7.5 kB / 411.9 MB, free: 23.81 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.0006489/0.1867, allocations: 0.5167 MB / 412.5 MB, free: 23.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.1868, allocations: 8.031 kB / 412.5 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.991e-05/0.1868, allocations: 62.67 kB / 412.5 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.904e-05/0.1869, allocations: 28.66 kB / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.1871, allocations: 249.5 kB / 412.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.1871, allocations: 20.81 kB / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.327e-05/0.1871, allocations: 20.38 kB / 412.8 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003432/0.1875, allocations: 242.7 kB / 413.1 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.1875, allocations: 7.906 kB / 413.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.1875, allocations: 8 kB / 413.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.1875, allocations: 8 kB / 413.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.1879, allocations: 163.8 kB / 413.3 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009072/0.1888, allocations: 1.028 MB / 414.3 MB, free: 21.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004425/0.1892, allocations: 306.2 kB / 414.6 MB, free: 20.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.1894, allocations: 99.41 kB / 414.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.1894, allocations: 0 / 414.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.563e-05/0.1894, allocations: 38.5 kB / 414.7 MB, free: 20.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.233e-06/0.1894, allocations: 0 / 414.7 MB, free: 20.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001401/0.1908, allocations: 1.345 MB / 416.1 MB, free: 19.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.855e-05/0.1909, allocations: 132.5 kB / 416.2 MB, free: 19.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.191, allocations: 214.7 kB / 416.4 MB, free: 18.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.191, allocations: 29.7 kB / 416.4 MB, free: 18.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.947e-05/0.1911, allocations: 152.5 kB / 416.6 MB, free: 18.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.013e-05/0.1912, allocations: 122.3 kB / 416.7 MB, free: 18.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.289e-05/0.1912, allocations: 12 kB / 416.7 MB, free: 18.53 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.45e-05/0.1912, allocations: 330.8 kB / 417 MB, free: 18.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.1914, allocations: 84.83 kB / 417.1 MB, free: 18.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.1916, allocations: 202 kB / 417.3 MB, free: 17.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.1919, allocations: 301.5 kB / 417.6 MB, free: 17.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.192, allocations: 0 / 417.6 MB, free: 17.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000472/0.1924, allocations: 345.4 kB / 418 MB, free: 17.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.1925, allocations: 12 kB / 418 MB, free: 17.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1925, allocations: 4.047 kB / 418 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.1925, allocations: 7.984 kB / 418 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.1928, allocations: 95.83 kB / 418.1 MB, free: 17.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.076e-06/0.1928, allocations: 11.94 kB / 418.1 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.193, allocations: 23.92 kB / 418.1 MB, free: 17.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.22e-05/0.193, allocations: 16 kB / 418.1 MB, free: 17.01 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 (48): * Single equations (assignments): 48 * 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.693e-05/0.1931, allocations: 153.7 kB / 418.3 MB, free: 16.85 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.595e-05/0.1932, allocations: 23.72 kB / 418.3 MB, free: 16.83 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.77e-05/0.1933, allocations: 29.39 kB / 418.3 MB, free: 16.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.1933, allocations: 4 kB / 418.3 MB, free: 16.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1933, allocations: 0 / 418.3 MB, free: 16.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.1933, allocations: 7.938 kB / 418.3 MB, free: 16.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.1943, allocations: 0.9789 MB / 419.3 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1943, allocations: 0 / 419.3 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003281/0.1947, allocations: 83.89 kB / 419.4 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.1947, allocations: 4 kB / 419.4 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.1947, allocations: 8 kB / 419.4 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1947, allocations: 8 kB / 419.4 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1947, allocations: 3.938 kB / 419.4 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005756/0.1953, allocations: 0.7083 MB / 420.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.772e-05/0.1953, allocations: 104.8 kB / 420.2 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.1954, allocations: 15.94 kB / 420.2 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.1956, allocations: 15.98 kB / 420.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.956e-05/0.1957, allocations: 27.91 kB / 420.3 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.1957, allocations: 12 kB / 420.3 MB, free: 14.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.64e-05/0.1958, allocations: 148.4 kB / 420.4 MB, free: 14.53 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1958, allocations: 0 / 420.4 MB, free: 14.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000405/0.1962, allocations: 60 kB / 420.5 MB, free: 14.47 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * 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 (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 Backend phase and start with SimCode phase: time 0.0006985/0.1969, allocations: 1.257 MB / 421.8 MB, free: 13.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000374/0.1973, allocations: 231.7 kB / 422 MB, free: 12.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1973, allocations: 0 / 422 MB, free: 12.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000184/0.1975, allocations: 132.6 kB / 422.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007009/0.1982, allocations: 59.03 kB / 422.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002345/0.2006, allocations: 2.121 MB / 424.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001485/0.2007, allocations: 0.753 MB / 425.1 MB, free: 9.727 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.2009, allocations: 87.41 kB / 425.1 MB, free: 9.641 MB / 298.7 MB Notification: Performance of SimCode: time 2.7e-07/0.2009, allocations: 0 / 425.1 MB, free: 9.641 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.533/2.734, allocations: 3.878 MB / 429 MB, free: 5.766 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_CompareBrakingForce_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_CompareBrakingForce.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1)