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.001179/0.001179, allocations: 97.73 kB / 16.99 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 202.2 kB / 17.9 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002456/0.0002458, allocations: 4 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1488, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.002985/0.1518, allocations: 1.88 MB / 360.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.1537, allocations: 0.7367 MB / 360.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00029/0.154, allocations: 11.94 kB / 360.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.322e-05/0.1541, allocations: 19.84 kB / 360.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004986/0.1546, allocations: 107.2 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003983/0.155, allocations: 87.83 kB / 361 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004574/0.1555, allocations: 207.5 kB / 361.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.1556, allocations: 53.05 kB / 361.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.1558, allocations: 99.62 kB / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001891/0.156, allocations: 107.5 kB / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.433e-05/0.1561, allocations: 12 kB / 361.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.187e-05/0.1561, allocations: 12 kB / 361.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.573e-05/0.1562, allocations: 39.84 kB / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.811e-05/0.1563, allocations: 73.56 kB / 361.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002047/0.1565, allocations: 195.7 kB / 361.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1565, allocations: 0 / 361.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1565, allocations: 0 / 361.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.1565, allocations: 4 kB / 361.8 MB, free: 10.11 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.0009816/0.1575, allocations: 0.5105 MB / 362.3 MB, free: 9.555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.1576, allocations: 12.02 kB / 362.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.858e-05/0.1577, allocations: 58.55 kB / 362.4 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.81e-05/0.1578, allocations: 27.72 kB / 362.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/0.1582, allocations: 248.3 kB / 362.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.1582, allocations: 20.36 kB / 362.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.1582, allocations: 27.89 kB / 362.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004629/0.1587, allocations: 238.7 kB / 363 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/0.1587, allocations: 7.906 kB / 363 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.1588, allocations: 8 kB / 363 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.1588, allocations: 4 kB / 363 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003867/0.1592, allocations: 163.8 kB / 363.1 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.1605, allocations: 1.031 MB / 364.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005384/0.1611, allocations: 298.1 kB / 364.5 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.1611, allocations: 7.938 kB / 364.5 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.1612, allocations: 35.19 kB / 364.5 MB, free: 7.188 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.1612, allocations: 0 / 364.5 MB, free: 7.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.00195/0.1631, allocations: 1.343 MB / 365.8 MB, free: 5.652 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.258e-05/0.1632, allocations: 136.5 kB / 366 MB, free: 5.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000197/0.1634, allocations: 199 kB / 366.2 MB, free: 5.281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.1635, allocations: 33.7 kB / 366.2 MB, free: 5.242 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.423e-05/0.1636, allocations: 152.4 kB / 366.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.577e-05/0.1637, allocations: 122.3 kB / 366.5 MB, free: 4.969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.471e-05/0.1637, allocations: 8 kB / 366.5 MB, free: 4.961 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1638, allocations: 342.8 kB / 366.8 MB, free: 4.617 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.164, allocations: 76.84 kB / 366.9 MB, free: 4.543 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002488/0.1643, allocations: 198.1 kB / 367.1 MB, free: 4.297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.1645, allocations: 113 kB / 367.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1645, allocations: 0 / 367.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005672/0.1651, allocations: 352.8 kB / 367.5 MB, free: 3.836 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1651, allocations: 8 kB / 367.6 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1651, allocations: 4 kB / 367.6 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.1652, allocations: 4 kB / 367.6 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000378/0.1655, allocations: 95.89 kB / 367.7 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.1656, allocations: 7.938 kB / 367.7 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.1657, allocations: 20.25 kB / 367.7 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/0.1658, allocations: 19.98 kB / 367.7 MB, free: 3.68 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.0001593/0.1659, allocations: 148.1 kB / 367.8 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.969e-05/0.166, allocations: 23.72 kB / 367.9 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.152e-05/0.1661, allocations: 33.39 kB / 367.9 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1661, allocations: 4 kB / 367.9 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.1661, allocations: 0 / 367.9 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1661, allocations: 4 kB / 367.9 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.1675, allocations: 0.9791 MB / 368.9 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.1675, allocations: 8 kB / 368.9 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003631/0.1678, allocations: 83.89 kB / 369 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.1679, allocations: 4 kB / 369 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.1679, allocations: 12 kB / 369 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.1679, allocations: 16.14 kB / 369 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.1679, allocations: 0 / 369 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008761/0.1688, allocations: 0.8442 MB / 369.9 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.395e-05/0.1689, allocations: 96.83 kB / 369.9 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.029e-05/0.1689, allocations: 8 kB / 370 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.1692, allocations: 15.98 kB / 370 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.428e-05/0.1692, allocations: 31.86 kB / 370 MB, free: 1.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.1693, allocations: 8 kB / 370 MB, free: 1.148 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001357/0.1694, allocations: 152.4 kB / 370.2 MB, free: 1 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1694, allocations: 0 / 370.2 MB, free: 1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004901/0.1699, allocations: 68 kB / 370.2 MB, free: 0.9336 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.2255/0.3954, allocations: 2.123 MB / 372.3 MB, free: 17.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006098/0.396, allocations: 241.7 kB / 372.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.3961, allocations: 2.953 kB / 372.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002933/0.3964, allocations: 129.2 kB / 372.7 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006002/0.397, allocations: 58.91 kB / 372.8 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00379/0.4008, allocations: 4.331 MB / 377.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.4011, allocations: 0.7709 MB / 377.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001819/0.4013, allocations: 33.91 kB / 377.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.4015, allocations: 79.38 kB / 378 MB, free: 13.66 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4015, allocations: 1.094 kB / 378 MB, free: 13.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.4193, allocations: 5.144 MB / 383.1 MB, free: 13.26 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.4196, allocations: 189.9 kB / 383.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.37, allocations: 0 / 383.3 MB, free: 13.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/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)