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.001314/0.001314, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001406/0.001406, allocations: 205.2 kB / 18.74 MB, free: 4.312 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.43/1.43, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.001894/0.001894, allocations: 67.89 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2809, allocations: 50.54 MB / 409 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003531/0.2844, allocations: 2.361 MB / 411.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.2858, allocations: 0.7595 MB / 412.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.2859, allocations: 8 kB / 412.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.286, allocations: 39.58 kB / 412.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002571/0.2863, allocations: 87.27 kB / 412.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003137/0.2866, allocations: 115.7 kB / 412.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003588/0.287, allocations: 302.7 kB / 412.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.2872, allocations: 64.72 kB / 412.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.2873, allocations: 111.5 kB / 412.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.2875, allocations: 127.5 kB / 413 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.961e-05/0.2876, allocations: 20 kB / 413 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.744e-05/0.2876, allocations: 24 kB / 413 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.459e-05/0.2877, allocations: 55.7 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.2878, allocations: 127.4 kB / 413.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003067/0.2881, allocations: 269.8 kB / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2881, allocations: 3.938 kB / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2881, allocations: 0 / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.2881, allocations: 8 kB / 413.5 MB, free: 12.92 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.0008875/0.289, allocations: 0.5493 MB / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.2891, allocations: 8.031 kB / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.411e-05/0.2892, allocations: 62.72 kB / 414.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.794e-05/0.2892, allocations: 36.75 kB / 414.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.2896, allocations: 252.8 kB / 414.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.2896, allocations: 16.81 kB / 414.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.242e-05/0.2896, allocations: 24.38 kB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004352/0.2901, allocations: 246.7 kB / 414.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.2901, allocations: 7.953 kB / 414.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.2901, allocations: 12 kB / 414.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.2902, allocations: 4 kB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003692/0.2905, allocations: 163.8 kB / 414.9 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.2919, allocations: 1.016 MB / 415.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000554/0.2924, allocations: 290.6 kB / 416.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000185/0.2926, allocations: 87.41 kB / 416.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.009e-05/0.2927, allocations: 11.94 kB / 416.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.2927, allocations: 34.55 kB / 416.3 MB, free: 9.867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.482e-06/0.2927, allocations: 8 kB / 416.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001968/0.2947, allocations: 1.334 MB / 417.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.46e-05/0.2948, allocations: 140.4 kB / 417.8 MB, free: 8.168 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.295, allocations: 206.7 kB / 418 MB, free: 7.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.295, allocations: 29.7 kB / 418 MB, free: 7.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.2951, allocations: 156.7 kB / 418.1 MB, free: 7.766 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.2952, allocations: 122.9 kB / 418.3 MB, free: 7.645 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.679e-05/0.2953, allocations: 70.08 kB / 418.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2955, allocations: 338.8 kB / 418.7 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.2957, allocations: 80.83 kB / 418.7 MB, free: 7.148 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002716/0.296, allocations: 196.7 kB / 418.9 MB, free: 6.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004761/0.2965, allocations: 309.5 kB / 419.2 MB, free: 6.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2965, allocations: 0 / 419.2 MB, free: 6.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006052/0.2971, allocations: 341.2 kB / 419.6 MB, free: 6.219 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.2971, allocations: 7.984 kB / 419.6 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2971, allocations: 4 kB / 419.6 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.2972, allocations: 8 kB / 419.6 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003506/0.2975, allocations: 95.83 kB / 419.7 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.2975, allocations: 7.938 kB / 419.7 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.2977, allocations: 20.19 kB / 419.7 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.115e-05/0.2978, allocations: 20 kB / 419.7 MB, free: 6.059 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.0001401/0.2979, allocations: 153.6 kB / 419.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-05/0.298, allocations: 27.86 kB / 419.9 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.082e-05/0.2981, allocations: 29.41 kB / 419.9 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.2981, allocations: 4 kB / 419.9 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2981, allocations: 0 / 419.9 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.2981, allocations: 11.92 kB / 420 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.2995, allocations: 0.9636 MB / 420.9 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.2996, allocations: 8.062 kB / 420.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003706/0.2999, allocations: 79.91 kB / 421 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.3, allocations: 7.984 kB / 421 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.3, allocations: 8 kB / 421 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.3, allocations: 7.938 kB / 421 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.036e-06/0.3, allocations: 4 kB / 421 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008361/0.3009, allocations: 0.7079 MB / 421.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.234e-05/0.3009, allocations: 96.97 kB / 421.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/0.301, allocations: 11.98 kB / 421.8 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.3013, allocations: 16 kB / 421.9 MB, free: 3.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.499e-05/0.3013, allocations: 31.84 kB / 421.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/0.3014, allocations: 8 kB / 421.9 MB, free: 3.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001255/0.3015, allocations: 152.5 kB / 422 MB, free: 3.582 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3015, allocations: 0 / 422 MB, free: 3.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004612/0.302, allocations: 67.98 kB / 422.1 MB, free: 3.516 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.001128/0.3031, allocations: 1.249 MB / 423.4 MB, free: 2.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005228/0.3036, allocations: 240.1 kB / 423.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3036, allocations: 0 / 423.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002406/0.3039, allocations: 129.1 kB / 423.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007289/0.3046, allocations: 72 kB / 423.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004414/0.3091, allocations: 3.487 MB / 427.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.3095, allocations: 0.7682 MB / 428 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001346/0.3096, allocations: 34.95 kB / 428.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.3098, allocations: 83.41 kB / 428.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3098, allocations: 0 / 428.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02919/0.339, allocations: 5.774 MB / 433.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.476/8.815, allocations: 3.859 kB / 433.9 MB, free: 7.539 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_CompareBrakingForce_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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)