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.001072/0.001072, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001196/0.001196, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2558, allocations: 50.54 MB / 408.7 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003386/0.2592, allocations: 2.368 MB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.2607, allocations: 0.7518 MB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001464/0.2609, allocations: 7.938 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.2611, allocations: 43.58 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002753/0.2613, allocations: 94.83 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003192/0.2617, allocations: 115.7 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003157/0.262, allocations: 302.6 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.2622, allocations: 68.7 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000119/0.2623, allocations: 111.6 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/0.2625, allocations: 131.4 kB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.284e-05/0.2625, allocations: 24 kB / 412.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.214e-05/0.2626, allocations: 24 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.908e-05/0.2626, allocations: 51.77 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.2627, allocations: 127.3 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003017/0.263, allocations: 273.8 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2631, allocations: 0 / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2631, allocations: 0 / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.2631, allocations: 0 / 413.2 MB, free: 13.02 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.0009195/0.264, allocations: 0.5533 MB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.2641, allocations: 11.97 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.868e-05/0.2641, allocations: 66.66 kB / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.547e-05/0.2642, allocations: 28.75 kB / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.2645, allocations: 257.6 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.2646, allocations: 20.81 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.342e-05/0.2646, allocations: 24.38 kB / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004111/0.265, allocations: 246.7 kB / 414.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.894e-05/0.2651, allocations: 3.953 kB / 414.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.553e-05/0.2651, allocations: 12 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.2651, allocations: 4 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003494/0.2655, allocations: 159.8 kB / 414.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/0.2667, allocations: 1.02 MB / 415.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005228/0.2673, allocations: 286.1 kB / 415.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.2675, allocations: 96.03 kB / 416 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.2675, allocations: 11.97 kB / 416 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.2675, allocations: 38.48 kB / 416 MB, free: 9.953 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.235e-06/0.2675, allocations: 0 / 416 MB, free: 9.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002004/0.2695, allocations: 1.337 MB / 417.4 MB, free: 8.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.948e-05/0.2696, allocations: 132.5 kB / 417.5 MB, free: 8.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002031/0.2699, allocations: 210.7 kB / 417.7 MB, free: 8.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.2699, allocations: 29.7 kB / 417.7 MB, free: 8.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.27, allocations: 160.6 kB / 417.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.2701, allocations: 126.9 kB / 418 MB, free: 7.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.57e-05/0.2702, allocations: 66.14 kB / 418.1 MB, free: 7.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2704, allocations: 334.8 kB / 418.4 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.2706, allocations: 80.83 kB / 418.5 MB, free: 7.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002727/0.2709, allocations: 198 kB / 418.7 MB, free: 7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004776/0.2713, allocations: 309.7 kB / 419 MB, free: 6.648 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2714, allocations: 0 / 419 MB, free: 6.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006186/0.272, allocations: 333.6 kB / 419.3 MB, free: 6.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.272, allocations: 8 kB / 419.3 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.272, allocations: 4.078 kB / 419.3 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.2721, allocations: 11.98 kB / 419.3 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003579/0.2724, allocations: 91.84 kB / 419.4 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.2724, allocations: 11.97 kB / 419.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.2726, allocations: 19.94 kB / 419.4 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.566e-05/0.2727, allocations: 16 kB / 419.5 MB, free: 6.156 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.0001549/0.2728, allocations: 149.6 kB / 419.6 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.2729, allocations: 39.78 kB / 419.6 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.945e-05/0.273, allocations: 29.41 kB / 419.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.273, allocations: 4.188 kB / 419.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.273, allocations: 0 / 419.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.273, allocations: 15.91 kB / 419.7 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.2745, allocations: 0.9597 MB / 420.7 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.2745, allocations: 4 kB / 420.7 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003589/0.2749, allocations: 79.91 kB / 420.7 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.2749, allocations: 4 kB / 420.7 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.2749, allocations: 20.23 kB / 420.8 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.2749, allocations: 4 kB / 420.8 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.319e-06/0.2749, allocations: 7.938 kB / 420.8 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000803/0.2757, allocations: 0.7001 MB / 421.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.197e-05/0.2758, allocations: 96.97 kB / 421.6 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.315e-05/0.2759, allocations: 19.98 kB / 421.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002601/0.2761, allocations: 12 kB / 421.6 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.645e-05/0.2762, allocations: 27.91 kB / 421.6 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.2762, allocations: 8 kB / 421.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001281/0.2764, allocations: 144.6 kB / 421.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2764, allocations: 0 / 421.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004759/0.2768, allocations: 64 kB / 421.8 MB, free: 3.621 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.001167/0.278, allocations: 1.257 MB / 423.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005243/0.2786, allocations: 243.9 kB / 423.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.2786, allocations: 4 kB / 423.3 MB, free: 2.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002224/0.2788, allocations: 120.8 kB / 423.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007589/0.2796, allocations: 70.64 kB / 423.5 MB, free: 1.883 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004415/0.284, allocations: 3.484 MB / 427 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.2844, allocations: 0.7606 MB / 427.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000145/0.2845, allocations: 38.91 kB / 427.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.2847, allocations: 79.41 kB / 427.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of SimCode: time 7.72e-07/0.2847, allocations: 4 kB / 427.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02547/0.3102, allocations: 5.774 MB / 433.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.948/8.258, allocations: 0 / 433.7 MB, free: 7.613 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1)