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.001899/0.001899, allocations: 106.6 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001996/0.001996, allocations: 205.9 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3196, allocations: 50.53 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003628/0.3233, allocations: 2.28 MB / 412.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.3247, allocations: 0.7517 MB / 412.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.3249, allocations: 7.938 kB / 413 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.3251, allocations: 39.64 kB / 413 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002675/0.3253, allocations: 91.27 kB / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003048/0.3257, allocations: 99.81 kB / 413.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003052/0.326, allocations: 298.6 kB / 413.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.3261, allocations: 64.36 kB / 413.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.3263, allocations: 115.6 kB / 413.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001847/0.3265, allocations: 115.5 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.481e-05/0.3265, allocations: 24 kB / 413.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.911e-05/0.3265, allocations: 20 kB / 413.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.807e-05/0.3266, allocations: 55.77 kB / 413.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.3267, allocations: 119.4 kB / 414 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002965/0.327, allocations: 264.2 kB / 414.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.327, allocations: 3.938 kB / 414.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.327, allocations: 0 / 414.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.3271, allocations: 4 kB / 414.2 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.0007923/0.3279, allocations: 0.5301 MB / 414.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.3279, allocations: 8.031 kB / 414.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.592e-05/0.328, allocations: 24.66 kB / 414.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/0.3283, allocations: 255.8 kB / 415.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.3284, allocations: 16.81 kB / 415.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.327e-05/0.3285, allocations: 24.38 kB / 415.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004122/0.3289, allocations: 234.9 kB / 415.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.3289, allocations: 3.906 kB / 415.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.289e-05/0.3289, allocations: 15.98 kB / 415.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.3289, allocations: 4 kB / 415.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003257/0.3293, allocations: 143.8 kB / 415.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.3307, allocations: 1.056 MB / 416.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004243/0.3311, allocations: 218.3 kB / 416.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000129/0.3312, allocations: 63.48 kB / 416.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.3313, allocations: 4 kB / 416.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.422e-05/0.3313, allocations: 42.5 kB / 416.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.312e-06/0.3313, allocations: 0 / 416.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005838/0.3319, allocations: 193.3 kB / 417.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.907e-05/0.332, allocations: 140.4 kB / 417.2 MB, free: 10 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001627/0.3322, allocations: 183.5 kB / 417.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.3322, allocations: 29.7 kB / 417.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.441e-05/0.3323, allocations: 171.8 kB / 417.6 MB, free: 9.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.638e-05/0.3323, allocations: 63.11 kB / 417.6 MB, free: 9.539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.302e-05/0.3324, allocations: 49.61 kB / 417.7 MB, free: 9.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3325, allocations: 330.8 kB / 418 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.3327, allocations: 55.97 kB / 418.1 MB, free: 9.098 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002059/0.3329, allocations: 165.7 kB / 418.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003379/0.3332, allocations: 233.5 kB / 418.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3333, allocations: 0 / 418.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004389/0.3337, allocations: 257.3 kB / 418.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.3337, allocations: 14.91 kB / 418.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.3337, allocations: 7.938 kB / 418.7 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.3338, allocations: 4 kB / 418.7 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002565/0.334, allocations: 67.84 kB / 418.8 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.334, allocations: 8 kB / 418.8 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001415/0.3342, allocations: 31.92 kB / 418.8 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.3342, allocations: 20 kB / 418.8 MB, free: 8.203 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.0001106/0.3343, allocations: 137.9 kB / 419 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.184e-05/0.3344, allocations: 23.75 kB / 419 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.969e-05/0.3345, allocations: 28.86 kB / 419 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3345, allocations: 4 kB / 419 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3345, allocations: 0 / 419 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.3345, allocations: 0 / 419 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004312/0.335, allocations: 269.5 kB / 419.3 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.335, allocations: 4 kB / 419.3 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002642/0.3353, allocations: 56.66 kB / 419.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.3353, allocations: 7.938 kB / 419.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.3353, allocations: 4 kB / 419.4 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3353, allocations: 0 / 419.4 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3353, allocations: 4 kB / 419.4 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005843/0.3359, allocations: 0.5244 MB / 419.9 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.505e-05/0.336, allocations: 100.8 kB / 420 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.983e-05/0.336, allocations: 8 kB / 420 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.3362, allocations: 11.98 kB / 420 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.219e-05/0.3363, allocations: 7.984 kB / 420 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.3363, allocations: 4 kB / 420 MB, free: 6.922 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001098/0.3364, allocations: 148.2 kB / 420.2 MB, free: 6.777 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3364, allocations: 0 / 420.2 MB, free: 6.777 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004058/0.3368, allocations: 59.84 kB / 420.2 MB, free: 6.719 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.00011/0.3369, allocations: 109.4 kB / 420.3 MB, free: 6.605 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00037/0.3373, allocations: 151.7 kB / 420.5 MB, free: 6.457 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3373, allocations: 0.75 kB / 420.5 MB, free: 6.457 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.3375, allocations: 63.91 kB / 420.5 MB, free: 6.395 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006738/0.3381, allocations: 67.61 kB / 420.6 MB, free: 6.332 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.3396, allocations: 0.856 MB / 421.5 MB, free: 5.434 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.3399, allocations: 0.744 MB / 422.2 MB, free: 4.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.13e-05/0.34, allocations: 27.38 kB / 422.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.34, allocations: 0 / 422.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of Templates: time 0.004768/0.3448, allocations: 2.844 MB / 425.1 MB, free: 1.793 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)