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.001377/0.001377, allocations: 196.3 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.557/1.557, allocations: 226.5 MB / 244.7 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.0007712/0.0007713, allocations: 87.89 kB / 296.8 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00024/0.0002401, allocations: 4 kB / 356.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2077, allocations: 51.31 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.001667/0.2094, allocations: 1.899 MB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009304/0.2103, allocations: 0.7093 MB / 410.7 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.2105, allocations: 4 kB / 410.7 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001011/0.2106, allocations: 23.78 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002133/0.2108, allocations: 72.88 kB / 410.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000221/0.211, allocations: 84.47 kB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.2112, allocations: 279.2 kB / 411.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.2114, allocations: 49.55 kB / 411.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.73e-05/0.2115, allocations: 100.4 kB / 411.3 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.2116, allocations: 103.5 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.2116, allocations: 19.94 kB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.966e-05/0.2117, allocations: 12 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.88e-05/0.2117, allocations: 43.77 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.06e-05/0.2118, allocations: 133.2 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001313/0.2119, allocations: 180.5 kB / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2119, allocations: 0 / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2119, allocations: 0 / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.2119, allocations: 0 / 411.7 MB, free: 24.02 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.0005514/0.2125, allocations: 0.4912 MB / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.2125, allocations: 12.03 kB / 412.2 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.652e-05/0.2126, allocations: 24.66 kB / 412.3 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000199/0.2128, allocations: 251.8 kB / 412.5 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.2128, allocations: 12.81 kB / 412.5 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.689e-05/0.2129, allocations: 24.38 kB / 412.5 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003321/0.2132, allocations: 242.9 kB / 412.8 MB, free: 22.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.2132, allocations: 7.906 kB / 412.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.2133, allocations: 8 kB / 412.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-06/0.2133, allocations: 11.94 kB / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.2136, allocations: 151.8 kB / 413 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.2146, allocations: 1.06 MB / 414 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003494/0.2149, allocations: 226.4 kB / 414.2 MB, free: 21.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.2151, allocations: 67.45 kB / 414.3 MB, free: 21.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.2151, allocations: 4 kB / 414.3 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/0.2151, allocations: 38.56 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.903e-06/0.2151, allocations: 4 kB / 414.4 MB, free: 21.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004802/0.2156, allocations: 209.8 kB / 414.6 MB, free: 20.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.2156, allocations: 136.5 kB / 414.7 MB, free: 20.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.2158, allocations: 195 kB / 414.9 MB, free: 20.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.2158, allocations: 25.7 kB / 414.9 MB, free: 20.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.067e-05/0.2159, allocations: 167.8 kB / 415.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.629e-05/0.2159, allocations: 67.08 kB / 415.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.041e-05/0.2159, allocations: 8 kB / 415.1 MB, free: 20.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.992e-05/0.216, allocations: 326.8 kB / 415.5 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.2161, allocations: 59.97 kB / 415.5 MB, free: 19.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.2163, allocations: 157.7 kB / 415.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002732/0.2165, allocations: 237.5 kB / 415.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2166, allocations: 4 kB / 415.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003726/0.2169, allocations: 265.2 kB / 416.2 MB, free: 19.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.217, allocations: 7.938 kB / 416.2 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.217, allocations: 4 kB / 416.2 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.217, allocations: 8 kB / 416.2 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002352/0.2172, allocations: 68 kB / 416.3 MB, free: 19.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.2172, allocations: 15.86 kB / 416.3 MB, free: 19.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.2174, allocations: 27.78 kB / 416.3 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.2174, allocations: 16.17 kB / 416.3 MB, free: 19.02 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.578e-05/0.2175, allocations: 141.8 kB / 416.5 MB, free: 18.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.499e-05/0.2176, allocations: 19.75 kB / 416.5 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.321e-05/0.2176, allocations: 20.92 kB / 416.5 MB, free: 18.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.2177, allocations: 4 kB / 416.5 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.2177, allocations: 0 / 416.5 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.2177, allocations: 0 / 416.5 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003469/0.218, allocations: 281.4 kB / 416.8 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.218, allocations: 3.938 kB / 416.8 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.2183, allocations: 55.91 kB / 416.8 MB, free: 18.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.2183, allocations: 7.938 kB / 416.8 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.2183, allocations: 4 kB / 416.8 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2183, allocations: 4 kB / 416.8 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2183, allocations: 0 / 416.8 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004308/0.2188, allocations: 0.528 MB / 417.4 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.714e-05/0.2188, allocations: 104.7 kB / 417.5 MB, free: 17.76 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.742e-05/0.2189, allocations: 4.234 kB / 417.5 MB, free: 17.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.2191, allocations: 12 kB / 417.5 MB, free: 17.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.28e-05/0.2191, allocations: 15.98 kB / 417.5 MB, free: 17.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.2191, allocations: 8 kB / 417.5 MB, free: 17.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.614e-05/0.2192, allocations: 136.5 kB / 417.6 MB, free: 17.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2192, allocations: 0 / 417.6 MB, free: 17.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003886/0.2196, allocations: 59.84 kB / 417.7 MB, free: 17.53 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 9.304e-05/0.2197, allocations: 106.2 kB / 417.8 MB, free: 17.42 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003043/0.22, allocations: 159.8 kB / 418 MB, free: 17.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.22, allocations: 0 / 418 MB, free: 17.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.2202, allocations: 67.84 kB / 418 MB, free: 17.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006313/0.2208, allocations: 60.64 kB / 418.1 MB, free: 17.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.222, allocations: 1.03 MB / 419.1 MB, free: 16.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001588/0.2222, allocations: 0.7521 MB / 419.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.585e-05/0.2222, allocations: 19.44 kB / 419.9 MB, free: 15.27 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2222, allocations: 0 / 419.9 MB, free: 15.27 MB / 298.7 MB Notification: Performance of Templates: time 0.00341/0.2256, allocations: 2.763 MB / 422.7 MB, free: 12.52 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)