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.001137/0.001138, allocations: 114 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001283/0.001283, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 57.88 kB / 306.5 MB, free: 0.8789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08865/0.08988, allocations: 50.54 MB / 357.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003684/0.09361, allocations: 2.323 MB / 359.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.09495, allocations: 0.7634 MB / 360.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001893/0.09516, allocations: 4 kB / 360.2 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000184/0.0954, allocations: 27.77 kB / 360.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003434/0.09575, allocations: 67.47 kB / 360.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004023/0.09616, allocations: 99.84 kB / 360.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004018/0.09658, allocations: 290.7 kB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.09677, allocations: 68.34 kB / 360.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.09695, allocations: 111.5 kB / 360.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.09716, allocations: 119.5 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.053e-05/0.09721, allocations: 24 kB / 361 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.187e-05/0.09727, allocations: 20 kB / 361 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.672e-05/0.09732, allocations: 51.78 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.09746, allocations: 123.3 kB / 361.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002877/0.09776, allocations: 267.3 kB / 361.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.09777, allocations: 0 / 361.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.09778, allocations: 0 / 361.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.09779, allocations: 0 / 361.4 MB, free: 9.973 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.0008084/0.09861, allocations: 0.5172 MB / 361.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.09866, allocations: 12.03 kB / 361.9 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.864e-05/0.09873, allocations: 54.67 kB / 362 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.146e-05/0.0988, allocations: 32.56 kB / 362 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.09911, allocations: 251.9 kB / 362.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.09914, allocations: 20.81 kB / 362.3 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.402e-05/0.09919, allocations: 28.22 kB / 362.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004418/0.09964, allocations: 246.8 kB / 362.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.09967, allocations: 0 / 362.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.0997, allocations: 12 kB / 362.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.09971, allocations: 4 kB / 362.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003254/0.1, allocations: 143.3 kB / 362.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.1015, allocations: 1.053 MB / 363.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004376/0.1019, allocations: 210.4 kB / 364 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.1021, allocations: 71.48 kB / 364 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.1021, allocations: 4 kB / 364 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.1022, allocations: 46.44 kB / 364.1 MB, free: 7.031 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.573e-06/0.1022, allocations: 0 / 364.1 MB, free: 7.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005385/0.1027, allocations: 193.3 kB / 364.3 MB, free: 6.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.719e-05/0.1028, allocations: 136.5 kB / 364.4 MB, free: 6.672 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.103, allocations: 194.5 kB / 364.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.885e-05/0.103, allocations: 25.7 kB / 364.6 MB, free: 6.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.1031, allocations: 163.9 kB / 364.8 MB, free: 6.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.5e-05/0.1032, allocations: 67 kB / 364.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.064e-05/0.1033, allocations: 49.7 kB / 364.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1034, allocations: 326.8 kB / 365.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.1035, allocations: 59.95 kB / 365.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.1038, allocations: 161.6 kB / 365.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.1041, allocations: 237.5 kB / 365.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.1041, allocations: 4 kB / 365.7 MB, free: 5.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004552/0.1046, allocations: 249.1 kB / 365.9 MB, free: 5.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.1046, allocations: 7.938 kB / 365.9 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.1046, allocations: 7.938 kB / 365.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.1046, allocations: 8 kB / 365.9 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.1049, allocations: 68.28 kB / 366 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.1049, allocations: 11.98 kB / 366 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.1051, allocations: 27.69 kB / 366 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.1051, allocations: 12 kB / 366.1 MB, free: 4.883 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.0001217/0.1053, allocations: 142.8 kB / 366.2 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.29e-05/0.1053, allocations: 20.5 kB / 366.2 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.916e-05/0.1054, allocations: 24.92 kB / 366.2 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.1054, allocations: 4 kB / 366.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1054, allocations: 0 / 366.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1054, allocations: 4 kB / 366.3 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004143/0.1058, allocations: 281.3 kB / 366.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.1059, allocations: 0 / 366.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002636/0.1061, allocations: 52.16 kB / 366.6 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-06/0.1061, allocations: 11.92 kB / 366.6 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.1062, allocations: 8 kB / 366.6 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.1062, allocations: 4 kB / 366.6 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1062, allocations: 0 / 366.6 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005459/0.1067, allocations: 0.53 MB / 367.1 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.963e-05/0.1068, allocations: 96.86 kB / 367.2 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.288e-05/0.1068, allocations: 7.984 kB / 367.2 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.1071, allocations: 4 kB / 367.2 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/0.1071, allocations: 15.98 kB / 367.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.1071, allocations: 8 kB / 367.3 MB, free: 3.594 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001098/0.1072, allocations: 140.9 kB / 367.4 MB, free: 3.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1073, allocations: 0 / 367.4 MB, free: 3.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004226/0.1077, allocations: 63.84 kB / 367.5 MB, free: 3.395 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.0007847/0.1085, allocations: 1.078 MB / 368.5 MB, free: 2.285 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003601/0.1088, allocations: 160.5 kB / 368.7 MB, free: 2.129 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1089, allocations: 0 / 368.7 MB, free: 2.129 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.109, allocations: 67.97 kB / 368.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006658/0.1097, allocations: 54.94 kB / 368.8 MB, free: 2.012 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.13/0.2397, allocations: 3.126 MB / 371.9 MB, free: 19.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001757/0.2399, allocations: 0.7479 MB / 372.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.24, allocations: 32.06 kB / 372.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.879e-05/0.2401, allocations: 70.67 kB / 372.8 MB, free: 18.62 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2401, allocations: 0 / 372.8 MB, free: 18.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.389/2.63, allocations: 4.441 MB / 377.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/2.63, allocations: 228.6 kB / 377.5 MB, free: 18.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.197/4.827, allocations: 0 / 377.5 MB, free: 18.01 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)