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.001132/0.001132, allocations: 196.1 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.45/1.45, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009151/0.0009152, allocations: 89.23 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.571e-05/3.573e-05, allocations: 7.984 kB / 350.5 MB, free: 2.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1207, allocations: 51.47 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3171/0.4378, allocations: 79.88 MB / 481.9 MB, free: 9.531 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.4382, allocations: 65.72 kB / 482 MB, free: 9.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01303/0.4513, allocations: 5.4 MB / 487.4 MB, free: 5.059 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.4513, allocations: 0 / 487.4 MB, free: 5.059 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.4513, allocations: 4 kB / 487.4 MB, free: 5.055 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.0005008/0.4518, allocations: 474.4 kB / 487.8 MB, free: 4.566 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.4519, allocations: 8.031 kB / 487.8 MB, free: 4.559 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.145e-05/0.452, allocations: 35.62 kB / 487.9 MB, free: 4.523 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.4522, allocations: 243.3 kB / 488.1 MB, free: 4.262 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.4522, allocations: 15.55 kB / 488.1 MB, free: 4.254 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.261e-05/0.4523, allocations: 29.41 kB / 488.2 MB, free: 4.234 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002961/0.4526, allocations: 225.1 kB / 488.4 MB, free: 4.055 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.4526, allocations: 3.984 kB / 488.4 MB, free: 4.051 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.4526, allocations: 10.25 kB / 488.4 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.4527, allocations: 8 kB / 488.4 MB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001869/0.4528, allocations: 126.1 kB / 488.5 MB, free: 3.953 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.4539, allocations: 1.058 MB / 489.6 MB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002361/0.4542, allocations: 193.2 kB / 489.8 MB, free: 2.742 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.047e-05/0.4543, allocations: 64.08 kB / 489.8 MB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.4543, allocations: 4 kB / 489.8 MB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.597e-05/0.4543, allocations: 39.38 kB / 489.9 MB, free: 2.637 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.503e-06/0.4543, allocations: 4 kB / 489.9 MB, free: 2.633 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003211/0.4547, allocations: 139.7 kB / 490 MB, free: 2.512 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.4547, allocations: 132.5 kB / 490.1 MB, free: 2.352 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/0.4549, allocations: 172.5 kB / 490.3 MB, free: 2.195 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.4549, allocations: 28.89 kB / 490.3 MB, free: 2.164 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.632e-05/0.4549, allocations: 167.9 kB / 490.5 MB, free: 2.016 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.45e-05/0.455, allocations: 61.36 kB / 490.6 MB, free: 1.965 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.063e-05/0.455, allocations: 11.19 kB / 490.6 MB, free: 1.957 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.732e-05/0.4551, allocations: 337.5 kB / 490.9 MB, free: 1.629 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.778e-05/0.4552, allocations: 44.73 kB / 490.9 MB, free: 1.602 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.4553, allocations: 153.7 kB / 491.1 MB, free: 1.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001084/0.4554, allocations: 73.66 kB / 491.2 MB, free: 1.379 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.4554, allocations: 0 / 491.2 MB, free: 1.379 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002947/0.4557, allocations: 240.3 kB / 491.4 MB, free: 1.188 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.4558, allocations: 8.031 kB / 491.4 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.4558, allocations: 4 kB / 491.4 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.4558, allocations: 8 kB / 491.4 MB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.4561, allocations: 67.31 kB / 491.5 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.4561, allocations: 15.89 kB / 491.5 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.4562, allocations: 27.67 kB / 491.5 MB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.14e-05/0.4563, allocations: 15.56 kB / 491.5 MB, free: 1.055 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.335e-05/0.4563, allocations: 120.4 kB / 491.7 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.973e-05/0.4564, allocations: 19.81 kB / 491.7 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.997e-05/0.4565, allocations: 28.3 kB / 491.7 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.4565, allocations: 3.938 kB / 491.7 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4565, allocations: 4 kB / 491.7 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.4565, allocations: 3.953 kB / 491.7 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003364/0.4568, allocations: 264 kB / 492 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4568, allocations: 0 / 492 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.4571, allocations: 60.59 kB / 492 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.4571, allocations: 0 / 492 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.4571, allocations: 11.88 kB / 492.1 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.4572, allocations: 0 / 492.1 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4572, allocations: 4 kB / 492.1 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.4575, allocations: 0.5349 MB / 492.6 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.687e-05/0.4576, allocations: 97.41 kB / 492.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.122e-05/0.4576, allocations: 11.52 kB / 492.7 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.4578, allocations: 4 kB / 492.7 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/0.4579, allocations: 19.84 kB / 492.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.4579, allocations: 5.688 kB / 492.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001026/0.458, allocations: 136.1 kB / 492.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.458, allocations: 0 / 492.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003859/0.4584, allocations: 66.53 kB / 492.9 MB, free: 15.71 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.0001588/0.4586, allocations: 112.3 kB / 493 MB, free: 15.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002506/0.4588, allocations: 132.1 kB / 493.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.4588, allocations: 4 kB / 493.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.949e-05/0.4589, allocations: 61.34 kB / 493.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004627/0.4594, allocations: 47.92 kB / 493.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.4606, allocations: 0.7659 MB / 494 MB, free: 14.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.4609, allocations: 0.7482 MB / 494.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.56e-05/0.461, allocations: 22.08 kB / 494.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.77e-05/0.4611, allocations: 27.42 kB / 494.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4611, allocations: 0 / 494.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of Templates: time 0.004676/0.4658, allocations: 2.015 MB / 496.9 MB, free: 11.9 MB / 362.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)