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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001303/0.001303, 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.001341/0.001342, allocations: 210.4 kB / 18.58 MB, free: 4.578 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.489/1.489, allocations: 227.7 MB / 247 MB, free: 10.36 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.001953/0.001953, allocations: 65.27 kB / 307.3 MB, free: 416 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.102, allocations: 50.54 MB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003851/0.1059, allocations: 2.28 MB / 360.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.1074, allocations: 0.7634 MB / 360.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.1075, allocations: 4 kB / 360.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000173/0.1077, allocations: 35.59 kB / 360.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002665/0.108, allocations: 87.3 kB / 361 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003403/0.1083, allocations: 111.8 kB / 361.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000335/0.1087, allocations: 290.7 kB / 361.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.1089, allocations: 66.59 kB / 361.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.109, allocations: 107.6 kB / 361.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.1092, allocations: 115.4 kB / 361.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.786e-05/0.1092, allocations: 20 kB / 361.7 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.481e-05/0.1093, allocations: 20 kB / 361.7 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.19e-05/0.1094, allocations: 55.81 kB / 361.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.1095, allocations: 131.3 kB / 361.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003001/0.1098, allocations: 263.3 kB / 362.2 MB, free: 9.496 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1098, allocations: 0 / 362.2 MB, free: 9.496 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1098, allocations: 0 / 362.2 MB, free: 9.496 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.1098, allocations: 0 / 362.2 MB, free: 9.496 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.0008455/0.1107, allocations: 0.5147 MB / 362.7 MB, free: 8.934 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.1107, allocations: 8.031 kB / 362.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.001e-05/0.1108, allocations: 58.73 kB / 362.8 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.048e-05/0.1109, allocations: 32.56 kB / 362.8 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.1112, allocations: 255.8 kB / 363.1 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.1112, allocations: 16.81 kB / 363.1 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.699e-05/0.1113, allocations: 28.28 kB / 363.1 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004322/0.1117, allocations: 230.8 kB / 363.3 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.1118, allocations: 7.938 kB / 363.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.481e-05/0.1118, allocations: 8 kB / 363.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.1118, allocations: 8 kB / 363.3 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000339/0.1122, allocations: 135.9 kB / 363.5 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.1137, allocations: 1.06 MB / 364.5 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004612/0.1141, allocations: 210.4 kB / 364.7 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001562/0.1143, allocations: 67.44 kB / 364.8 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.1143, allocations: 15.91 kB / 364.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.623e-05/0.1144, allocations: 38.5 kB / 364.9 MB, free: 6.559 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.014e-06/0.1144, allocations: 0 / 364.9 MB, free: 6.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005984/0.115, allocations: 198 kB / 365.1 MB, free: 6.359 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.26e-05/0.1151, allocations: 132.5 kB / 365.2 MB, free: 6.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.1153, allocations: 194.5 kB / 365.4 MB, free: 5.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.1154, allocations: 29.7 kB / 365.4 MB, free: 5.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.1155, allocations: 163.9 kB / 365.6 MB, free: 5.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.859e-05/0.1156, allocations: 67.02 kB / 365.6 MB, free: 5.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.1157, allocations: 49.7 kB / 365.7 MB, free: 5.676 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.1159, allocations: 334.8 kB / 366 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.116, allocations: 55.95 kB / 366.1 MB, free: 5.285 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/0.1163, allocations: 165.6 kB / 366.2 MB, free: 5.074 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003952/0.1167, allocations: 237.5 kB / 366.5 MB, free: 4.793 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1167, allocations: 0 / 366.5 MB, free: 4.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004919/0.1172, allocations: 257.2 kB / 366.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.1172, allocations: 15.92 kB / 366.7 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.1172, allocations: 4 kB / 366.7 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.1173, allocations: 4 kB / 366.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.1175, allocations: 67.91 kB / 366.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.1175, allocations: 4 kB / 366.8 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.1177, allocations: 31.69 kB / 366.8 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/0.1177, allocations: 11.98 kB / 366.8 MB, free: 4.398 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.0001508/0.1179, allocations: 145.9 kB / 367 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.958e-05/0.118, allocations: 19.75 kB / 367 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.281e-05/0.1181, allocations: 24.92 kB / 367 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1181, allocations: 0 / 367 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.1181, allocations: 4 kB / 367 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1181, allocations: 0 / 367 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004705/0.1186, allocations: 273.4 kB / 367.3 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1186, allocations: 256 / 367.3 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/0.1189, allocations: 47.97 kB / 367.3 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/0.1189, allocations: 19.92 kB / 367.4 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.1189, allocations: 8 kB / 367.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.1189, allocations: 0 / 367.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1189, allocations: 3.938 kB / 367.4 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006438/0.1196, allocations: 0.5244 MB / 367.9 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.832e-05/0.1197, allocations: 92.86 kB / 368 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.1197, allocations: 4 kB / 368 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.1199, allocations: 4 kB / 368 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.12, allocations: 15.97 kB / 368 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.12, allocations: 11.94 kB / 368 MB, free: 3.117 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001255/0.1201, allocations: 144.8 kB / 368.2 MB, free: 2.977 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1201, allocations: 3.938 kB / 368.2 MB, free: 2.973 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004267/0.1206, allocations: 59.84 kB / 368.2 MB, free: 2.914 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.0008692/0.1214, allocations: 1.071 MB / 369.3 MB, free: 1.812 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003852/0.1218, allocations: 160.2 kB / 369.5 MB, free: 1.656 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1218, allocations: 0 / 369.5 MB, free: 1.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.122, allocations: 59.91 kB / 369.5 MB, free: 1.598 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007533/0.1228, allocations: 57.06 kB / 369.6 MB, free: 1.543 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1502/0.273, allocations: 3.055 MB / 372.6 MB, free: 18.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002054/0.2732, allocations: 0.7523 MB / 373.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001305/0.2734, allocations: 21.25 kB / 373.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.942e-05/0.2735, allocations: 66.88 kB / 373.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2735, allocations: 5.125 kB / 373.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03094/0.3044, allocations: 4.592 MB / 378.1 MB, free: 17.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.952/8.256, allocations: 6.906 kB / 378.1 MB, free: 17 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)