Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001592/0.001592, allocations: 114.5 kB / 18.45 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001582/0.001582, allocations: 207.8 kB / 19.4 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.454/1.454, allocations: 227.7 MB / 247.9 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 59.89 kB / 359.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2536, allocations: 50.55 MB / 410.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003477/0.2571, allocations: 2.288 MB / 412.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.2585, allocations: 0.7634 MB / 413.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001301/0.2586, allocations: 4 kB / 413.2 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001601/0.2588, allocations: 43.53 kB / 413.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002948/0.2591, allocations: 87.33 kB / 413.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003661/0.2595, allocations: 111.7 kB / 413.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003608/0.2598, allocations: 294.7 kB / 413.8 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.26, allocations: 48.38 kB / 413.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.2601, allocations: 107.6 kB / 413.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/0.2603, allocations: 123.4 kB / 414 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.2603, allocations: 20 kB / 414.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.971e-05/0.2604, allocations: 20 kB / 414.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.094e-05/0.2604, allocations: 47.84 kB / 414.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.2606, allocations: 119.4 kB / 414.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003676/0.2609, allocations: 270.6 kB / 414.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2609, allocations: 0 / 414.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2609, allocations: 8 kB / 414.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.2609, allocations: 0 / 414.5 MB, free: 13.12 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.000889/0.2618, allocations: 0.5221 MB / 415 MB, free: 12.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.2619, allocations: 8.031 kB / 415 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.484e-05/0.2619, allocations: 28.75 kB / 415.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003919/0.2623, allocations: 263.9 kB / 415.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.2623, allocations: 20.81 kB / 415.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.846e-05/0.2624, allocations: 24.38 kB / 415.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004511/0.2629, allocations: 231 kB / 415.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.2629, allocations: 11.95 kB / 415.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.2629, allocations: 4 kB / 415.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.2629, allocations: 4 kB / 415.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003525/0.2633, allocations: 151.3 kB / 415.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.2647, allocations: 1.057 MB / 416.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004707/0.2652, allocations: 206.5 kB / 417 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000142/0.2654, allocations: 63.44 kB / 417.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.232e-05/0.2654, allocations: 7.938 kB / 417.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.2654, allocations: 42.55 kB / 417.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.362e-06/0.2654, allocations: 0 / 417.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005763/0.266, allocations: 194 kB / 417.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.662e-05/0.2661, allocations: 136.5 kB / 417.5 MB, free: 9.891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002314/0.2663, allocations: 195.4 kB / 417.7 MB, free: 9.688 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.2663, allocations: 25.7 kB / 417.7 MB, free: 9.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.2665, allocations: 164.2 kB / 417.8 MB, free: 9.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.037e-05/0.2665, allocations: 67.42 kB / 417.9 MB, free: 9.426 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.96e-05/0.2666, allocations: 53.66 kB / 418 MB, free: 9.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.2668, allocations: 334.8 kB / 418.3 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.2669, allocations: 55.97 kB / 418.3 MB, free: 8.977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.2672, allocations: 169.5 kB / 418.5 MB, free: 8.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003923/0.2676, allocations: 229.5 kB / 418.7 MB, free: 8.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.2676, allocations: 4 kB / 418.7 MB, free: 8.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004949/0.2681, allocations: 261.2 kB / 419 MB, free: 8.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.2681, allocations: 7.938 kB / 419 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2681, allocations: 7.938 kB / 419 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.2681, allocations: 8 kB / 419 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.2684, allocations: 72.27 kB / 419.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.2684, allocations: 8 kB / 419.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.2685, allocations: 23.84 kB / 419.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.2686, allocations: 12.25 kB / 419.1 MB, free: 8.09 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.0001335/0.2687, allocations: 149.6 kB / 419.3 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.2688, allocations: 23.78 kB / 419.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.97e-05/0.2689, allocations: 16.94 kB / 419.3 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.2689, allocations: 8 kB / 419.3 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2689, allocations: 0 / 419.3 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.2689, allocations: 11.98 kB / 419.3 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004756/0.2694, allocations: 273.5 kB / 419.6 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2694, allocations: 0 / 419.6 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002811/0.2696, allocations: 47.97 kB / 419.6 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.2696, allocations: 7.938 kB / 419.7 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.2697, allocations: 7.984 kB / 419.7 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.2697, allocations: 4 kB / 419.7 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2697, allocations: 0 / 419.7 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006419/0.2703, allocations: 0.5206 MB / 420.2 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.993e-05/0.2704, allocations: 104.9 kB / 420.3 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.058e-05/0.2704, allocations: 4 kB / 420.3 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.2706, allocations: 4 kB / 420.3 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.959e-05/0.2707, allocations: 15.98 kB / 420.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.2707, allocations: 11.98 kB / 420.3 MB, free: 6.793 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001366/0.2708, allocations: 140.2 kB / 420.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2708, allocations: 0 / 420.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004483/0.2713, allocations: 67.84 kB / 420.5 MB, free: 6.59 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.0001418/0.2714, allocations: 103.2 kB / 420.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003924/0.2718, allocations: 152.4 kB / 420.8 MB, free: 6.332 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2718, allocations: 0 / 420.8 MB, free: 6.332 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.272, allocations: 63.89 kB / 420.8 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007188/0.2727, allocations: 57.53 kB / 420.9 MB, free: 6.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.2742, allocations: 0.8339 MB / 421.7 MB, free: 5.344 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.2746, allocations: 0.748 MB / 422.5 MB, free: 4.566 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.46e-05/0.2747, allocations: 26.28 kB / 422.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.662e-05/0.2748, allocations: 19.44 kB / 422.5 MB, free: 4.523 MB / 334.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2748, allocations: 0 / 422.5 MB, free: 4.523 MB / 334.1 MB Notification: Performance of Templates: time 0.005932/0.2807, allocations: 2.296 MB / 424.8 MB, free: 2.25 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)