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/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_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/Complex trunk/package.mo): time 0.001044/0.001044, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 227.2 MB / 245 MB, free: 7.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009231/0.000923, allocations: 105.4 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002246/0.0002247, allocations: 4 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2339, allocations: 51.49 MB / 409.5 MB, free: 26.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08856/0.3225, allocations: 79.95 MB / 489.4 MB, free: 10.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001927/0.3227, allocations: 75.95 kB / 489.5 MB, free: 10.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01395/0.3367, allocations: 5.402 MB / 494.9 MB, free: 5.078 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3367, allocations: 0 / 494.9 MB, free: 5.078 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.3367, allocations: 4 kB / 494.9 MB, free: 5.074 MB / 362.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.0006692/0.3374, allocations: 0.5027 MB / 495.4 MB, free: 4.523 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.3375, allocations: 8.031 kB / 495.4 MB, free: 4.516 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.054e-05/0.3375, allocations: 54.55 kB / 495.5 MB, free: 4.453 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.698e-05/0.3376, allocations: 27.72 kB / 495.5 MB, free: 4.426 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002711/0.3379, allocations: 254.5 kB / 495.8 MB, free: 4.137 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.3379, allocations: 20.38 kB / 495.8 MB, free: 4.117 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.303e-05/0.3379, allocations: 27.89 kB / 495.8 MB, free: 4.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000387/0.3383, allocations: 230.7 kB / 496 MB, free: 3.844 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.3384, allocations: 0 / 496 MB, free: 3.844 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.3384, allocations: 12 kB / 496 MB, free: 3.832 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3384, allocations: 4 kB / 496 MB, free: 3.828 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003239/0.3387, allocations: 159.3 kB / 496.2 MB, free: 3.676 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001287/0.34, allocations: 1.064 MB / 497.3 MB, free: 2.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004205/0.3405, allocations: 214.7 kB / 497.5 MB, free: 2.273 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.3405, allocations: 4.031 kB / 497.5 MB, free: 2.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.3405, allocations: 38.5 kB / 497.5 MB, free: 2.223 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.3405, allocations: 0 / 497.5 MB, free: 2.223 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.0005312/0.3411, allocations: 209.4 kB / 497.7 MB, free: 2.012 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.195e-05/0.3411, allocations: 136.5 kB / 497.9 MB, free: 1.848 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001459/0.3413, allocations: 170.3 kB / 498 MB, free: 1.668 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.3413, allocations: 29.7 kB / 498.1 MB, free: 1.633 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.614e-05/0.3414, allocations: 167.8 kB / 498.2 MB, free: 1.461 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.3415, allocations: 67.09 kB / 498.3 MB, free: 1.395 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.548e-06/0.3415, allocations: 4 kB / 498.3 MB, free: 1.391 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.957e-05/0.3416, allocations: 330.8 kB / 498.6 MB, free: 1.059 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.3417, allocations: 59.97 kB / 498.7 MB, free: 1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.3419, allocations: 157.6 kB / 498.8 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.3421, allocations: 83.92 kB / 498.9 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3421, allocations: 0 / 498.9 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004341/0.3425, allocations: 265.3 kB / 499.2 MB, free: 460 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3426, allocations: 8 kB / 499.2 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.3426, allocations: 0.75 kB / 499.2 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.3426, allocations: 8 kB / 499.2 MB, free: 444 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002689/0.3429, allocations: 67.89 kB / 499.2 MB, free: 376 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.3429, allocations: 15.94 kB / 499.3 MB, free: 360 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.3431, allocations: 27.69 kB / 499.3 MB, free: 332 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.812e-05/0.3431, allocations: 16 kB / 499.3 MB, free: 316 kB / 362.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 0.0001108/0.3432, allocations: 145.9 kB / 499.4 MB, free: 160 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.305e-05/0.3433, allocations: 19.81 kB / 499.5 MB, free: 140 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.85e-05/0.3434, allocations: 16.94 kB / 499.5 MB, free: 124 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3434, allocations: 7.938 kB / 499.5 MB, free: 116 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3434, allocations: 0 / 499.5 MB, free: 116 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/0.3434, allocations: 15.92 kB / 499.5 MB, free: 100 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004198/0.3438, allocations: 269.4 kB / 499.8 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3438, allocations: 0 / 499.8 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002912/0.3441, allocations: 59.97 kB / 499.8 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3441, allocations: 0 / 499.8 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.3442, allocations: 11.98 kB / 499.8 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3442, allocations: 0 / 499.8 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3442, allocations: 3.938 kB / 499.8 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005568/0.3447, allocations: 0.564 MB / 0.4887 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.254e-05/0.3448, allocations: 92.91 kB / 0.4888 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.301e-05/0.3448, allocations: 11.95 kB / 0.4888 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.3451, allocations: 8 kB / 0.4888 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.3451, allocations: 19.97 kB / 0.4888 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.3451, allocations: 4.25 kB / 0.4888 GB, free: 14.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001045/0.3452, allocations: 139.2 kB / 0.4889 GB, free: 14.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3453, allocations: 0 / 0.4889 GB, free: 14.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004139/0.3457, allocations: 68.34 kB / 0.489 GB, free: 14.75 MB / 378.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.000879/0.3466, allocations: 1.318 MB / 0.4903 GB, free: 13.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003632/0.3469, allocations: 160.4 kB / 0.4904 GB, free: 13.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3469, allocations: 4.125 kB / 0.4905 GB, free: 13.24 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.3471, allocations: 71.91 kB / 0.4905 GB, free: 13.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004568/0.3476, allocations: 44.67 kB / 0.4906 GB, free: 13.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.3506, allocations: 4.08 MB / 0.4945 GB, free: 8.918 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.3509, allocations: 0.7521 MB / 0.4953 GB, free: 8.137 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001059/0.351, allocations: 26.28 kB / 0.4953 GB, free: 8.113 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.248e-05/0.3511, allocations: 63.42 kB / 0.4954 GB, free: 8.051 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3511, allocations: 0 / 0.4954 GB, free: 8.051 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01474/0.3659, allocations: 4.162 MB / 0.4994 GB, free: 4.059 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.3661, allocations: 187.1 kB / 0.4996 GB, free: 3.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/2.171, allocations: 2.672 kB / 0.4996 GB, free: 3.82 MB / 378.7 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/linux/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)