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.001089/0.001093, allocations: 117.6 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.001161/0.001161, allocations: 203.9 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.317/1.317, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2597, allocations: 50.54 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.00312/0.2629, allocations: 2.276 MB / 411.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.2642, allocations: 0.7595 MB / 412.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.2643, allocations: 7.938 kB / 412.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.2644, allocations: 39.59 kB / 412.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002385/0.2647, allocations: 87.33 kB / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002895/0.265, allocations: 111.7 kB / 412.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002858/0.2653, allocations: 290.7 kB / 412.8 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.2654, allocations: 72.36 kB / 412.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.2655, allocations: 107.6 kB / 413 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.2657, allocations: 119.5 kB / 413.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.322e-05/0.2657, allocations: 20 kB / 413.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.22e-05/0.2658, allocations: 20 kB / 413.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.503e-05/0.2658, allocations: 55.77 kB / 413.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.2659, allocations: 119.4 kB / 413.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002505/0.2662, allocations: 268.1 kB / 413.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2662, allocations: 4 kB / 413.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2662, allocations: 0 / 413.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.2662, allocations: 0 / 413.6 MB, free: 13.24 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.0006941/0.2669, allocations: 0.5262 MB / 414.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.2669, allocations: 8.031 kB / 414.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.929e-05/0.267, allocations: 28.66 kB / 414.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.2673, allocations: 255.8 kB / 414.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.2673, allocations: 16.81 kB / 414.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.723e-05/0.2674, allocations: 24.38 kB / 414.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000397/0.2678, allocations: 234.9 kB / 414.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.2678, allocations: 11.89 kB / 414.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.303e-05/0.2679, allocations: 8 kB / 414.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.2679, allocations: 8 kB / 414.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003155/0.2682, allocations: 143.8 kB / 414.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/0.2695, allocations: 1.056 MB / 415.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004136/0.2699, allocations: 210.3 kB / 416.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.2701, allocations: 75.48 kB / 416.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.2701, allocations: 0 / 416.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.2701, allocations: 46.5 kB / 416.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.2701, allocations: 0 / 416.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005422/0.2707, allocations: 197.2 kB / 416.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.733e-05/0.2707, allocations: 136.5 kB / 416.5 MB, free: 9.992 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.2709, allocations: 187.5 kB / 416.7 MB, free: 9.797 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.2709, allocations: 25.7 kB / 416.7 MB, free: 9.766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.637e-05/0.271, allocations: 171.8 kB / 416.9 MB, free: 9.594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.478e-05/0.2711, allocations: 59.11 kB / 417 MB, free: 9.535 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.702e-05/0.2712, allocations: 53.59 kB / 417 MB, free: 9.477 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.923e-05/0.2713, allocations: 326.8 kB / 417.3 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.2714, allocations: 59.97 kB / 417.4 MB, free: 9.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.2716, allocations: 165.6 kB / 417.5 MB, free: 8.879 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003369/0.272, allocations: 229.5 kB / 417.8 MB, free: 8.605 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.272, allocations: 4 kB / 417.8 MB, free: 8.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004332/0.2724, allocations: 257.2 kB / 418 MB, free: 8.344 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.2725, allocations: 7.938 kB / 418 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.944e-06/0.2725, allocations: 8.688 kB / 418 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.2725, allocations: 8.375 kB / 418 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.2728, allocations: 75.84 kB / 418.1 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.2728, allocations: 4 kB / 418.1 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.2729, allocations: 31.67 kB / 418.2 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/0.273, allocations: 12 kB / 418.2 MB, free: 8.199 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.000107/0.2731, allocations: 141.7 kB / 418.3 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.384e-05/0.2732, allocations: 19.75 kB / 418.3 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.492e-05/0.2732, allocations: 20.92 kB / 418.3 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.2732, allocations: 4 kB / 418.4 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2732, allocations: 4 kB / 418.4 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.2732, allocations: 7.984 kB / 418.4 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004125/0.2737, allocations: 273.5 kB / 418.6 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2737, allocations: 0 / 418.6 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002748/0.2739, allocations: 51.91 kB / 418.7 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.274, allocations: 7.938 kB / 418.7 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.274, allocations: 4 kB / 418.7 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.274, allocations: 4 kB / 418.7 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.274, allocations: 0 / 418.7 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005147/0.2745, allocations: 0.5205 MB / 419.2 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.54e-05/0.2746, allocations: 100.8 kB / 419.3 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.595e-05/0.2746, allocations: 0 / 419.3 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.2748, allocations: 11.98 kB / 419.3 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.2749, allocations: 23.92 kB / 419.3 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.2749, allocations: 4 kB / 419.4 MB, free: 6.914 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001033/0.275, allocations: 140.2 kB / 419.5 MB, free: 6.777 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.275, allocations: 0 / 419.5 MB, free: 6.777 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004414/0.2755, allocations: 63.84 kB / 419.6 MB, free: 6.715 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.0001124/0.2756, allocations: 101.2 kB / 419.7 MB, free: 6.609 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003499/0.2759, allocations: 156.5 kB / 419.8 MB, free: 6.457 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.276, allocations: 4 kB / 419.8 MB, free: 6.453 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.2761, allocations: 63.91 kB / 419.9 MB, free: 6.391 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006435/0.2768, allocations: 67.12 kB / 419.9 MB, free: 6.332 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.278, allocations: 0.8269 MB / 420.8 MB, free: 5.469 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002826/0.2783, allocations: 0.748 MB / 421.5 MB, free: 4.691 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.105e-05/0.2784, allocations: 26.28 kB / 421.5 MB, free: 4.668 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.643e-05/0.2785, allocations: 27.42 kB / 421.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2785, allocations: 0 / 421.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of Templates: time 0.005299/0.2838, allocations: 2.265 MB / 423.8 MB, free: 2.395 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)