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.00189/0.00189, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008991/0.0008991, allocations: 96.59 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.519e-05/2.524e-05, allocations: 0 / 343.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1336, allocations: 51.48 MB / 395.3 MB, free: 4.652 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3673/0.501, allocations: 79.21 MB / 474.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001844/0.5012, allocations: 71.53 kB / 474.5 MB, free: 12.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01328/0.5145, allocations: 5.358 MB / 479.9 MB, free: 9.242 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.5146, allocations: 0 / 479.9 MB, free: 9.242 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.578e-05/0.5146, allocations: 8 kB / 479.9 MB, free: 9.234 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.0005378/0.5151, allocations: 477.8 kB / 480.4 MB, free: 8.742 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.5152, allocations: 8.031 kB / 480.4 MB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.448e-05/0.5153, allocations: 31.62 kB / 480.4 MB, free: 8.703 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.5155, allocations: 249.1 kB / 480.7 MB, free: 8.438 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.5155, allocations: 4.859 kB / 480.7 MB, free: 8.434 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.54e-05/0.5156, allocations: 23.91 kB / 480.7 MB, free: 8.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001982/0.5158, allocations: 117.6 kB / 480.8 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002598/0.516, allocations: 189.9 kB / 481 MB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.5161, allocations: 3.188 kB / 481 MB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.042e-05/0.5161, allocations: 3.984 kB / 481 MB, free: 8.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.5161, allocations: 11.98 kB / 481 MB, free: 8.152 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.5172, allocations: 1.007 MB / 482 MB, free: 7.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.5175, allocations: 179.7 kB / 482.2 MB, free: 7.004 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.861e-05/0.5175, allocations: 56.22 kB / 482.2 MB, free: 6.949 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.975e-05/0.5176, allocations: 4 kB / 482.2 MB, free: 6.945 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.992e-05/0.5176, allocations: 33.81 kB / 482.3 MB, free: 6.906 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.272e-06/0.5176, allocations: 0 / 482.3 MB, free: 6.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003079/0.5179, allocations: 131.3 kB / 482.4 MB, free: 6.789 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.518, allocations: 139.6 kB / 482.5 MB, free: 6.625 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.5181, allocations: 165 kB / 482.7 MB, free: 6.473 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.5181, allocations: 25.7 kB / 482.7 MB, free: 6.441 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.594e-05/0.5182, allocations: 166.4 kB / 482.9 MB, free: 6.297 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.943e-05/0.5182, allocations: 60.8 kB / 482.9 MB, free: 6.246 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.118e-06/0.5183, allocations: 0 / 482.9 MB, free: 6.246 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.657e-05/0.5184, allocations: 335 kB / 483.3 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.139e-05/0.5185, allocations: 43.61 kB / 483.3 MB, free: 5.898 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.541e-05/0.5186, allocations: 145.7 kB / 483.5 MB, free: 5.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.522e-05/0.5187, allocations: 64.78 kB / 483.5 MB, free: 5.688 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.5187, allocations: 0 / 483.5 MB, free: 5.688 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000275/0.5189, allocations: 213.8 kB / 483.7 MB, free: 5.512 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.519, allocations: 8 kB / 483.7 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.519, allocations: 7.984 kB / 483.7 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.519, allocations: 4 kB / 483.8 MB, free: 5.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.5193, allocations: 75.59 kB / 483.8 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.5193, allocations: 6.328 kB / 483.8 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.5194, allocations: 23.75 kB / 483.9 MB, free: 5.395 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.5195, allocations: 19.94 kB / 483.9 MB, free: 5.375 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 6.987e-05/0.5195, allocations: 116 kB / 484 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002166/0.5198, allocations: 129.8 kB / 484.1 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.706e-05/0.5199, allocations: 15.81 kB / 484.1 MB, free: 5.129 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.891e-05/0.5199, allocations: 20.61 kB / 484.2 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.5199, allocations: 7.938 kB / 484.2 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.5199, allocations: 3.953 kB / 484.2 MB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.5199, allocations: 8 kB / 484.2 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003525/0.5203, allocations: 233.3 kB / 484.4 MB, free: 4.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.5203, allocations: 0 / 484.4 MB, free: 4.867 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00027/0.5206, allocations: 51.16 kB / 484.4 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.5206, allocations: 4 kB / 484.5 MB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.5206, allocations: 3.438 kB / 484.5 MB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.5206, allocations: 4 kB / 484.5 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.5206, allocations: 3.938 kB / 484.5 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003537/0.521, allocations: 0.5215 MB / 485 MB, free: 4.289 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.5211, allocations: 100.8 kB / 485.1 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.154e-05/0.5211, allocations: 5.922 kB / 485.1 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.5213, allocations: 12 kB / 485.1 MB, free: 4.156 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.058e-05/0.5214, allocations: 14.78 kB / 485.1 MB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.5214, allocations: 7.312 kB / 485.1 MB, free: 4.141 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.574e-05/0.5215, allocations: 135.8 kB / 485.3 MB, free: 4.027 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5215, allocations: 0 / 485.3 MB, free: 4.027 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004421/0.5219, allocations: 59.75 kB / 485.3 MB, free: 3.969 MB / 346.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.000504/0.5224, allocations: 1.273 MB / 486.6 MB, free: 2.699 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001955/0.5227, allocations: 124.3 kB / 486.7 MB, free: 2.609 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.5227, allocations: 0 / 486.7 MB, free: 2.609 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.852e-05/0.5227, allocations: 53.98 kB / 486.8 MB, free: 2.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004907/0.5232, allocations: 45.73 kB / 486.8 MB, free: 2.539 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.5246, allocations: 0.8114 MB / 487.6 MB, free: 1.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002073/0.5248, allocations: 0.756 MB / 488.4 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.5249, allocations: 26.08 kB / 488.4 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.495e-05/0.525, allocations: 72.66 kB / 488.5 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.525, allocations: 0 / 488.5 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02258/0.5476, allocations: 3.715 MB / 492.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/0.5478, allocations: 152.1 kB / 492.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/2.291, allocations: 0 / 492.3 MB, free: 13.07 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)