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.00114/0.00114, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001562/0.001563, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.3 MB, free: 9.078 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 55.84 kB / 306.2 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1187, allocations: 50.53 MB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.00339/0.1221, allocations: 2.331 MB / 359.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.1234, allocations: 0.7518 MB / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.1236, allocations: 4 kB / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.1238, allocations: 31.77 kB / 359.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002296/0.124, allocations: 75.44 kB / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002574/0.1243, allocations: 87.86 kB / 360.1 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002862/0.1245, allocations: 286.7 kB / 360.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.1247, allocations: 64.67 kB / 360.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.1248, allocations: 99.52 kB / 360.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.125, allocations: 111.5 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.296e-05/0.1251, allocations: 16 kB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.046e-05/0.1251, allocations: 12 kB / 360.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.037e-05/0.1252, allocations: 51.77 kB / 360.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.1253, allocations: 115.3 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002376/0.1255, allocations: 243.3 kB / 361 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.1256, allocations: 8 kB / 361 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.1256, allocations: 4 kB / 361 MB, free: 10.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1256, allocations: 0 / 361 MB, free: 10.01 MB / 302.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.0008285/0.1264, allocations: 0.5146 MB / 361.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.1265, allocations: 11.97 kB / 361.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.678e-05/0.1265, allocations: 28.56 kB / 361.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002757/0.1268, allocations: 255.9 kB / 361.9 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.1268, allocations: 20.75 kB / 361.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.487e-05/0.1269, allocations: 32.28 kB / 361.9 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004167/0.1273, allocations: 234.9 kB / 362.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.1273, allocations: 0 / 362.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/0.1274, allocations: 12 kB / 362.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1274, allocations: 4 kB / 362.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003342/0.1277, allocations: 143.8 kB / 362.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.1291, allocations: 1.06 MB / 363.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004545/0.1296, allocations: 210.4 kB / 363.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.1297, allocations: 63.48 kB / 363.6 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.1297, allocations: 4 kB / 363.6 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.1298, allocations: 42.5 kB / 363.7 MB, free: 7.137 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.1298, allocations: 4 kB / 363.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005865/0.1304, allocations: 194 kB / 363.9 MB, free: 6.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.1305, allocations: 132.5 kB / 364 MB, free: 6.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.1306, allocations: 190.6 kB / 364.2 MB, free: 6.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.1307, allocations: 29.7 kB / 364.2 MB, free: 6.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.1308, allocations: 171.8 kB / 364.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.928e-05/0.1308, allocations: 63.02 kB / 364.4 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.716e-05/0.1309, allocations: 53.7 kB / 364.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.131, allocations: 330.8 kB / 364.8 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.1312, allocations: 59.95 kB / 364.9 MB, free: 5.859 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.1314, allocations: 161.6 kB / 365 MB, free: 5.652 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003463/0.1318, allocations: 229.5 kB / 365.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1318, allocations: 0 / 365.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004523/0.1322, allocations: 253.7 kB / 365.5 MB, free: 5.125 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.1323, allocations: 15.97 kB / 365.5 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1323, allocations: 7.984 kB / 365.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.1323, allocations: 8 kB / 365.5 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/0.1326, allocations: 67.84 kB / 365.6 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.1326, allocations: 8 kB / 365.6 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.1327, allocations: 31.67 kB / 365.6 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.395e-05/0.1328, allocations: 19.94 kB / 365.7 MB, free: 4.969 MB / 302.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.0001157/0.1329, allocations: 134.2 kB / 365.8 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.093e-05/0.133, allocations: 27.75 kB / 365.8 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.169e-05/0.1331, allocations: 24.92 kB / 365.8 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.1331, allocations: 7.984 kB / 365.8 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1331, allocations: 0 / 365.8 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1331, allocations: 0 / 365.8 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000438/0.1335, allocations: 273.4 kB / 366.1 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1335, allocations: 3.984 kB / 366.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002898/0.1338, allocations: 55.91 kB / 366.2 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1338, allocations: 7.875 kB / 366.2 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.1339, allocations: 4 kB / 366.2 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.1339, allocations: 4 kB / 366.2 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1339, allocations: 4 kB / 366.2 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000597/0.1345, allocations: 0.5229 MB / 366.7 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.828e-05/0.1346, allocations: 92.86 kB / 366.8 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.454e-05/0.1346, allocations: 12 kB / 366.8 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.1348, allocations: 7.984 kB / 366.8 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.596e-05/0.1349, allocations: 11.98 kB / 366.8 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.928e-06/0.1349, allocations: 8 kB / 366.8 MB, free: 3.688 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000111/0.135, allocations: 140.9 kB / 367 MB, free: 3.551 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.135, allocations: 0 / 367 MB, free: 3.551 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004454/0.1355, allocations: 63.84 kB / 367 MB, free: 3.488 MB / 302.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.0001222/0.1356, allocations: 113.8 kB / 367.1 MB, free: 3.367 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003698/0.136, allocations: 155.7 kB / 367.3 MB, free: 3.215 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.136, allocations: 0 / 367.3 MB, free: 3.215 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001497/0.1362, allocations: 63.91 kB / 367.4 MB, free: 3.152 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007099/0.1369, allocations: 57.03 kB / 367.4 MB, free: 3.102 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.1384, allocations: 0.9141 MB / 368.3 MB, free: 2.152 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003046/0.1387, allocations: 0.7365 MB / 369.1 MB, free: 1.391 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.1388, allocations: 34.27 kB / 369.1 MB, free: 1.359 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.268e-05/0.1389, allocations: 19.44 kB / 369.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1389, allocations: 0 / 369.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of Templates: time 0.1544/0.2933, allocations: 2.064 MB / 371.2 MB, free: 18.88 MB / 302.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)