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.001254/0.001254, allocations: 121.9 kB / 17.84 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001368/0.001368, allocations: 206.1 kB / 18.79 MB, free: 4.273 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.414/1.414, allocations: 230.4 MB / 250 MB, free: 9.004 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.001875/0.001875, allocations: 59.84 kB / 366.8 MB, free: 7.539 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2879, allocations: 53.31 MB / 420.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003774/0.2917, allocations: 2.369 MB / 422.5 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.2931, allocations: 0.7673 MB / 423.3 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.2933, allocations: 4 kB / 423.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001683/0.2934, allocations: 39.58 kB / 423.3 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003013/0.2937, allocations: 91.27 kB / 423.4 MB, free: 5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003679/0.2941, allocations: 115.7 kB / 423.5 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004228/0.2945, allocations: 302.7 kB / 423.8 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.2947, allocations: 48.67 kB / 423.9 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.2949, allocations: 115.6 kB / 424 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001963/0.295, allocations: 127.4 kB / 424.1 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.004e-05/0.2951, allocations: 20 kB / 424.1 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.481e-05/0.2951, allocations: 20 kB / 424.2 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.02e-05/0.2952, allocations: 55.72 kB / 424.2 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.2953, allocations: 131.4 kB / 424.3 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003823/0.2957, allocations: 273.8 kB / 424.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.862e-06/0.2957, allocations: 7.984 kB / 424.6 MB, free: 3.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2957, allocations: 0 / 424.6 MB, free: 3.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.2957, allocations: 0 / 424.6 MB, free: 3.801 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.001023/0.2968, allocations: 0.5532 MB / 425.2 MB, free: 3.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.2968, allocations: 19.95 kB / 425.2 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.488e-05/0.2969, allocations: 54.73 kB / 425.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.106e-05/0.297, allocations: 28.75 kB / 425.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004363/0.2974, allocations: 260.8 kB / 425.5 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.2974, allocations: 12.81 kB / 425.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.672e-05/0.2975, allocations: 24.38 kB / 425.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004633/0.2979, allocations: 246.7 kB / 425.8 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.298, allocations: 7.953 kB / 425.8 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.756e-05/0.298, allocations: 12 kB / 425.8 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.659e-06/0.298, allocations: 4 kB / 425.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003837/0.2984, allocations: 159.8 kB / 426 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.2998, allocations: 1.02 MB / 427 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005497/0.3003, allocations: 274.3 kB / 427.3 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.3005, allocations: 87.41 kB / 427.4 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.3005, allocations: 11.92 kB / 427.4 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.3006, allocations: 42.56 kB / 427.4 MB, free: 0.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.543e-06/0.3006, allocations: 4 kB / 427.4 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002084/0.3027, allocations: 1.333 MB / 428.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.3028, allocations: 136.5 kB / 428.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.303, allocations: 206.7 kB / 429.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.303, allocations: 29.7 kB / 429.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.3031, allocations: 156.7 kB / 429.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.702e-05/0.3032, allocations: 126.9 kB / 429.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.3033, allocations: 74.14 kB / 429.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3035, allocations: 334.8 kB / 429.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.3037, allocations: 76.84 kB / 429.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002678/0.304, allocations: 202 kB / 430.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004631/0.3044, allocations: 298.8 kB / 430.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3044, allocations: 0 / 430.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005945/0.305, allocations: 349 kB / 430.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.305, allocations: 4 kB / 430.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.305, allocations: 4 kB / 430.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.3051, allocations: 8 kB / 430.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003529/0.3054, allocations: 96.02 kB / 430.8 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.3054, allocations: 4.25 kB / 430.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.3056, allocations: 19.94 kB / 430.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.3056, allocations: 16 kB / 430.8 MB, free: 12.96 MB / 350.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.0001604/0.3058, allocations: 153.6 kB / 431 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.609e-05/0.3059, allocations: 35.78 kB / 431 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.545e-05/0.3059, allocations: 29.41 kB / 431.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3059, allocations: 4 kB / 431.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.306, allocations: 3.984 kB / 431.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.306, allocations: 7.938 kB / 431.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001416/0.3074, allocations: 0.9635 MB / 432 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.3074, allocations: 4.25 kB / 432 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003582/0.3077, allocations: 79.89 kB / 432.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.774e-06/0.3078, allocations: 8 kB / 432.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.3078, allocations: 8 kB / 432.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.3078, allocations: 7.938 kB / 432.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.3078, allocations: 4 kB / 432.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008474/0.3086, allocations: 0.705 MB / 432.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.22e-05/0.3087, allocations: 101 kB / 432.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.3088, allocations: 8 kB / 433 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.309, allocations: 12 kB / 433 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.625e-05/0.3091, allocations: 35.84 kB / 433 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.879e-05/0.3091, allocations: 12 kB / 433 MB, free: 10.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.3092, allocations: 144.6 kB / 433.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3092, allocations: 0 / 433.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004639/0.3097, allocations: 68 kB / 433.2 MB, free: 10.42 MB / 350.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.001146/0.3108, allocations: 1.253 MB / 434.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004942/0.3113, allocations: 232.4 kB / 434.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3113, allocations: 0.5 kB / 434.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002262/0.3116, allocations: 123.8 kB / 434.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007206/0.3123, allocations: 71.41 kB / 434.9 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004661/0.3169, allocations: 3.488 MB / 438.4 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004449/0.3174, allocations: 0.7643 MB / 439.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.3175, allocations: 38.91 kB / 439.2 MB, free: 4.148 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.3177, allocations: 79.41 kB / 439.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3177, allocations: 4 kB / 439.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03033/0.348, allocations: 5.831 MB / 445.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.101/8.449, allocations: 11.09 kB / 445.1 MB, free: 14.39 MB / 366.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)