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: translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002149/0.002149, allocations: 198.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.492/1.492, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008966/0.0008969, allocations: 100.7 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.708e-05/1.704e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1352, allocations: 51.48 MB / 395.2 MB, free: 4.777 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3971/0.5324, allocations: 79.21 MB / 474.4 MB, free: 12.81 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/0.5327, allocations: 73.98 kB / 474.4 MB, free: 12.78 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01292/0.5456, allocations: 5.367 MB / 479.8 MB, free: 9.516 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5457, allocations: 0 / 479.8 MB, free: 9.516 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.5457, allocations: 4 kB / 479.8 MB, free: 9.512 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.0004834/0.5462, allocations: 475.9 kB / 480.3 MB, free: 9.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.5462, allocations: 8.031 kB / 480.3 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.227e-05/0.5463, allocations: 27.62 kB / 480.3 MB, free: 8.984 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.5465, allocations: 247.6 kB / 480.6 MB, free: 8.719 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.5465, allocations: 12.8 kB / 480.6 MB, free: 8.707 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.723e-05/0.5466, allocations: 15.91 kB / 480.6 MB, free: 8.691 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001969/0.5468, allocations: 113.8 kB / 480.7 MB, free: 8.621 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002499/0.5471, allocations: 187.7 kB / 480.9 MB, free: 8.453 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.5471, allocations: 11.44 kB / 480.9 MB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.5471, allocations: 0 / 480.9 MB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.5471, allocations: 10.38 kB / 480.9 MB, free: 8.438 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.5481, allocations: 1.012 MB / 481.9 MB, free: 7.465 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.5484, allocations: 174.1 kB / 482.1 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.748e-05/0.5484, allocations: 52.91 kB / 482.1 MB, free: 7.238 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.5485, allocations: 7.922 kB / 482.1 MB, free: 7.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.736e-05/0.5485, allocations: 41.19 kB / 482.2 MB, free: 7.184 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.253e-06/0.5485, allocations: 0 / 482.2 MB, free: 7.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002762/0.5488, allocations: 123.3 kB / 482.3 MB, free: 7.078 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.443e-05/0.5488, allocations: 132.5 kB / 482.4 MB, free: 6.918 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.5489, allocations: 165.8 kB / 482.6 MB, free: 6.766 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.549, allocations: 25.7 kB / 482.6 MB, free: 6.734 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.54e-05/0.549, allocations: 168.3 kB / 482.8 MB, free: 6.59 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.5491, allocations: 64.78 kB / 482.8 MB, free: 6.535 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.5491, allocations: 4 kB / 482.9 MB, free: 6.531 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.435e-05/0.5491, allocations: 329.2 kB / 483.2 MB, free: 6.207 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.736e-05/0.5492, allocations: 45.67 kB / 483.2 MB, free: 6.184 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.703e-05/0.5493, allocations: 145.1 kB / 483.4 MB, free: 6.016 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.973e-05/0.5494, allocations: 68.66 kB / 483.4 MB, free: 5.969 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.5494, allocations: 0 / 483.4 MB, free: 5.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002544/0.5497, allocations: 216.2 kB / 483.6 MB, free: 5.793 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.5497, allocations: 4.375 kB / 483.6 MB, free: 5.789 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.5497, allocations: 8 kB / 483.7 MB, free: 5.781 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.5497, allocations: 8.188 kB / 483.7 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002527/0.55, allocations: 63.91 kB / 483.7 MB, free: 5.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.55, allocations: 11.92 kB / 483.7 MB, free: 5.699 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.5501, allocations: 23.75 kB / 483.8 MB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.5502, allocations: 26 kB / 483.8 MB, free: 5.656 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.006e-05/0.5502, allocations: 108.9 kB / 483.9 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.271e-05/0.5503, allocations: 23.81 kB / 483.9 MB, free: 5.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.579e-05/0.5504, allocations: 27.42 kB / 483.9 MB, free: 5.508 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.5504, allocations: 0 / 483.9 MB, free: 5.508 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.5504, allocations: 4 kB / 483.9 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.5504, allocations: 0 / 483.9 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003043/0.5507, allocations: 231.6 kB / 484.2 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.5507, allocations: 0 / 484.2 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.551, allocations: 55.91 kB / 484.2 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.551, allocations: 0 / 484.2 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.551, allocations: 6.188 kB / 484.2 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.551, allocations: 4 kB / 484.2 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.551, allocations: 4 kB / 484.2 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.5514, allocations: 0.5262 MB / 484.8 MB, free: 4.684 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.588e-05/0.5514, allocations: 96.84 kB / 484.9 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.097e-05/0.5515, allocations: 4 kB / 484.9 MB, free: 4.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.5517, allocations: 7.25 kB / 484.9 MB, free: 4.562 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.548e-05/0.5517, allocations: 19.86 kB / 484.9 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.998e-06/0.5517, allocations: 11.56 kB / 484.9 MB, free: 4.535 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.437e-05/0.5518, allocations: 132 kB / 485 MB, free: 4.426 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5518, allocations: 0 / 485 MB, free: 4.426 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004208/0.5523, allocations: 59.84 kB / 485.1 MB, free: 4.367 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.0001258/0.5524, allocations: 103.2 kB / 485.2 MB, free: 4.258 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002087/0.5526, allocations: 122.7 kB / 485.3 MB, free: 4.168 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5526, allocations: 0 / 485.3 MB, free: 4.168 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.07e-05/0.5527, allocations: 53.36 kB / 485.4 MB, free: 4.129 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004961/0.5532, allocations: 46.66 kB / 485.4 MB, free: 4.098 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.5543, allocations: 0.746 MB / 486.2 MB, free: 3.359 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002106/0.5545, allocations: 0.7526 MB / 486.9 MB, free: 2.582 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.5546, allocations: 30.06 kB / 486.9 MB, free: 2.551 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.372e-05/0.5546, allocations: 23.42 kB / 487 MB, free: 2.527 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5546, allocations: 0 / 487 MB, free: 2.527 MB / 346.7 MB Notification: Performance of Templates: time 0.004521/0.5592, allocations: 1.906 MB / 488.9 MB, free: 0.6914 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)