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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_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.001394/0.001394, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001582/0.001582, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 60.78 kB / 306.4 MB, free: 0.9844 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09801/0.09955, allocations: 50.53 MB / 356.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003285/0.1029, allocations: 2.327 MB / 359.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.1042, allocations: 0.7634 MB / 360 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001977/0.1044, allocations: 7.938 kB / 360 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.1046, allocations: 23.78 kB / 360 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002779/0.1049, allocations: 63.52 kB / 360.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003122/0.1052, allocations: 103.8 kB / 360.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003101/0.1055, allocations: 290.7 kB / 360.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.1057, allocations: 56.69 kB / 360.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001545/0.1058, allocations: 91.59 kB / 360.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.106, allocations: 119.4 kB / 360.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.015e-05/0.106, allocations: 12 kB / 360.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.864e-05/0.1061, allocations: 16 kB / 360.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.092e-05/0.1061, allocations: 43.83 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.1062, allocations: 119.3 kB / 360.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002081/0.1064, allocations: 247.3 kB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1065, allocations: 4 kB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1065, allocations: 0 / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.136e-06/0.1065, allocations: 0 / 361.1 MB, free: 10.16 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.0007198/0.1072, allocations: 0.5246 MB / 361.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.1072, allocations: 8.031 kB / 361.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.601e-05/0.1073, allocations: 58.72 kB / 361.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.514e-05/0.1074, allocations: 32.55 kB / 361.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000259/0.1076, allocations: 263.8 kB / 362 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.1077, allocations: 12.81 kB / 362 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.112e-05/0.1077, allocations: 28.28 kB / 362.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000395/0.1081, allocations: 230.8 kB / 362.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.1081, allocations: 4 kB / 362.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.1082, allocations: 11.94 kB / 362.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.1082, allocations: 8 kB / 362.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003101/0.1085, allocations: 135.9 kB / 362.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.1097, allocations: 1.056 MB / 363.5 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004116/0.1102, allocations: 214.4 kB / 363.7 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.1103, allocations: 71.36 kB / 363.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.1103, allocations: 4 kB / 363.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.1104, allocations: 46.48 kB / 363.8 MB, free: 7.211 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.433e-06/0.1104, allocations: 0 / 363.8 MB, free: 7.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005334/0.1109, allocations: 189.3 kB / 364 MB, free: 7.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.111, allocations: 132.5 kB / 364.1 MB, free: 6.859 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.1111, allocations: 198.5 kB / 364.3 MB, free: 6.652 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.1112, allocations: 25.7 kB / 364.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.245e-05/0.1113, allocations: 163.9 kB / 364.5 MB, free: 6.457 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.141e-05/0.1113, allocations: 70.98 kB / 364.6 MB, free: 6.387 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.255e-05/0.1114, allocations: 53.7 kB / 364.6 MB, free: 6.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.958e-05/0.1115, allocations: 330.8 kB / 365 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.1116, allocations: 55.95 kB / 365 MB, free: 5.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.1118, allocations: 161.6 kB / 365.2 MB, free: 5.734 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003184/0.1122, allocations: 233.5 kB / 365.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1122, allocations: 0 / 365.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.00044/0.1126, allocations: 253.3 kB / 365.7 MB, free: 5.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.1127, allocations: 11.94 kB / 365.7 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.1127, allocations: 4 kB / 365.7 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.1127, allocations: 4 kB / 365.7 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.1129, allocations: 71.89 kB / 365.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.113, allocations: 7.938 kB / 365.8 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001441/0.1131, allocations: 31.69 kB / 365.8 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.1131, allocations: 12 kB / 365.8 MB, free: 5.062 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.000122/0.1133, allocations: 150.9 kB / 365.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.83e-05/0.1134, allocations: 19.75 kB / 366 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.421e-05/0.1134, allocations: 24.94 kB / 366 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1134, allocations: 256 / 366 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.1135, allocations: 4 kB / 366 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.1135, allocations: 7.984 kB / 366 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004299/0.1139, allocations: 269.4 kB / 366.3 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1139, allocations: 0 / 366.3 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002624/0.1142, allocations: 51.97 kB / 366.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.1142, allocations: 4.688 kB / 366.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.1142, allocations: 15.98 kB / 366.3 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.1142, allocations: 0 / 366.3 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.1142, allocations: 3.938 kB / 366.3 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005538/0.1148, allocations: 0.5205 MB / 366.9 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.615e-05/0.1149, allocations: 104.8 kB / 367 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.299e-05/0.1149, allocations: 8 kB / 367 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.1151, allocations: 4 kB / 367 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.149e-05/0.1152, allocations: 11.98 kB / 367 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.1152, allocations: 11.92 kB / 367 MB, free: 3.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001078/0.1153, allocations: 144.8 kB / 367.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1153, allocations: 4 kB / 367.1 MB, free: 3.625 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004203/0.1157, allocations: 59.84 kB / 367.2 MB, free: 3.566 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.0008632/0.1166, allocations: 1.071 MB / 368.3 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003308/0.117, allocations: 147.8 kB / 368.4 MB, free: 2.324 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.117, allocations: 0 / 368.4 MB, free: 2.324 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001396/0.1171, allocations: 67.91 kB / 368.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006686/0.1178, allocations: 48.7 kB / 368.5 MB, free: 2.211 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1274/0.2452, allocations: 3.143 MB / 371.7 MB, free: 18.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001855/0.2454, allocations: 0.7464 MB / 372.4 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001214/0.2455, allocations: 26.67 kB / 372.4 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.95e-05/0.2456, allocations: 71.45 kB / 372.5 MB, free: 18.21 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2456, allocations: 0 / 372.5 MB, free: 18.21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.209/0.4546, allocations: 4.32 MB / 376.8 MB, free: 17.87 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001404/0.4548, allocations: 214.6 kB / 377 MB, free: 17.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/2.142, allocations: 3.938 kB / 377 MB, free: 17.61 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)