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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001464/0.001464, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001723/0.001723, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 60.14 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.248, allocations: 50.55 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003036/0.251, allocations: 2.265 MB / 411.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.2523, allocations: 0.7595 MB / 412.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.2524, allocations: 7.938 kB / 412.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.2526, allocations: 35.66 kB / 412.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.2528, allocations: 91.27 kB / 412.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003039/0.2531, allocations: 107.8 kB / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002993/0.2534, allocations: 302.6 kB / 412.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.2536, allocations: 60.38 kB / 412.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.2537, allocations: 111.6 kB / 413 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.2539, allocations: 119.5 kB / 413.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.166e-05/0.2539, allocations: 20 kB / 413.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.448e-05/0.2539, allocations: 20 kB / 413.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.094e-05/0.254, allocations: 51.78 kB / 413.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.2541, allocations: 131.3 kB / 413.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002575/0.2544, allocations: 264.2 kB / 413.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2544, allocations: 0 / 413.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2544, allocations: 0 / 413.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.2544, allocations: 4 kB / 413.6 MB, free: 13.25 MB / 334.1 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.0007463/0.2551, allocations: 0.5223 MB / 414.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.2552, allocations: 12.03 kB / 414.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.669e-05/0.2553, allocations: 24.66 kB / 414.1 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.2556, allocations: 255.8 kB / 414.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.2556, allocations: 16.81 kB / 414.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.155e-05/0.2556, allocations: 28.38 kB / 414.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004164/0.2561, allocations: 238.9 kB / 414.6 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.2561, allocations: 3.906 kB / 414.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.2561, allocations: 12 kB / 414.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.2561, allocations: 4 kB / 414.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.2565, allocations: 147.6 kB / 414.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.2578, allocations: 1.053 MB / 415.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004416/0.2582, allocations: 222.3 kB / 416.1 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.2584, allocations: 67.45 kB / 416.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.2584, allocations: 4 kB / 416.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.2585, allocations: 46.48 kB / 416.2 MB, free: 10.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.433e-06/0.2585, allocations: 0 / 416.2 MB, free: 10.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005542/0.259, allocations: 189.3 kB / 416.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.018e-05/0.2591, allocations: 140.5 kB / 416.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.2593, allocations: 191.4 kB / 416.7 MB, free: 9.812 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.2593, allocations: 25.7 kB / 416.7 MB, free: 9.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.413e-05/0.2594, allocations: 163.8 kB / 416.9 MB, free: 9.617 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.662e-05/0.2595, allocations: 63.09 kB / 417 MB, free: 9.555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.516e-05/0.2595, allocations: 53.61 kB / 417 MB, free: 9.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.2596, allocations: 330.8 kB / 417.3 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.2598, allocations: 51.97 kB / 417.4 MB, free: 9.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.26, allocations: 165.7 kB / 417.5 MB, free: 8.902 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003873/0.2604, allocations: 229.5 kB / 417.8 MB, free: 8.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2604, allocations: 7.938 kB / 417.8 MB, free: 8.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004896/0.2609, allocations: 257.1 kB / 418 MB, free: 8.363 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.261, allocations: 11.94 kB / 418 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.261, allocations: 0 / 418 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.261, allocations: 8 kB / 418 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.2613, allocations: 71.89 kB / 418.1 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.2613, allocations: 8.312 kB / 418.1 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.2614, allocations: 35.69 kB / 418.2 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.2615, allocations: 8 kB / 418.2 MB, free: 8.223 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001113/0.2616, allocations: 149.6 kB / 418.3 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.05e-05/0.2617, allocations: 19.75 kB / 418.3 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.579e-05/0.2617, allocations: 16.94 kB / 418.3 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2617, allocations: 4 kB / 418.4 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.2618, allocations: 4 kB / 418.4 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.2618, allocations: 4.734 kB / 418.4 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000421/0.2622, allocations: 273.5 kB / 418.6 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.2622, allocations: 0 / 418.6 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00028/0.2625, allocations: 51.91 kB / 418.7 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.826e-06/0.2625, allocations: 7.938 kB / 418.7 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.2625, allocations: 11.98 kB / 418.7 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.2625, allocations: 3.984 kB / 418.7 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2625, allocations: 0 / 418.7 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005469/0.2631, allocations: 0.5205 MB / 419.2 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.573e-05/0.2632, allocations: 104.8 kB / 419.3 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.962e-05/0.2632, allocations: 0 / 419.3 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.2634, allocations: 8 kB / 419.3 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.627e-05/0.2635, allocations: 15.98 kB / 419.3 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.2635, allocations: 8.234 kB / 419.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001032/0.2636, allocations: 144.2 kB / 419.5 MB, free: 6.793 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2636, allocations: 0 / 419.5 MB, free: 6.793 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004373/0.2641, allocations: 63.84 kB / 419.6 MB, free: 6.73 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001099/0.2642, allocations: 105.2 kB / 419.7 MB, free: 6.621 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003658/0.2645, allocations: 156.4 kB / 419.8 MB, free: 6.469 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2646, allocations: 3.938 kB / 419.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.2647, allocations: 67.89 kB / 419.9 MB, free: 6.398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006761/0.2654, allocations: 51.84 kB / 419.9 MB, free: 6.348 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.2667, allocations: 0.8232 MB / 420.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.267, allocations: 0.748 MB / 421.5 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.968e-05/0.2671, allocations: 30.27 kB / 421.5 MB, free: 4.684 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.669e-05/0.2671, allocations: 23.44 kB / 421.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2671, allocations: 0 / 421.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of Templates: time 0.004893/0.272, allocations: 2.267 MB / 423.8 MB, free: 2.414 MB / 334.1 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)