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.0009907/0.0009908, allocations: 90.67 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001118/0.001118, allocations: 201.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.7 MB / 247.5 MB, free: 11.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002369/0.0002369, allocations: 8 kB / 308.4 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09386/0.09412, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002429/0.0966, allocations: 1.969 MB / 361.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.0981, allocations: 0.7402 MB / 362.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002185/0.09835, allocations: 7.938 kB / 362.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.09851, allocations: 27.72 kB / 362.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003503/0.09887, allocations: 71.45 kB / 362.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003721/0.09925, allocations: 103.8 kB / 362.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003485/0.09961, allocations: 278.7 kB / 363.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.09978, allocations: 64.67 kB / 363.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.09996, allocations: 95.58 kB / 363.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/0.1001, allocations: 111.4 kB / 363.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.723e-05/0.1002, allocations: 12 kB / 363.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.489e-05/0.1002, allocations: 12 kB / 363.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.622e-05/0.1003, allocations: 43.83 kB / 363.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.1004, allocations: 141 kB / 363.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.1006, allocations: 187.6 kB / 363.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1006, allocations: 0 / 363.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1006, allocations: 4 kB / 363.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.639e-06/0.1007, allocations: 0 / 363.8 MB, free: 9.426 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.0007584/0.1014, allocations: 499.1 kB / 364.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.1015, allocations: 8.031 kB / 364.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.925e-05/0.1016, allocations: 24.66 kB / 364.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.1019, allocations: 255.7 kB / 364.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.1019, allocations: 16.81 kB / 364.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.179e-05/0.102, allocations: 32.27 kB / 364.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004395/0.1024, allocations: 235 kB / 364.8 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.1025, allocations: 4 kB / 364.8 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.417e-05/0.1025, allocations: 8 kB / 364.8 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.1025, allocations: 11.94 kB / 364.8 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003333/0.1028, allocations: 147.9 kB / 365 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001388/0.1042, allocations: 1.056 MB / 366 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004506/0.1047, allocations: 218.4 kB / 366.2 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.1049, allocations: 79.42 kB / 366.3 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.1049, allocations: 4 kB / 366.3 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.1049, allocations: 34.56 kB / 366.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.044e-06/0.1049, allocations: 0 / 366.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005786/0.1055, allocations: 209.2 kB / 366.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.508e-05/0.1056, allocations: 132.5 kB / 366.7 MB, free: 6.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.1058, allocations: 194.6 kB / 366.9 MB, free: 5.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.1058, allocations: 25.7 kB / 366.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.1059, allocations: 163.8 kB / 367.1 MB, free: 5.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.209e-05/0.106, allocations: 67.09 kB / 367.1 MB, free: 5.734 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.98e-05/0.106, allocations: 29.7 kB / 367.2 MB, free: 5.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.1061, allocations: 326.8 kB / 367.5 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.1063, allocations: 59.97 kB / 367.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.1065, allocations: 169.6 kB / 367.7 MB, free: 5.098 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003585/0.1069, allocations: 241.5 kB / 367.9 MB, free: 4.812 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1069, allocations: 0 / 367.9 MB, free: 4.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000479/0.1074, allocations: 269 kB / 368.2 MB, free: 4.543 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.1074, allocations: 7.938 kB / 368.2 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.1074, allocations: 7.938 kB / 368.2 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.1074, allocations: 8 kB / 368.2 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002661/0.1077, allocations: 68.28 kB / 368.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.1077, allocations: 7.984 kB / 368.3 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.1079, allocations: 27.78 kB / 368.3 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.1079, allocations: 16 kB / 368.3 MB, free: 4.402 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.0001228/0.1081, allocations: 138.2 kB / 368.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.064e-05/0.1082, allocations: 31.66 kB / 368.5 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.505e-05/0.1082, allocations: 20.92 kB / 368.5 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1082, allocations: 4.75 kB / 368.5 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.1082, allocations: 4 kB / 368.5 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.1083, allocations: 0 / 368.5 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004463/0.1087, allocations: 277.5 kB / 368.8 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1087, allocations: 0 / 368.8 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002708/0.109, allocations: 52.22 kB / 368.9 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.296e-06/0.109, allocations: 7.938 kB / 368.9 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.109, allocations: 8 kB / 368.9 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.109, allocations: 4 kB / 368.9 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.109, allocations: 3.938 kB / 368.9 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005793/0.1096, allocations: 0.5283 MB / 369.4 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.299e-05/0.1097, allocations: 100.9 kB / 369.5 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.181e-05/0.1098, allocations: 7.984 kB / 369.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/0.11, allocations: 12 kB / 369.5 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.845e-05/0.11, allocations: 7.984 kB / 369.5 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.11, allocations: 4 kB / 369.5 MB, free: 3.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001153/0.1102, allocations: 148.9 kB / 369.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1102, allocations: 3.938 kB / 369.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004409/0.1106, allocations: 59.84 kB / 369.7 MB, free: 2.902 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.0001281/0.1108, allocations: 103.2 kB / 369.8 MB, free: 2.789 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000388/0.1112, allocations: 159.7 kB / 370 MB, free: 2.633 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1112, allocations: 0.75 kB / 370 MB, free: 2.633 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000153/0.1113, allocations: 71.91 kB / 370.1 MB, free: 2.562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000734/0.1121, allocations: 63.33 kB / 370.1 MB, free: 2.504 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.1136, allocations: 1.065 MB / 371.2 MB, free: 1.395 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.1139, allocations: 0.7443 MB / 371.9 MB, free: 0.625 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.698e-05/0.114, allocations: 23.44 kB / 372 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.114, allocations: 0 / 372 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of Templates: time 0.1669/0.2808, allocations: 2.743 MB / 374.7 MB, free: 17.87 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)