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.0009402/0.0009401, allocations: 95.77 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009149/0.000915, allocations: 205.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002152/0.0002152, allocations: 4 kB / 306.6 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1005, allocations: 51.5 MB / 358.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002081/0.1026, allocations: 1.798 MB / 359.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1037, allocations: 0.7368 MB / 360.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.38e-05/0.1038, allocations: 4 kB / 360.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.578e-05/0.1038, allocations: 23.78 kB / 360.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002554/0.1041, allocations: 91.73 kB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002333/0.1043, allocations: 87.77 kB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002549/0.1046, allocations: 207.6 kB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.1048, allocations: 56.7 kB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.1049, allocations: 99.62 kB / 361.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.105, allocations: 107.5 kB / 361.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.105, allocations: 12 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.192e-05/0.1051, allocations: 12 kB / 361.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.353e-05/0.1051, allocations: 39.83 kB / 361.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.37e-05/0.1052, allocations: 65.58 kB / 361.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001579/0.1053, allocations: 183.7 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.1054, allocations: 0 / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1054, allocations: 4 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.89e-06/0.1054, allocations: 0 / 361.6 MB, free: 10.43 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.0006427/0.106, allocations: 0.4935 MB / 362.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.1061, allocations: 8.031 kB / 362.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.06e-05/0.1061, allocations: 23.72 kB / 362.1 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002531/0.1064, allocations: 246.5 kB / 362.3 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.1064, allocations: 20.44 kB / 362.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.165e-05/0.1065, allocations: 31.89 kB / 362.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003823/0.1068, allocations: 230.6 kB / 362.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.1069, allocations: 7.906 kB / 362.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.1069, allocations: 4 kB / 362.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.1069, allocations: 8 kB / 362.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003233/0.1072, allocations: 155.8 kB / 362.8 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.1085, allocations: 1.052 MB / 363.8 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004325/0.109, allocations: 222.6 kB / 364.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.109, allocations: 4 kB / 364.1 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.109, allocations: 38.59 kB / 364.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.282e-06/0.109, allocations: 0 / 364.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005355/0.1096, allocations: 210.1 kB / 364.3 MB, free: 7.445 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.1096, allocations: 136.5 kB / 364.4 MB, free: 7.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.1098, allocations: 188.1 kB / 364.6 MB, free: 7.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.1099, allocations: 29.7 kB / 364.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.556e-05/0.11, allocations: 175.7 kB / 364.8 MB, free: 6.875 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.11, allocations: 59.11 kB / 364.9 MB, free: 6.816 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.04e-05/0.11, allocations: 4 kB / 364.9 MB, free: 6.812 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1101, allocations: 330.8 kB / 365.2 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.1103, allocations: 59.97 kB / 365.3 MB, free: 6.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.1105, allocations: 162.2 kB / 365.4 MB, free: 6.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.1107, allocations: 87.92 kB / 365.5 MB, free: 6.129 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1107, allocations: 0 / 365.5 MB, free: 6.129 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004263/0.1111, allocations: 257.1 kB / 365.8 MB, free: 5.871 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1111, allocations: 8 kB / 365.8 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1111, allocations: 4 kB / 365.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.1112, allocations: 4 kB / 365.8 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000262/0.1114, allocations: 75.83 kB / 365.8 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/0.1114, allocations: 15.94 kB / 365.9 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001476/0.1116, allocations: 28.09 kB / 365.9 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.1116, allocations: 12 kB / 365.9 MB, free: 5.727 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.1117, allocations: 141.8 kB / 366 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.023e-05/0.1118, allocations: 15.81 kB / 366.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.626e-05/0.1119, allocations: 24.88 kB / 366.1 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.1119, allocations: 7.984 kB / 366.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1119, allocations: 3.938 kB / 366.1 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.1119, allocations: 11.94 kB / 366.1 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004183/0.1123, allocations: 269.6 kB / 366.4 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1124, allocations: 4 kB / 366.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.1126, allocations: 59.91 kB / 366.4 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.1126, allocations: 0 / 366.4 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.1127, allocations: 8 kB / 366.4 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.1127, allocations: 3.984 kB / 366.4 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1127, allocations: 0 / 366.4 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005737/0.1132, allocations: 0.5711 MB / 367 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.122e-05/0.1133, allocations: 96.91 kB / 367.1 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.17e-05/0.1134, allocations: 7.953 kB / 367.1 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002395/0.1136, allocations: 8 kB / 367.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.687e-05/0.1137, allocations: 11.97 kB / 367.1 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.1137, allocations: 12 kB / 367.1 MB, free: 4.371 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001064/0.1138, allocations: 139.3 kB / 367.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1138, allocations: 0 / 367.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004287/0.1142, allocations: 55.84 kB / 367.3 MB, free: 4.18 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001063/0.1143, allocations: 111.7 kB / 367.4 MB, free: 4.059 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003379/0.1147, allocations: 155.7 kB / 367.6 MB, free: 3.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1147, allocations: 0.75 kB / 367.6 MB, free: 3.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.1148, allocations: 71.89 kB / 367.7 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000469/0.1153, allocations: 43.97 kB / 367.7 MB, free: 3.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.1167, allocations: 1.013 MB / 368.7 MB, free: 2.742 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.117, allocations: 0.7482 MB / 369.5 MB, free: 1.969 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.813e-05/0.1171, allocations: 30.27 kB / 369.5 MB, free: 1.941 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.889e-05/0.1172, allocations: 23.44 kB / 369.5 MB, free: 1.918 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1172, allocations: 3.938 kB / 369.5 MB, free: 1.914 MB / 302.1 MB Notification: Performance of Templates: time 0.172/0.2892, allocations: 1.982 MB / 371.5 MB, free: 19.05 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)