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.001714/0.001713, allocations: 121.6 kB / 17.78 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.002123/0.002123, 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.473/1.473, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2697, allocations: 50.55 MB / 408.8 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003558/0.2733, allocations: 2.353 MB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.2747, allocations: 0.7634 MB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.2748, allocations: 4 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.275, allocations: 35.59 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002582/0.2752, allocations: 87.25 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003365/0.2756, allocations: 123.7 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003474/0.2759, allocations: 302.6 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.2761, allocations: 68.69 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.2763, allocations: 107.6 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.2765, allocations: 123.5 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.805e-05/0.2765, allocations: 20 kB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.976e-05/0.2765, allocations: 24 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.527e-05/0.2766, allocations: 55.7 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.2768, allocations: 127.4 kB / 412.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003235/0.2771, allocations: 277.8 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2771, allocations: 0 / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2771, allocations: 0 / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.2771, allocations: 0 / 413.2 MB, free: 13.03 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.0009982/0.2781, allocations: 0.561 MB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.2782, allocations: 11.97 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.592e-05/0.2783, allocations: 54.73 kB / 413.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.665e-05/0.2783, allocations: 32.75 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.2787, allocations: 261.6 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.2788, allocations: 12.81 kB / 414.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.08e-05/0.2788, allocations: 24.38 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004539/0.2793, allocations: 246.8 kB / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.2793, allocations: 3.953 kB / 414.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.2793, allocations: 19.97 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.2794, allocations: 4 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003691/0.2797, allocations: 159.8 kB / 414.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.2811, allocations: 1.016 MB / 415.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005692/0.2817, allocations: 294.3 kB / 415.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.2819, allocations: 95.34 kB / 416 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.2819, allocations: 4 kB / 416 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.74e-05/0.282, allocations: 39.03 kB / 416 MB, free: 9.961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.774e-06/0.282, allocations: 0 / 416 MB, free: 9.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.00211/0.2841, allocations: 1.345 MB / 417.4 MB, free: 8.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.632e-05/0.2842, allocations: 132.5 kB / 417.5 MB, free: 8.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.2844, allocations: 206.7 kB / 417.7 MB, free: 8.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.2844, allocations: 29.7 kB / 417.7 MB, free: 8.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.2846, allocations: 156.7 kB / 417.9 MB, free: 7.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.566e-05/0.2847, allocations: 126.9 kB / 418 MB, free: 7.738 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.2848, allocations: 74.12 kB / 418.1 MB, free: 7.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.2849, allocations: 330.8 kB / 418.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.2851, allocations: 80.83 kB / 418.5 MB, free: 7.246 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000266/0.2854, allocations: 205.9 kB / 418.7 MB, free: 6.996 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004902/0.2859, allocations: 298 kB / 419 MB, free: 6.656 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2859, allocations: 0 / 419 MB, free: 6.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005897/0.2865, allocations: 345 kB / 419.3 MB, free: 6.312 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.2865, allocations: 4 kB / 419.3 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.2866, allocations: 4 kB / 419.3 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.2866, allocations: 8 kB / 419.3 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003661/0.2869, allocations: 100.1 kB / 419.4 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.287, allocations: 4 kB / 419.4 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.2871, allocations: 19.92 kB / 419.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/0.2872, allocations: 16 kB / 419.5 MB, free: 6.16 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.0001545/0.2873, allocations: 149.7 kB / 419.6 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.922e-05/0.2874, allocations: 31.8 kB / 419.6 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.172e-05/0.2875, allocations: 29.39 kB / 419.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.2875, allocations: 4 kB / 419.7 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.2875, allocations: 0 / 419.7 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.2876, allocations: 11.94 kB / 419.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001422/0.289, allocations: 0.9636 MB / 420.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.289, allocations: 4 kB / 420.6 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003735/0.2894, allocations: 83.89 kB / 420.7 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.2894, allocations: 4 kB / 420.7 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.2894, allocations: 8 kB / 420.7 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.758e-06/0.2894, allocations: 11.92 kB / 420.7 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.2895, allocations: 4 kB / 420.7 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008233/0.2903, allocations: 0.7043 MB / 421.5 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.54e-05/0.2904, allocations: 101 kB / 421.6 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.822e-05/0.2904, allocations: 8 kB / 421.6 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.2907, allocations: 15.98 kB / 421.6 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.219e-05/0.2908, allocations: 35.84 kB / 421.6 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.2908, allocations: 8 kB / 421.6 MB, free: 3.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001388/0.2909, allocations: 144.6 kB / 421.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2909, allocations: 0 / 421.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004662/0.2914, allocations: 68 kB / 421.8 MB, free: 3.625 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.001234/0.2926, allocations: 1.249 MB / 423.1 MB, free: 2.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005092/0.2932, allocations: 245.2 kB / 423.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.2932, allocations: 4 kB / 423.3 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002314/0.2934, allocations: 119.8 kB / 423.4 MB, free: 1.961 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007532/0.2942, allocations: 67.75 kB / 423.5 MB, free: 1.898 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004465/0.2987, allocations: 3.495 MB / 427 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.2991, allocations: 0.7606 MB / 427.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.2992, allocations: 38.89 kB / 427.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.2994, allocations: 83.41 kB / 427.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2994, allocations: 0 / 427.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03053/0.3299, allocations: 5.759 MB / 433.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.072/8.402, allocations: 7.625 kB / 433.6 MB, free: 7.625 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)