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.001131/0.001131, allocations: 108.1 kB / 17.32 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001298/0.001298, allocations: 205.8 kB / 18.26 MB, free: 4.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 60.09 kB / 306.5 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08901/0.09023, allocations: 50.54 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.004317/0.09459, allocations: 2.401 MB / 359.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.09609, allocations: 0.7596 MB / 360.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002516/0.09637, allocations: 7.938 kB / 360.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002149/0.0966, allocations: 31.77 kB / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004069/0.09705, allocations: 71.45 kB / 360.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004655/0.09753, allocations: 107.8 kB / 360.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005566/0.09809, allocations: 302.6 kB / 360.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.09831, allocations: 72.69 kB / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.09856, allocations: 111.5 kB / 360.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.0988, allocations: 119.5 kB / 361.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.359e-05/0.09887, allocations: 24 kB / 361.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.864e-05/0.09893, allocations: 20 kB / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.968e-05/0.099, allocations: 55.77 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.09915, allocations: 127.3 kB / 361.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003103/0.09947, allocations: 279.2 kB / 361.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.09949, allocations: 0 / 361.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.0995, allocations: 0 / 361.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.09951, allocations: 0 / 361.5 MB, free: 9.812 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.001075/0.1006, allocations: 0.5496 MB / 362.1 MB, free: 9.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.1006, allocations: 12.03 kB / 362.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.951e-05/0.1007, allocations: 50.73 kB / 362.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.217e-05/0.1008, allocations: 32.56 kB / 362.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002813/0.1011, allocations: 253.5 kB / 362.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.1011, allocations: 16.81 kB / 362.5 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.378e-05/0.1011, allocations: 24.38 kB / 362.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004655/0.1016, allocations: 242.7 kB / 362.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.1016, allocations: 3.906 kB / 362.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.69e-05/0.1017, allocations: 15.98 kB / 362.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.1017, allocations: 4 kB / 362.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003645/0.1021, allocations: 163.8 kB / 362.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.1034, allocations: 1.012 MB / 363.9 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005388/0.104, allocations: 290.3 kB / 364.2 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002039/0.1042, allocations: 95.38 kB / 364.3 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.1042, allocations: 8 kB / 364.3 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.1043, allocations: 42.5 kB / 364.3 MB, free: 6.762 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.523e-06/0.1043, allocations: 0 / 364.3 MB, free: 6.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001943/0.1062, allocations: 1.329 MB / 365.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/0.1063, allocations: 136.5 kB / 365.8 MB, free: 5.078 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.1065, allocations: 206.7 kB / 366 MB, free: 4.863 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.079e-05/0.1066, allocations: 37.7 kB / 366 MB, free: 4.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.127e-05/0.1067, allocations: 152.4 kB / 366.2 MB, free: 4.668 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.51e-05/0.1068, allocations: 126.2 kB / 366.3 MB, free: 4.543 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.506e-05/0.1069, allocations: 66.14 kB / 366.4 MB, free: 4.469 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.107, allocations: 338.8 kB / 366.7 MB, free: 4.129 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.1072, allocations: 80.84 kB / 366.8 MB, free: 4.051 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002479/0.1075, allocations: 194 kB / 367 MB, free: 3.812 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004455/0.1079, allocations: 297.5 kB / 367.3 MB, free: 3.473 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1079, allocations: 4 kB / 367.3 MB, free: 3.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006211/0.1086, allocations: 344.9 kB / 367.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.1086, allocations: 8 kB / 367.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.1086, allocations: 8.25 kB / 367.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.1086, allocations: 8 kB / 367.6 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003437/0.109, allocations: 95.83 kB / 367.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.109, allocations: 8 kB / 367.7 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.1092, allocations: 11.94 kB / 367.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.1092, allocations: 20 kB / 367.8 MB, free: 2.969 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001277/0.1094, allocations: 149.7 kB / 367.9 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.53e-05/0.1095, allocations: 23.72 kB / 367.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.396e-05/0.1095, allocations: 29.41 kB / 368 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.1096, allocations: 11.98 kB / 368 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.1096, allocations: 4 kB / 368 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1096, allocations: 3.938 kB / 368 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.1109, allocations: 0.9711 MB / 368.9 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.1109, allocations: 4 kB / 369 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000358/0.1113, allocations: 75.89 kB / 369 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.1113, allocations: 4 kB / 369 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.521e-05/0.1113, allocations: 16.25 kB / 369 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.356e-06/0.1114, allocations: 7.938 kB / 369.1 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1114, allocations: 256 / 369.1 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000737/0.1121, allocations: 0.7039 MB / 369.8 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.089e-05/0.1122, allocations: 104.8 kB / 369.9 MB, free: 0.707 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.849e-05/0.1122, allocations: 12 kB / 369.9 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002689/0.1125, allocations: 8 kB / 369.9 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.472e-05/0.1126, allocations: 31.84 kB / 369.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.1126, allocations: 19.94 kB / 369.9 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001102/0.1127, allocations: 144.6 kB / 370.1 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1127, allocations: 0 / 370.1 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000467/0.1132, allocations: 68 kB / 370.1 MB, free: 440 kB / 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 (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.1401/0.2533, allocations: 1.232 MB / 371.4 MB, free: 18.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005878/0.2539, allocations: 250.4 kB / 371.6 MB, free: 18.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.2539, allocations: 0.8125 kB / 371.6 MB, free: 18.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002283/0.2541, allocations: 127.7 kB / 371.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008328/0.255, allocations: 80.44 kB / 371.8 MB, free: 18.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003707/0.2587, allocations: 3.585 MB / 375.4 MB, free: 16.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001939/0.2589, allocations: 0.7603 MB / 376.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001477/0.2591, allocations: 33.19 kB / 376.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.2592, allocations: 84.14 kB / 376.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2592, allocations: 0 / 376.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0279/0.2871, allocations: 5.508 MB / 381.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001506/0.2873, allocations: 215.3 kB / 382 MB, free: 15.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.958/2.246, allocations: 4 kB / 382 MB, free: 15.02 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/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)