Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.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.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008824/0.0008825, allocations: 100.7 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 196.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.3 MB / 246 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002572/0.0002573, allocations: 8 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1073, allocations: 51.5 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.002326/0.1097, allocations: 1.962 MB / 360.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.1108, allocations: 0.7326 MB / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.111, allocations: 4 kB / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.1111, allocations: 35.7 kB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002357/0.1113, allocations: 67.45 kB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.1116, allocations: 99.77 kB / 361.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002798/0.1119, allocations: 274.8 kB / 361.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.112, allocations: 56.95 kB / 361.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.1122, allocations: 87.66 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001827/0.1123, allocations: 123.5 kB / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.182e-05/0.1124, allocations: 12 kB / 361.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.455e-05/0.1124, allocations: 12 kB / 361.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.188e-05/0.1125, allocations: 43.83 kB / 361.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.388e-05/0.1125, allocations: 73.52 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000184/0.1127, allocations: 187.7 kB / 362.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1127, allocations: 0 / 362.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1128, allocations: 0 / 362.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.1128, allocations: 0 / 362.1 MB, free: 9.98 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.0008351/0.1136, allocations: 0.5183 MB / 362.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.1137, allocations: 8.031 kB / 362.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.764e-05/0.1137, allocations: 58.48 kB / 362.6 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.815e-05/0.1138, allocations: 27.72 kB / 362.7 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.1141, allocations: 256.2 kB / 362.9 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.1141, allocations: 16.44 kB / 362.9 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.336e-05/0.1141, allocations: 27.95 kB / 363 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004068/0.1145, allocations: 234.7 kB / 363.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.1146, allocations: 7.844 kB / 363.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.1147, allocations: 16 kB / 363.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.1147, allocations: 4 kB / 363.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/0.1151, allocations: 159.9 kB / 363.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.1164, allocations: 1.024 MB / 364.4 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000527/0.1169, allocations: 302.2 kB / 364.7 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.1171, allocations: 99.41 kB / 364.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.1172, allocations: 4 kB / 364.8 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.1172, allocations: 38.97 kB / 364.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.523e-06/0.1172, allocations: 0 / 364.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002075/0.1193, allocations: 1.344 MB / 366.2 MB, free: 5.406 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.1194, allocations: 136.5 kB / 366.3 MB, free: 5.242 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002419/0.1197, allocations: 202.9 kB / 366.5 MB, free: 5.031 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.1197, allocations: 33.7 kB / 366.5 MB, free: 4.992 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.1199, allocations: 152.4 kB / 366.7 MB, free: 4.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.12, allocations: 126.3 kB / 366.8 MB, free: 4.715 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.608e-05/0.12, allocations: 4 kB / 366.8 MB, free: 4.711 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.1202, allocations: 342.8 kB / 367.1 MB, free: 4.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.1204, allocations: 80.83 kB / 367.2 MB, free: 4.289 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002999/0.1207, allocations: 200 kB / 367.4 MB, free: 4.043 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.121, allocations: 108.5 kB / 367.5 MB, free: 3.938 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.121, allocations: 0 / 367.5 MB, free: 3.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006058/0.1216, allocations: 348.9 kB / 367.9 MB, free: 3.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.1216, allocations: 8 kB / 367.9 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.1217, allocations: 4 kB / 367.9 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.1217, allocations: 8 kB / 367.9 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.122, allocations: 95.83 kB / 368 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.1221, allocations: 4 kB / 368 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/0.1222, allocations: 24.23 kB / 368 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.983e-05/0.1223, allocations: 19.94 kB / 368 MB, free: 3.43 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 (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001668/0.1224, allocations: 149.7 kB / 368.2 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.512e-05/0.1225, allocations: 23.72 kB / 368.2 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.132e-05/0.1226, allocations: 33.39 kB / 368.2 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.1226, allocations: 4 kB / 368.2 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.1227, allocations: 4 kB / 368.2 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1227, allocations: 192 / 368.2 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001465/0.1241, allocations: 0.983 MB / 369.2 MB, free: 2.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.1242, allocations: 4 kB / 369.2 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003542/0.1245, allocations: 75.89 kB / 369.3 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.1245, allocations: 8 kB / 369.3 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/0.1246, allocations: 12.25 kB / 369.3 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.077e-05/0.1246, allocations: 15.94 kB / 369.3 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.1246, allocations: 7.938 kB / 369.3 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000813/0.1254, allocations: 0.7086 MB / 370.1 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.442e-05/0.1255, allocations: 96.83 kB / 370.1 MB, free: 1.156 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.1255, allocations: 8 kB / 370.2 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.1258, allocations: 15.98 kB / 370.2 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.075e-05/0.1259, allocations: 27.92 kB / 370.2 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.1259, allocations: 12 kB / 370.2 MB, free: 1.094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001473/0.126, allocations: 152.3 kB / 370.4 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.126, allocations: 0 / 370.4 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004693/0.1265, allocations: 68 kB / 370.4 MB, free: 0.8789 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.192/0.3185, allocations: 1.249 MB / 371.7 MB, free: 18.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006105/0.3191, allocations: 232.2 kB / 371.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.3191, allocations: 0.9688 kB / 371.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002524/0.3194, allocations: 130.4 kB / 372 MB, free: 18.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008996/0.3203, allocations: 63.09 kB / 372.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002916/0.3232, allocations: 2.09 MB / 374.2 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.3235, allocations: 0.7606 MB / 374.9 MB, free: 17.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001488/0.3236, allocations: 36.44 kB / 375 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.3238, allocations: 80.06 kB / 375.1 MB, free: 17.06 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3238, allocations: 4 kB / 375.1 MB, free: 17.06 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01909/0.3429, allocations: 5.142 MB / 380.2 MB, free: 16.68 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001463/0.3431, allocations: 202.5 kB / 380.4 MB, free: 16.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.87/2.213, allocations: 0 / 380.4 MB, free: 16.44 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1)