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.001309/0.00131, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 67.89 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2487, allocations: 50.54 MB / 408.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003818/0.2525, allocations: 2.357 MB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.254, allocations: 0.7634 MB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.2542, allocations: 4 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001491/0.2543, allocations: 39.59 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002716/0.2546, allocations: 91.27 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003244/0.255, allocations: 115.7 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003344/0.2553, allocations: 302.7 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.2555, allocations: 68.66 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.2556, allocations: 115.5 kB / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.2558, allocations: 119.5 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.811e-05/0.2558, allocations: 28 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.442e-05/0.2559, allocations: 20 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.783e-05/0.256, allocations: 55.72 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.2561, allocations: 123.4 kB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003348/0.2564, allocations: 277.8 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.2565, allocations: 4 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2565, allocations: 0 / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.2565, allocations: 0 / 413.3 MB, free: 12.97 MB / 334.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.0009574/0.2574, allocations: 0.5571 MB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.2575, allocations: 8.031 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.014e-05/0.2576, allocations: 54.73 kB / 413.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.933e-05/0.2576, allocations: 32.75 kB / 413.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003944/0.258, allocations: 253.6 kB / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.2581, allocations: 20.81 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.562e-05/0.2581, allocations: 28.36 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004309/0.2585, allocations: 242.8 kB / 414.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/0.2586, allocations: 3.953 kB / 414.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.187e-05/0.2586, allocations: 8 kB / 414.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.2586, allocations: 7.938 kB / 414.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000361/0.259, allocations: 171.8 kB / 414.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.2603, allocations: 1.012 MB / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005386/0.2608, allocations: 286.4 kB / 415.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.261, allocations: 95.41 kB / 416 MB, free: 9.965 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.2611, allocations: 7.938 kB / 416 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.2611, allocations: 38.56 kB / 416.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.664e-06/0.2611, allocations: 0 / 416.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001974/0.2631, allocations: 1.334 MB / 417.4 MB, free: 8.387 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.2632, allocations: 140.4 kB / 417.5 MB, free: 8.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.2634, allocations: 206.7 kB / 417.7 MB, free: 8.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.2634, allocations: 29.7 kB / 417.8 MB, free: 7.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.2635, allocations: 160.7 kB / 417.9 MB, free: 7.812 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.2636, allocations: 130.9 kB / 418.1 MB, free: 7.684 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.441e-05/0.2637, allocations: 66.12 kB / 418.1 MB, free: 7.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2639, allocations: 334.8 kB / 418.5 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001966/0.2641, allocations: 80.83 kB / 418.5 MB, free: 7.195 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000269/0.2644, allocations: 202 kB / 418.7 MB, free: 6.949 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004607/0.2648, allocations: 305.7 kB / 419 MB, free: 6.602 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2648, allocations: 0 / 419 MB, free: 6.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005887/0.2654, allocations: 337.3 kB / 419.4 MB, free: 6.266 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2655, allocations: 15.12 kB / 419.4 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2655, allocations: 0 / 419.4 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.2655, allocations: 8 kB / 419.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003756/0.2659, allocations: 95.83 kB / 419.5 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.2659, allocations: 4.312 kB / 419.5 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001544/0.2661, allocations: 23.92 kB / 419.5 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.458e-05/0.2661, allocations: 12 kB / 419.5 MB, free: 6.113 MB / 334.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.0001437/0.2662, allocations: 153.7 kB / 419.7 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.468e-05/0.2663, allocations: 27.86 kB / 419.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.172e-05/0.2664, allocations: 33.39 kB / 419.7 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.2664, allocations: 4 kB / 419.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.2664, allocations: 0 / 419.7 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.2664, allocations: 7.938 kB / 419.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00141/0.2679, allocations: 0.9673 MB / 420.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.2679, allocations: 0 / 420.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003602/0.2682, allocations: 83.89 kB / 420.8 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.2683, allocations: 4 kB / 420.8 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.2683, allocations: 12.44 kB / 420.8 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.538e-06/0.2683, allocations: 19.92 kB / 420.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.2683, allocations: 4 kB / 420.8 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000827/0.2691, allocations: 0.7001 MB / 421.5 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.13e-05/0.2692, allocations: 101 kB / 421.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.177e-05/0.2693, allocations: 12 kB / 421.6 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.2695, allocations: 12 kB / 421.6 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.825e-05/0.2696, allocations: 31.84 kB / 421.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.131e-05/0.2696, allocations: 15.98 kB / 421.7 MB, free: 3.773 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001365/0.2698, allocations: 140.6 kB / 421.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2698, allocations: 0 / 421.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004593/0.2703, allocations: 68 kB / 421.9 MB, free: 3.57 MB / 334.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.001102/0.2714, allocations: 1.256 MB / 423.2 MB, free: 2.262 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005061/0.2719, allocations: 240.2 kB / 423.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2719, allocations: 0 / 423.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002307/0.2721, allocations: 123.8 kB / 423.5 MB, free: 1.906 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007516/0.2729, allocations: 75.27 kB / 423.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004438/0.2773, allocations: 3.484 MB / 427.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.2778, allocations: 0.7606 MB / 427.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001425/0.2779, allocations: 34.95 kB / 427.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.2781, allocations: 83.41 kB / 427.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2781, allocations: 0 / 427.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03028/0.3084, allocations: 5.766 MB / 433.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.863/8.171, allocations: 6.891 kB / 433.7 MB, free: 7.574 MB / 350.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)