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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009344/0.0009343, allocations: 191.8 kB / 17.37 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 226.5 MB / 244.7 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007205/0.0007205, allocations: 91.61 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002117/0.0002118, allocations: 11.98 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.1879, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.001611/0.1896, allocations: 1.9 MB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008966/0.1905, allocations: 0.7133 MB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.913e-05/0.1906, allocations: 4 kB / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.331e-05/0.1907, allocations: 27.78 kB / 410.8 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.1909, allocations: 75.44 kB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002178/0.1911, allocations: 89.41 kB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002077/0.1913, allocations: 274.7 kB / 411.2 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.1915, allocations: 52.7 kB / 411.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.08e-05/0.1915, allocations: 95.58 kB / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.1917, allocations: 106.5 kB / 411.4 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/0.1917, allocations: 12 kB / 411.5 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.955e-05/0.1917, allocations: 12 kB / 411.5 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.755e-05/0.1918, allocations: 47.77 kB / 411.5 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.304e-05/0.1918, allocations: 137.2 kB / 411.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.192, allocations: 172.8 kB / 411.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.192, allocations: 0 / 411.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.192, allocations: 0 / 411.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.192, allocations: 4 kB / 411.8 MB, free: 23.99 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.000568/0.1926, allocations: 0.4951 MB / 412.3 MB, free: 23.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.1926, allocations: 8.031 kB / 412.3 MB, free: 23.44 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.218e-05/0.1927, allocations: 54.73 kB / 412.4 MB, free: 23.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.963e-05/0.1927, allocations: 28.64 kB / 412.4 MB, free: 23.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002077/0.1929, allocations: 247.9 kB / 412.6 MB, free: 23.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.193, allocations: 16.81 kB / 412.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.193, allocations: 24.38 kB / 412.7 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003506/0.1934, allocations: 242.7 kB / 412.9 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.1934, allocations: 3.906 kB / 412.9 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.1934, allocations: 12 kB / 412.9 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.1934, allocations: 8 kB / 412.9 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002851/0.1937, allocations: 151.8 kB / 413.1 MB, free: 22.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.1948, allocations: 1.06 MB / 414.2 MB, free: 21.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003595/0.1951, allocations: 226.3 kB / 414.4 MB, free: 21.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.1953, allocations: 75.48 kB / 414.5 MB, free: 21.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.1953, allocations: 0 / 414.5 MB, free: 21.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.456e-05/0.1953, allocations: 46.44 kB / 414.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 9.41e-07/0.1953, allocations: 0 / 414.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.000499/0.1958, allocations: 205.3 kB / 414.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.1959, allocations: 136.5 kB / 414.8 MB, free: 20.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.196, allocations: 191 kB / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/0.196, allocations: 29.7 kB / 415 MB, free: 20.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.077e-05/0.1961, allocations: 171.8 kB / 415.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.1962, allocations: 71.02 kB / 415.3 MB, free: 20.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.127e-06/0.1962, allocations: 4 kB / 415.3 MB, free: 20.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.844e-05/0.1962, allocations: 330.8 kB / 415.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.1963, allocations: 51.97 kB / 415.7 MB, free: 19.81 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.1965, allocations: 161.7 kB / 415.8 MB, free: 19.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.1968, allocations: 241.5 kB / 416.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1968, allocations: 0 / 416.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003714/0.1972, allocations: 261 kB / 416.3 MB, free: 19.06 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.1972, allocations: 11.94 kB / 416.3 MB, free: 19.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1972, allocations: 4 kB / 416.3 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1972, allocations: 4 kB / 416.3 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/0.1975, allocations: 72.28 kB / 416.4 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.1975, allocations: 15.92 kB / 416.4 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.1976, allocations: 23.78 kB / 416.4 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.1976, allocations: 15.98 kB / 416.5 MB, free: 18.91 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.409e-05/0.1977, allocations: 137.8 kB / 416.6 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.752e-05/0.1978, allocations: 19.75 kB / 416.6 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.968e-05/0.1979, allocations: 20.92 kB / 416.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.1979, allocations: 4 kB / 416.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1979, allocations: 7.938 kB / 416.6 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1979, allocations: 4.25 kB / 416.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003509/0.1982, allocations: 277.4 kB / 416.9 MB, free: 18.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1983, allocations: 4 kB / 416.9 MB, free: 18.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002634/0.1985, allocations: 55.91 kB / 417 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1985, allocations: 3.938 kB / 417 MB, free: 18.33 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.1986, allocations: 8 kB / 417 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1986, allocations: 0 / 417 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.1986, allocations: 4 kB / 417 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004308/0.199, allocations: 0.5299 MB / 417.5 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.461e-05/0.199, allocations: 100.8 kB / 417.6 MB, free: 17.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.835e-05/0.1991, allocations: 11.98 kB / 417.6 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.1993, allocations: 4 kB / 417.6 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.544e-05/0.1993, allocations: 7.984 kB / 417.6 MB, free: 17.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.1994, allocations: 12 kB / 417.7 MB, free: 17.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.241e-05/0.1994, allocations: 136.5 kB / 417.8 MB, free: 17.49 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1994, allocations: 0 / 417.8 MB, free: 17.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003762/0.1998, allocations: 59.84 kB / 417.8 MB, free: 17.43 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 0.000592/0.2004, allocations: 1.077 MB / 418.9 MB, free: 16.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003043/0.2007, allocations: 156.4 kB / 419.1 MB, free: 16.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2007, allocations: 0 / 419.1 MB, free: 16.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.2009, allocations: 83.89 kB / 419.2 MB, free: 16.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000631/0.2015, allocations: 40.81 kB / 419.2 MB, free: 16.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.2036, allocations: 1.852 MB / 421 MB, free: 14.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001455/0.2038, allocations: 0.752 MB / 421.8 MB, free: 13.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.231e-05/0.2039, allocations: 67.41 kB / 421.9 MB, free: 13.25 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.2039, allocations: 0 / 421.9 MB, free: 13.25 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.559/2.763, allocations: 3.403 MB / 425.3 MB, free: 9.848 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)