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.001582/0.001582, allocations: 111.4 kB / 17.98 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001644/0.001644, allocations: 205.8 kB / 18.92 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 247.1 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 59.75 kB / 307.1 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1078, allocations: 50.54 MB / 357.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.004181/0.112, allocations: 2.316 MB / 360 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.1136, allocations: 0.7557 MB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002024/0.1139, allocations: 4 kB / 360.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001719/0.1141, allocations: 27.78 kB / 360.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003534/0.1144, allocations: 71.45 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003954/0.1148, allocations: 99.81 kB / 360.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004528/0.1153, allocations: 294.7 kB / 361.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.1155, allocations: 76.33 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.1157, allocations: 103.5 kB / 361.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.1159, allocations: 123.5 kB / 361.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.404e-05/0.116, allocations: 20 kB / 361.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.876e-05/0.116, allocations: 24 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.574e-05/0.1161, allocations: 51.77 kB / 361.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.1162, allocations: 123.3 kB / 361.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.1165, allocations: 191.8 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1165, allocations: 0 / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1165, allocations: 0 / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1165, allocations: 0 / 361.9 MB, free: 10.11 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.0009161/0.1175, allocations: 0.5223 MB / 362.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.1175, allocations: 16.03 kB / 362.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.667e-05/0.1176, allocations: 28.56 kB / 362.5 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/0.118, allocations: 259.8 kB / 362.8 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.118, allocations: 12.81 kB / 362.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.735e-05/0.1181, allocations: 28.28 kB / 362.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005206/0.1186, allocations: 234.9 kB / 363 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.1186, allocations: 4 kB / 363 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.1186, allocations: 12 kB / 363 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.1187, allocations: 8 kB / 363 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003467/0.119, allocations: 139.8 kB / 363.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.1206, allocations: 1.052 MB / 364.2 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004631/0.121, allocations: 218.3 kB / 364.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.1212, allocations: 63.5 kB / 364.5 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.1212, allocations: 4 kB / 364.5 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.1213, allocations: 46.48 kB / 364.6 MB, free: 7.223 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.533e-06/0.1213, allocations: 0 / 364.6 MB, free: 7.223 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005918/0.1219, allocations: 189.3 kB / 364.7 MB, free: 7.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.888e-05/0.122, allocations: 136.5 kB / 364.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.1222, allocations: 194.6 kB / 365.1 MB, free: 6.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.1222, allocations: 33.64 kB / 365.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.1223, allocations: 163.8 kB / 365.3 MB, free: 6.461 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.511e-05/0.1224, allocations: 67 kB / 365.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.331e-05/0.1225, allocations: 53.7 kB / 365.4 MB, free: 6.336 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.1227, allocations: 330.8 kB / 365.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.1228, allocations: 59.95 kB / 365.8 MB, free: 5.945 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002236/0.1231, allocations: 157.7 kB / 365.9 MB, free: 5.742 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/0.1235, allocations: 233.5 kB / 366.1 MB, free: 5.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1235, allocations: 0 / 366.1 MB, free: 5.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004775/0.1239, allocations: 253.3 kB / 366.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.124, allocations: 15.06 kB / 366.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.495e-06/0.124, allocations: 4 kB / 366.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.124, allocations: 7.984 kB / 366.4 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002729/0.1243, allocations: 67.91 kB / 366.5 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.1243, allocations: 7.938 kB / 366.5 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.1245, allocations: 32.03 kB / 366.5 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.244e-05/0.1245, allocations: 15.98 kB / 366.5 MB, free: 5.066 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.0001321/0.1246, allocations: 138.3 kB / 366.7 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.592e-05/0.1247, allocations: 19.75 kB / 366.7 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.494e-05/0.1248, allocations: 28.92 kB / 366.7 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.1248, allocations: 0 / 366.7 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.1248, allocations: 4 kB / 366.7 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1248, allocations: 0.75 kB / 366.7 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000461/0.1253, allocations: 269.4 kB / 367 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1253, allocations: 0 / 367 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.1256, allocations: 63.84 kB / 367 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.83e-06/0.1256, allocations: 3.938 kB / 367.1 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.1256, allocations: 11.98 kB / 367.1 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1256, allocations: 0 / 367.1 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1257, allocations: 0 / 367.1 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006174/0.1263, allocations: 0.5353 MB / 367.6 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.972e-05/0.1264, allocations: 96.84 kB / 367.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.263e-05/0.1264, allocations: 8 kB / 367.7 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.1266, allocations: 7.938 kB / 367.7 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.113e-05/0.1267, allocations: 15.97 kB / 367.7 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.1267, allocations: 4 kB / 367.7 MB, free: 3.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001274/0.1268, allocations: 140.9 kB / 367.9 MB, free: 3.645 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1268, allocations: 8 kB / 367.9 MB, free: 3.637 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004356/0.1273, allocations: 59.84 kB / 367.9 MB, free: 3.578 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.000126/0.1274, allocations: 99.25 kB / 368 MB, free: 3.469 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000398/0.1278, allocations: 171.4 kB / 368.2 MB, free: 3.305 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1278, allocations: 0 / 368.2 MB, free: 3.305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.128, allocations: 67.97 kB / 368.3 MB, free: 3.238 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007579/0.1288, allocations: 62.7 kB / 368.3 MB, free: 3.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.1303, allocations: 0.9336 MB / 369.3 MB, free: 2.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.1307, allocations: 0.748 MB / 370 MB, free: 1.434 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.689e-05/0.1308, allocations: 27.42 kB / 370 MB, free: 1.406 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1308, allocations: 0 / 370 MB, free: 1.406 MB / 302.1 MB Notification: Performance of Templates: time 0.1571/0.2879, allocations: 2.787 MB / 372.8 MB, free: 18.96 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)