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.001448/0.001449, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001654/0.001654, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.9 MB, free: 9.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 63.72 kB / 306.9 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09626/0.09744, allocations: 50.54 MB / 357.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003359/0.1008, allocations: 2.324 MB / 359.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.1022, allocations: 0.7596 MB / 360.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.1023, allocations: 4 kB / 360.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.1025, allocations: 23.78 kB / 360.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002608/0.1028, allocations: 71.44 kB / 360.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002955/0.1031, allocations: 99.84 kB / 360.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002664/0.1034, allocations: 282.7 kB / 361 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.1035, allocations: 60.69 kB / 361 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.1037, allocations: 99.52 kB / 361.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.1038, allocations: 115.5 kB / 361.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.047e-05/0.1038, allocations: 12 kB / 361.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.858e-05/0.1039, allocations: 12 kB / 361.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.336e-05/0.1039, allocations: 47.77 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.1041, allocations: 119.3 kB / 361.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001943/0.1043, allocations: 187.8 kB / 361.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.1043, allocations: 4 kB / 361.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1043, allocations: 0 / 361.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.279e-06/0.1043, allocations: 0 / 361.6 MB, free: 10.06 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.0007684/0.1051, allocations: 0.5246 MB / 362.2 MB, free: 9.488 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.1051, allocations: 8.031 kB / 362.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.126e-05/0.1052, allocations: 28.56 kB / 362.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002672/0.1055, allocations: 251.9 kB / 362.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.1055, allocations: 16.81 kB / 362.5 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/0.1055, allocations: 32.28 kB / 362.5 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004017/0.1059, allocations: 234.9 kB / 362.7 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.106, allocations: 4 kB / 362.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.023e-05/0.106, allocations: 4 kB / 362.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.106, allocations: 11.94 kB / 362.7 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003245/0.1063, allocations: 151.8 kB / 362.9 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.1077, allocations: 1.056 MB / 363.9 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004226/0.1081, allocations: 214.3 kB / 364.1 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.1083, allocations: 67.48 kB / 364.2 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.1083, allocations: 4 kB / 364.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.1083, allocations: 34.5 kB / 364.2 MB, free: 7.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.953e-06/0.1083, allocations: 4 kB / 364.3 MB, free: 7.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005483/0.1089, allocations: 198 kB / 364.4 MB, free: 6.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/0.109, allocations: 136.4 kB / 364.6 MB, free: 6.816 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.1091, allocations: 186.6 kB / 364.8 MB, free: 6.621 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.1092, allocations: 33.7 kB / 364.8 MB, free: 6.582 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.807e-05/0.1092, allocations: 163.8 kB / 365 MB, free: 6.418 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.552e-05/0.1093, allocations: 71 kB / 365 MB, free: 6.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.019e-05/0.1094, allocations: 49.7 kB / 365.1 MB, free: 6.293 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1095, allocations: 330.8 kB / 365.4 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.1096, allocations: 59.95 kB / 365.5 MB, free: 5.902 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001908/0.1098, allocations: 157.7 kB / 365.6 MB, free: 5.699 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.1102, allocations: 229.5 kB / 365.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.1102, allocations: 3.938 kB / 365.8 MB, free: 5.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004496/0.1107, allocations: 257.4 kB / 366.1 MB, free: 5.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.1107, allocations: 16 kB / 366.1 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.1107, allocations: 7.984 kB / 366.1 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.1107, allocations: 4 kB / 366.1 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.111, allocations: 63.91 kB / 366.2 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.111, allocations: 11.94 kB / 366.2 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.1112, allocations: 31.67 kB / 366.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.1112, allocations: 16 kB / 366.2 MB, free: 5.016 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.0001155/0.1113, allocations: 138.2 kB / 366.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-05/0.1114, allocations: 27.75 kB / 366.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.797e-05/0.1115, allocations: 20.92 kB / 366.4 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1115, allocations: 4 kB / 366.4 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.1115, allocations: 0 / 366.4 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1115, allocations: 0 / 366.4 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004203/0.1119, allocations: 277.4 kB / 366.7 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1119, allocations: 4 kB / 366.7 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002741/0.1122, allocations: 51.91 kB / 366.7 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1122, allocations: 3.938 kB / 366.8 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.1122, allocations: 8 kB / 366.8 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.1122, allocations: 4 kB / 366.8 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.1123, allocations: 4 kB / 366.8 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005403/0.1128, allocations: 0.5204 MB / 367.3 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.548e-05/0.1129, allocations: 96.8 kB / 367.4 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.159e-05/0.1129, allocations: 8 kB / 367.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.1131, allocations: 11.98 kB / 367.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.789e-05/0.1132, allocations: 7.984 kB / 367.4 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.1132, allocations: 4.25 kB / 367.4 MB, free: 3.742 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001061/0.1133, allocations: 148.9 kB / 367.6 MB, free: 3.598 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1133, allocations: 0 / 367.6 MB, free: 3.598 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004303/0.1137, allocations: 59.84 kB / 367.6 MB, free: 3.539 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.0001146/0.1139, allocations: 103.2 kB / 367.7 MB, free: 3.426 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003594/0.1142, allocations: 159.7 kB / 367.9 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1142, allocations: 7.875 kB / 367.9 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.1144, allocations: 63.91 kB / 367.9 MB, free: 3.199 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007168/0.1151, allocations: 57.03 kB / 368 MB, free: 3.145 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.1165, allocations: 0.9386 MB / 368.9 MB, free: 2.168 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.1168, allocations: 0.7443 MB / 369.7 MB, free: 1.398 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.325e-05/0.1169, allocations: 27.44 kB / 369.7 MB, free: 1.371 MB / 302.1 MB Notification: Performance of SimCode: time 6.52e-07/0.1169, allocations: 0 / 369.7 MB, free: 1.371 MB / 302.1 MB Notification: Performance of Templates: time 0.1505/0.2674, allocations: 2.777 MB / 372.5 MB, free: 19.4 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)