Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001365/0.001365, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001394/0.001395, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.461/1.461, allocations: 227.7 MB / 247.7 MB, free: 10.38 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 69.84 kB / 307.9 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.105, allocations: 50.53 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003935/0.1089, allocations: 2.278 MB / 360.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.1105, allocations: 0.7596 MB / 361.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.1107, allocations: 7.938 kB / 361.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.1109, allocations: 43.58 kB / 361.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000261/0.1111, allocations: 79.33 kB / 361.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003398/0.1115, allocations: 107.7 kB / 361.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003557/0.1119, allocations: 294.7 kB / 362 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.112, allocations: 68.34 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.1122, allocations: 107.6 kB / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.1123, allocations: 119.5 kB / 362.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.397e-05/0.1124, allocations: 20 kB / 362.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.53e-05/0.1124, allocations: 20 kB / 362.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.224e-05/0.1125, allocations: 51.72 kB / 362.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.1126, allocations: 127.3 kB / 362.5 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002978/0.1129, allocations: 259.3 kB / 362.7 MB, free: 9.613 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1129, allocations: 0 / 362.7 MB, free: 9.613 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.113, allocations: 0 / 362.7 MB, free: 9.613 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.113, allocations: 4 kB / 362.7 MB, free: 9.609 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.000869/0.1138, allocations: 0.5248 MB / 363.3 MB, free: 9.039 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.1139, allocations: 12.03 kB / 363.3 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.207e-05/0.114, allocations: 28.56 kB / 363.3 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003199/0.1143, allocations: 247.9 kB / 363.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.1143, allocations: 12.81 kB / 363.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.116e-05/0.1144, allocations: 28.28 kB / 363.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004504/0.1148, allocations: 246.9 kB / 363.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.1149, allocations: 4 kB / 363.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.1149, allocations: 8 kB / 363.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.1149, allocations: 4 kB / 363.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003474/0.1153, allocations: 139.8 kB / 364 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001514/0.1168, allocations: 1.068 MB / 365.1 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004728/0.1173, allocations: 206.4 kB / 365.3 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.1174, allocations: 67.5 kB / 365.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.1175, allocations: 0 / 365.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.1175, allocations: 46.48 kB / 365.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.152e-06/0.1175, allocations: 0 / 365.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005974/0.1181, allocations: 197.2 kB / 365.6 MB, free: 6.535 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.253e-05/0.1182, allocations: 132.5 kB / 365.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.1185, allocations: 198.9 kB / 365.9 MB, free: 6.168 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.1185, allocations: 25.7 kB / 365.9 MB, free: 6.137 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.1186, allocations: 163.8 kB / 366.1 MB, free: 5.973 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.568e-05/0.1187, allocations: 70.98 kB / 366.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.384e-05/0.1188, allocations: 53.7 kB / 366.2 MB, free: 5.844 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.119, allocations: 334.8 kB / 366.5 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.1191, allocations: 55.95 kB / 366.6 MB, free: 5.453 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002349/0.1194, allocations: 165.6 kB / 366.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004125/0.1198, allocations: 237.5 kB / 367 MB, free: 4.961 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1198, allocations: 4 kB / 367 MB, free: 4.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004954/0.1203, allocations: 245.9 kB / 367.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.1203, allocations: 11.94 kB / 367.2 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.1204, allocations: 4.375 kB / 367.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.1204, allocations: 11.98 kB / 367.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002683/0.1207, allocations: 71.84 kB / 367.3 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.1207, allocations: 4 kB / 367.3 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.1209, allocations: 31.69 kB / 367.3 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.1209, allocations: 15.92 kB / 367.4 MB, free: 4.562 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.0001453/0.121, allocations: 137.8 kB / 367.5 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.35e-05/0.1211, allocations: 19.75 kB / 367.5 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.262e-05/0.1212, allocations: 28.92 kB / 367.5 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1212, allocations: 4 kB / 367.5 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.1212, allocations: 7.984 kB / 367.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1212, allocations: 0 / 367.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005173/0.1218, allocations: 269.4 kB / 367.8 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1218, allocations: 0 / 367.8 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.1221, allocations: 51.91 kB / 367.9 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.802e-06/0.1221, allocations: 8.188 kB / 367.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.346e-05/0.1221, allocations: 11.98 kB / 367.9 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.1221, allocations: 4 kB / 367.9 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1221, allocations: 0 / 367.9 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006642/0.1228, allocations: 0.5229 MB / 368.4 MB, free: 3.434 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.356e-05/0.1229, allocations: 100.8 kB / 368.5 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.1229, allocations: 8 kB / 368.5 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.1231, allocations: 0 / 368.5 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.041e-05/0.1232, allocations: 23.97 kB / 368.5 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.1232, allocations: 4 kB / 368.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001368/0.1234, allocations: 140.2 kB / 368.7 MB, free: 3.145 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1234, allocations: 0 / 368.7 MB, free: 3.145 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000459/0.1238, allocations: 63.84 kB / 368.7 MB, free: 3.082 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.0001434/0.124, allocations: 107.1 kB / 368.8 MB, free: 2.965 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004085/0.1244, allocations: 163.7 kB / 369 MB, free: 2.805 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1244, allocations: 0 / 369 MB, free: 2.805 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.1246, allocations: 63.91 kB / 369.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007574/0.1254, allocations: 56.03 kB / 369.1 MB, free: 2.691 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.1269, allocations: 0.856 MB / 370 MB, free: 1.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/0.1274, allocations: 0.744 MB / 370.7 MB, free: 1.023 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.8e-05/0.1275, allocations: 27.42 kB / 370.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1275, allocations: 0 / 370.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of Templates: time 0.1573/0.2848, allocations: 2.794 MB / 373.5 MB, free: 19.09 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)