Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_4_1_0-beta_om_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.00126/0.00126, allocations: 122.2 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.001405/0.001405, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.472/1.472, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 63.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2831, allocations: 50.55 MB / 409.1 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003758/0.2869, allocations: 2.361 MB / 411.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.2885, allocations: 0.7634 MB / 412.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.2887, allocations: 4 kB / 412.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.2888, allocations: 43.58 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002838/0.2891, allocations: 83.27 kB / 412.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003285/0.2894, allocations: 111.8 kB / 412.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.2898, allocations: 310.6 kB / 412.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.29, allocations: 60.72 kB / 412.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.2901, allocations: 111.5 kB / 412.9 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001847/0.2903, allocations: 123.5 kB / 413 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.747e-05/0.2904, allocations: 20 kB / 413 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.243e-05/0.2904, allocations: 20 kB / 413.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.027e-05/0.2905, allocations: 55.77 kB / 413.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.2906, allocations: 131.3 kB / 413.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003175/0.2909, allocations: 277.8 kB / 413.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2909, allocations: 0 / 413.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.291, allocations: 0 / 413.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.291, allocations: 0 / 413.5 MB, free: 12.86 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.0009777/0.292, allocations: 0.561 MB / 414.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.292, allocations: 11.97 kB / 414.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.038e-05/0.2921, allocations: 54.73 kB / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.915e-05/0.2921, allocations: 32.75 kB / 414.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005266/0.2927, allocations: 260.8 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.3e-05/0.2927, allocations: 16.81 kB / 414.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.545e-05/0.2928, allocations: 24.38 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004721/0.2933, allocations: 238.8 kB / 414.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.2933, allocations: 15.94 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.2933, allocations: 8 kB / 414.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.2934, allocations: 4 kB / 414.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003636/0.2937, allocations: 159.8 kB / 414.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.2951, allocations: 1.013 MB / 415.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005623/0.2957, allocations: 298.4 kB / 416.2 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.2959, allocations: 91.41 kB / 416.3 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.2959, allocations: 7.984 kB / 416.3 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.2959, allocations: 42.5 kB / 416.3 MB, free: 9.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.703e-06/0.2959, allocations: 0 / 416.3 MB, free: 9.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002081/0.298, allocations: 1.341 MB / 417.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.443e-05/0.2981, allocations: 136.5 kB / 417.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000216/0.2983, allocations: 206.7 kB / 418 MB, free: 7.879 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.2984, allocations: 29.7 kB / 418 MB, free: 7.844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.2985, allocations: 156.7 kB / 418.2 MB, free: 7.688 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.2987, allocations: 134.9 kB / 418.3 MB, free: 7.555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.859e-05/0.2988, allocations: 66.14 kB / 418.4 MB, free: 7.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.2989, allocations: 334.8 kB / 418.7 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.2991, allocations: 80.83 kB / 418.8 MB, free: 7.066 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002712/0.2994, allocations: 198 kB / 419 MB, free: 6.824 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005323/0.2999, allocations: 297.8 kB / 419.3 MB, free: 6.484 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3, allocations: 4 kB / 419.3 MB, free: 6.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006902/0.3007, allocations: 341.1 kB / 419.6 MB, free: 6.141 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3007, allocations: 4 kB / 419.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.3007, allocations: 4 kB / 419.6 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.3007, allocations: 8 kB / 419.6 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003489/0.3011, allocations: 96.08 kB / 419.7 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.3011, allocations: 11.98 kB / 419.7 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.3013, allocations: 15.94 kB / 419.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.97e-05/0.3013, allocations: 16 kB / 419.8 MB, free: 5.988 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.0001507/0.3015, allocations: 149.7 kB / 419.9 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/0.3016, allocations: 27.8 kB / 419.9 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.3017, allocations: 37.39 kB / 420 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.3018, allocations: 4.188 kB / 420 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.3018, allocations: 0 / 420 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.3018, allocations: 15.91 kB / 420 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001526/0.3033, allocations: 0.9634 MB / 420.9 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/0.3033, allocations: 7.984 kB / 421 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000359/0.3037, allocations: 71.91 kB / 421 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.892e-06/0.3037, allocations: 4 kB / 421 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.08e-05/0.3038, allocations: 19.98 kB / 421 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.244e-06/0.3038, allocations: 7.938 kB / 421.1 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.3038, allocations: 4 kB / 421.1 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009093/0.3047, allocations: 0.7043 MB / 421.8 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.214e-05/0.3048, allocations: 96.97 kB / 421.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.769e-05/0.3048, allocations: 8 kB / 421.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.3051, allocations: 15.98 kB / 421.9 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.439e-05/0.3052, allocations: 31.91 kB / 421.9 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.331e-05/0.3052, allocations: 12 kB / 421.9 MB, free: 3.656 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001334/0.3054, allocations: 144.5 kB / 422.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3054, allocations: 0 / 422.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004781/0.3059, allocations: 68 kB / 422.1 MB, free: 3.449 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.001207/0.3071, allocations: 1.257 MB / 423.4 MB, free: 2.137 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005256/0.3076, allocations: 236.3 kB / 423.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3076, allocations: 8 kB / 423.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002405/0.3079, allocations: 119.8 kB / 423.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007656/0.3086, allocations: 68.19 kB / 423.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004952/0.3136, allocations: 3.492 MB / 427.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004205/0.3141, allocations: 0.7604 MB / 428.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.3142, allocations: 38.89 kB / 428.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001511/0.3144, allocations: 87.41 kB / 428.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3144, allocations: 0 / 428.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03093/0.3453, allocations: 5.769 MB / 434 MB, free: 7.477 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.368/8.714, allocations: 11.8 kB / 434 MB, free: 7.465 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_CompareBrakingForce.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1)