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.001204/0.001204, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009818/0.0009817, allocations: 95.98 kB / 292.1 MB, free: 6.047 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.707e-05/4.738e-05, allocations: 4 kB / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1311, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.436/0.5672, allocations: 79.87 MB / 482 MB, free: 9.531 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.5674, allocations: 70.59 kB / 482.1 MB, free: 9.496 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01374/0.5812, allocations: 5.395 MB / 487.5 MB, free: 5.066 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5812, allocations: 0 / 487.5 MB, free: 5.066 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.309e-05/0.5813, allocations: 7.984 kB / 487.5 MB, free: 5.059 MB / 346.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.0006743/0.582, allocations: 480.7 kB / 487.9 MB, free: 4.566 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.582, allocations: 8.031 kB / 487.9 MB, free: 4.559 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.295e-05/0.5821, allocations: 61.22 kB / 488 MB, free: 4.504 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.446e-05/0.5822, allocations: 27.62 kB / 488 MB, free: 4.477 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/0.5825, allocations: 242 kB / 488.3 MB, free: 4.215 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.5825, allocations: 15.88 kB / 488.3 MB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.751e-05/0.5826, allocations: 30.97 kB / 488.3 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003423/0.583, allocations: 227.6 kB / 488.5 MB, free: 4 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.431e-05/0.583, allocations: 7.688 kB / 488.5 MB, free: 3.996 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.583, allocations: 3.5 kB / 488.5 MB, free: 3.996 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.583, allocations: 11.98 kB / 488.6 MB, free: 3.984 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002112/0.5832, allocations: 126.6 kB / 488.7 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001279/0.5845, allocations: 1.049 MB / 489.7 MB, free: 2.887 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.5848, allocations: 194.7 kB / 489.9 MB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.905e-05/0.5849, allocations: 61.98 kB / 490 MB, free: 2.637 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.425e-05/0.5849, allocations: 4 kB / 490 MB, free: 2.633 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.5849, allocations: 42.48 kB / 490 MB, free: 2.582 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 2.254e-06/0.5849, allocations: 0 / 490 MB, free: 2.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003231/0.5853, allocations: 140.2 kB / 490.2 MB, free: 2.465 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.5853, allocations: 136.4 kB / 490.3 MB, free: 2.301 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.5855, allocations: 174.2 kB / 490.5 MB, free: 2.141 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.5855, allocations: 32.83 kB / 490.5 MB, free: 2.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.772e-05/0.5855, allocations: 159.7 kB / 490.7 MB, free: 1.965 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.386e-05/0.5856, allocations: 71.33 kB / 490.7 MB, free: 1.906 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.506e-06/0.5856, allocations: 3.375 kB / 490.7 MB, free: 1.906 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.101e-05/0.5857, allocations: 329.2 kB / 491.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.074e-05/0.5858, allocations: 52.83 kB / 491.1 MB, free: 1.551 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.5859, allocations: 147 kB / 491.2 MB, free: 1.383 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.586, allocations: 72.17 kB / 491.3 MB, free: 1.336 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.586, allocations: 0 / 491.3 MB, free: 1.336 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003017/0.5863, allocations: 244.3 kB / 491.6 MB, free: 1.137 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.5863, allocations: 8 kB / 491.6 MB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.5864, allocations: 4 kB / 491.6 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.5864, allocations: 4 kB / 491.6 MB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.5866, allocations: 76.16 kB / 491.6 MB, free: 1.051 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.5867, allocations: 7.953 kB / 491.7 MB, free: 1.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.5868, allocations: 35.73 kB / 491.7 MB, free: 1.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.5868, allocations: 11.69 kB / 491.7 MB, free: 1.004 MB / 346.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 () * 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 5.838e-05/0.5869, allocations: 120.1 kB / 491.8 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.163e-05/0.587, allocations: 19.81 kB / 491.8 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.199e-05/0.5871, allocations: 23.67 kB / 491.9 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.5871, allocations: 8.5 kB / 491.9 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.5871, allocations: 0 / 491.9 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.5871, allocations: 6.297 kB / 491.9 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003686/0.5875, allocations: 266.1 kB / 492.1 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.5875, allocations: 4.812 kB / 492.1 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003224/0.5878, allocations: 55.89 kB / 492.2 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.5878, allocations: 4 kB / 492.2 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.5878, allocations: 3.625 kB / 492.2 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.5879, allocations: 4 kB / 492.2 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.5879, allocations: 0.5625 kB / 492.2 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003978/0.5883, allocations: 0.5379 MB / 492.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.584e-05/0.5884, allocations: 104.8 kB / 492.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.078e-05/0.5884, allocations: 3.625 kB / 492.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.5886, allocations: 8 kB / 492.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/0.5887, allocations: 17.61 kB / 492.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.5887, allocations: 7.984 kB / 492.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001182/0.5888, allocations: 137.7 kB / 493 MB, free: 15.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5888, allocations: 0 / 493 MB, free: 15.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004237/0.5893, allocations: 71.16 kB / 493.1 MB, free: 15.65 MB / 362.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 () * 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.0008345/0.5901, allocations: 1.285 MB / 494.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002564/0.5904, allocations: 140.8 kB / 494.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.5904, allocations: 4 kB / 494.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.409e-05/0.5905, allocations: 61.05 kB / 494.6 MB, free: 14.22 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004616/0.5909, allocations: 41.31 kB / 494.6 MB, free: 14.19 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.5925, allocations: 0.8327 MB / 495.4 MB, free: 13.33 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.5929, allocations: 0.756 MB / 496.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.593, allocations: 22.08 kB / 496.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.5932, allocations: 71.41 kB / 496.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5932, allocations: 1.219 kB / 496.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01787/0.611, allocations: 4.118 MB / 0.4887 GB, free: 8.594 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/0.6113, allocations: 166.4 kB / 0.4888 GB, free: 8.367 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/2.284, allocations: 1.688 kB / 0.4888 GB, free: 8.367 MB / 362.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)