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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 64.12 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2877, allocations: 50.54 MB / 408.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.005302/0.2931, allocations: 2.276 MB / 411 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002326/0.2954, allocations: 0.7634 MB / 411.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002831/0.2957, allocations: 7.938 kB / 411.8 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002375/0.296, allocations: 31.66 kB / 411.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004758/0.2965, allocations: 79.31 kB / 411.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005997/0.2971, allocations: 107.8 kB / 412 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006282/0.2978, allocations: 298.7 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002389/0.298, allocations: 60.38 kB / 412.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002702/0.2983, allocations: 119.5 kB / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003222/0.2986, allocations: 119.5 kB / 412.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.613e-05/0.2987, allocations: 20 kB / 412.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.723e-05/0.2988, allocations: 20 kB / 412.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.834e-05/0.2989, allocations: 47.78 kB / 412.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000207/0.2991, allocations: 131.4 kB / 412.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004365/0.2996, allocations: 264.7 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2996, allocations: 0 / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2996, allocations: 0 / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.2996, allocations: 3.938 kB / 413.1 MB, free: 13.32 MB / 334.1 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.001223/0.3009, allocations: 0.5262 MB / 413.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.3009, allocations: 12.03 kB / 413.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.233e-05/0.301, allocations: 54.72 kB / 413.7 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.036e-05/0.3011, allocations: 24.66 kB / 413.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005784/0.3017, allocations: 259.8 kB / 413.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.3018, allocations: 16.81 kB / 414 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.319e-05/0.3018, allocations: 24.38 kB / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006957/0.3026, allocations: 230.8 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.521e-05/0.3026, allocations: 11.91 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.3027, allocations: 8 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.3027, allocations: 11.98 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006083/0.3033, allocations: 139.8 kB / 414.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002261/0.3056, allocations: 1.06 MB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007956/0.3064, allocations: 218.3 kB / 415.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002469/0.3067, allocations: 63.48 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.3067, allocations: 4 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.622e-05/0.3068, allocations: 46.44 kB / 415.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 3.216e-06/0.3068, allocations: 0 / 415.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.001015/0.3078, allocations: 189.4 kB / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.612e-05/0.3079, allocations: 144.4 kB / 416.1 MB, free: 10 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.3082, allocations: 179.5 kB / 416.3 MB, free: 9.816 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.3083, allocations: 33.7 kB / 416.3 MB, free: 9.777 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.3084, allocations: 163.8 kB / 416.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.222e-05/0.3085, allocations: 63.11 kB / 416.5 MB, free: 9.551 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.3087, allocations: 49.61 kB / 416.6 MB, free: 9.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3088, allocations: 334.8 kB / 416.9 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.3091, allocations: 55.97 kB / 416.9 MB, free: 9.105 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003796/0.3095, allocations: 165.7 kB / 417.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006633/0.3102, allocations: 229.5 kB / 417.3 MB, free: 8.621 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.898e-06/0.3102, allocations: 0 / 417.3 MB, free: 8.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008893/0.3111, allocations: 265 kB / 417.6 MB, free: 8.355 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/0.3112, allocations: 8.312 kB / 417.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.3112, allocations: 8 kB / 417.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.3112, allocations: 4 kB / 417.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004767/0.3117, allocations: 71.84 kB / 417.7 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.51e-05/0.3118, allocations: 4 kB / 417.7 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002839/0.312, allocations: 31.67 kB / 417.7 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.838e-05/0.3121, allocations: 16 kB / 417.7 MB, free: 8.215 MB / 334.1 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 0.0002006/0.3123, allocations: 137.7 kB / 417.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.3125, allocations: 19.75 kB / 417.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.091e-05/0.3126, allocations: 28.92 kB / 417.9 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.3126, allocations: 7.938 kB / 417.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.3126, allocations: 0 / 417.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.3126, allocations: 0.75 kB / 417.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008083/0.3135, allocations: 277.5 kB / 418.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3135, allocations: 0 / 418.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005185/0.314, allocations: 55.91 kB / 418.2 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.068e-05/0.314, allocations: 3.938 kB / 418.3 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.3141, allocations: 4 kB / 418.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.3141, allocations: 4 kB / 418.3 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3141, allocations: 0 / 418.3 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009664/0.3151, allocations: 0.5244 MB / 418.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.3152, allocations: 96.8 kB / 418.9 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.455e-05/0.3153, allocations: 8 kB / 418.9 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004223/0.3157, allocations: 15.98 kB / 418.9 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.671e-05/0.3158, allocations: 12.23 kB / 418.9 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.3158, allocations: 4 kB / 418.9 MB, free: 6.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002102/0.3161, allocations: 144.2 kB / 419.1 MB, free: 6.789 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3161, allocations: 0 / 419.1 MB, free: 6.789 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000855/0.3169, allocations: 63.75 kB / 419.1 MB, free: 6.727 MB / 334.1 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 0.001431/0.3184, allocations: 1.071 MB / 420.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006465/0.319, allocations: 156.2 kB / 420.3 MB, free: 5.477 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3191, allocations: 0 / 420.3 MB, free: 5.477 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002764/0.3193, allocations: 67.84 kB / 420.4 MB, free: 5.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007225/0.3201, allocations: 55.86 kB / 420.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003941/0.324, allocations: 3.073 MB / 423.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.3244, allocations: 0.744 MB / 424.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.3245, allocations: 30.27 kB / 424.3 MB, free: 1.297 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.3246, allocations: 63.42 kB / 424.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3246, allocations: 0 / 424.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06695/0.3916, allocations: 4.764 MB / 429.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.798/8.19, allocations: 3.375 kB / 429.1 MB, free: 12.6 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)