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.001116/0.001116, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 65.86 kB / 306.9 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09518/0.09649, allocations: 50.54 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003478/0.1, allocations: 2.27 MB / 359.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.1014, allocations: 0.7595 MB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.1016, allocations: 8 kB / 360.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.1018, allocations: 35.59 kB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002973/0.1021, allocations: 83.33 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003474/0.1024, allocations: 115.7 kB / 360.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003087/0.1027, allocations: 290.7 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.1029, allocations: 64.34 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.103, allocations: 111.6 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.1032, allocations: 123.4 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.377e-05/0.1033, allocations: 20 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.912e-05/0.1033, allocations: 20 kB / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.363e-05/0.1033, allocations: 47.83 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.1035, allocations: 135.3 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002587/0.1037, allocations: 259.3 kB / 361.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1037, allocations: 0 / 361.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1038, allocations: 0 / 361.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.196e-06/0.1038, allocations: 0 / 361.8 MB, free: 9.773 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.0007822/0.1046, allocations: 0.5146 MB / 362.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1046, allocations: 12.03 kB / 362.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.435e-05/0.1047, allocations: 28.56 kB / 362.3 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.105, allocations: 259.7 kB / 362.6 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.105, allocations: 12.81 kB / 362.6 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.877e-05/0.105, allocations: 28.28 kB / 362.6 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004162/0.1055, allocations: 243 kB / 362.9 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.734e-05/0.1055, allocations: 7.938 kB / 362.9 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.383e-05/0.1055, allocations: 8 kB / 362.9 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.1056, allocations: 8 kB / 362.9 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003236/0.1059, allocations: 131.9 kB / 363 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.1072, allocations: 1.06 MB / 364.1 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004326/0.1076, allocations: 206.4 kB / 364.3 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.1078, allocations: 75.42 kB / 364.4 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.1078, allocations: 4 kB / 364.4 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.1078, allocations: 34.56 kB / 364.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.1079, allocations: 0 / 364.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005583/0.1084, allocations: 197.2 kB / 364.6 MB, free: 6.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.697e-05/0.1085, allocations: 136.5 kB / 364.7 MB, free: 6.543 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.1087, allocations: 190.6 kB / 364.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.1087, allocations: 25.7 kB / 364.9 MB, free: 6.312 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.263e-05/0.1088, allocations: 171.8 kB / 365.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.812e-05/0.1089, allocations: 67 kB / 365.2 MB, free: 6.074 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.825e-05/0.1089, allocations: 49.7 kB / 365.2 MB, free: 6.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1091, allocations: 330.8 kB / 365.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000173/0.1093, allocations: 55.95 kB / 365.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.1095, allocations: 172.3 kB / 365.8 MB, free: 5.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.1098, allocations: 237.5 kB / 366 MB, free: 5.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1098, allocations: 0 / 366 MB, free: 5.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004608/0.1103, allocations: 257.1 kB / 366.2 MB, free: 4.879 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.1103, allocations: 14.91 kB / 366.3 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1103, allocations: 4 kB / 366.3 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.1104, allocations: 4.375 kB / 366.3 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.1106, allocations: 71.91 kB / 366.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.1107, allocations: 7.984 kB / 366.3 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.1108, allocations: 31.69 kB / 366.4 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/0.1108, allocations: 8 kB / 366.4 MB, free: 4.742 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.0001206/0.111, allocations: 145.7 kB / 366.5 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.091e-05/0.1111, allocations: 20.5 kB / 366.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.046e-05/0.1111, allocations: 24.92 kB / 366.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1111, allocations: 0 / 366.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.423e-06/0.1111, allocations: 8 kB / 366.6 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.1112, allocations: 256 / 366.6 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004394/0.1116, allocations: 277.4 kB / 366.8 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1116, allocations: 4 kB / 366.9 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002592/0.1119, allocations: 55.91 kB / 366.9 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.1119, allocations: 7.922 kB / 366.9 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.1119, allocations: 8 kB / 366.9 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.1119, allocations: 0 / 366.9 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1119, allocations: 3.938 kB / 366.9 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005604/0.1125, allocations: 0.5244 MB / 367.4 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-05/0.1126, allocations: 92.86 kB / 367.5 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.408e-05/0.1126, allocations: 11.98 kB / 367.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.1128, allocations: 4 kB / 367.6 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.369e-05/0.1129, allocations: 15.98 kB / 367.6 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-06/0.1129, allocations: 7.938 kB / 367.6 MB, free: 3.449 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001151/0.113, allocations: 140.9 kB / 367.7 MB, free: 3.312 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.113, allocations: 4 kB / 367.7 MB, free: 3.309 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004331/0.1135, allocations: 59.84 kB / 367.8 MB, free: 3.25 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.000122/0.1136, allocations: 103.2 kB / 367.9 MB, free: 3.137 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003919/0.114, allocations: 167.8 kB / 368 MB, free: 2.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.114, allocations: 0 / 368 MB, free: 2.973 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.1141, allocations: 67.89 kB / 368.1 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007088/0.1149, allocations: 61.7 kB / 368.2 MB, free: 2.852 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.1162, allocations: 0.816 MB / 369 MB, free: 2.004 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.1166, allocations: 0.748 MB / 369.7 MB, free: 1.227 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.842e-05/0.1167, allocations: 30.27 kB / 369.8 MB, free: 1.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.12e-05/0.1168, allocations: 23.44 kB / 369.8 MB, free: 1.176 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1168, allocations: 3.938 kB / 369.8 MB, free: 1.172 MB / 302.1 MB Notification: Performance of Templates: time 0.1441/0.2609, allocations: 2.218 MB / 372 MB, free: 19.11 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)