Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.165/2.165, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.000361, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0988/0.09921, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4326/0.5319, allocations: 73.26 MB / 381.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.5322, allocations: 70.95 kB / 381.9 MB, free: 14.96 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02583/0.5581, allocations: 5.466 MB / 387.3 MB, free: 14.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5581, allocations: 0 / 387.3 MB, free: 14.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.497e-05/0.5581, allocations: 6.719 kB / 387.3 MB, free: 14.3 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001764/0.5599, allocations: 0.6176 MB / 388 MB, free: 13.85 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.56, allocations: 8.594 kB / 388 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.5601, allocations: 67.59 kB / 388 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.5603, allocations: 36.38 kB / 388.1 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004175/0.5607, allocations: 279.8 kB / 388.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.732e-05/0.5607, allocations: 22.09 kB / 388.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.5609, allocations: 27 kB / 388.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.562, allocations: 357.6 kB / 388.7 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.825e-05/0.562, allocations: 3.984 kB / 388.7 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.083e-05/0.5621, allocations: 16.67 kB / 388.8 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.5621, allocations: 3.75 kB / 388.8 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.5632, allocations: 366.7 kB / 389.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003035/0.5663, allocations: 1.122 MB / 390.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007948/0.5671, allocations: 289.9 kB / 390.5 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.945e-05/0.5673, allocations: 7.969 kB / 390.5 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.5673, allocations: 37.84 kB / 390.6 MB, free: 12.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.948e-06/0.5673, allocations: 0 / 390.6 MB, free: 12.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.01017/0.5775, allocations: 2.016 MB / 392.6 MB, free: 12.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.5776, allocations: 63.66 kB / 392.6 MB, free: 12.13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003726/0.578, allocations: 192.4 kB / 392.8 MB, free: 12.03 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001483/0.5781, allocations: 39.42 kB / 392.9 MB, free: 12 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.5783, allocations: 210.7 kB / 393.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002547/0.5786, allocations: 155 kB / 393.2 MB, free: 11.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.808e-05/0.5786, allocations: 6.688 kB / 393.2 MB, free: 11.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.87e-05/0.5788, allocations: 331 kB / 393.6 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008654/0.5796, allocations: 193.3 kB / 393.7 MB, free: 11.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008955/0.5806, allocations: 257.9 kB / 394 MB, free: 11.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007066/0.5813, allocations: 151.5 kB / 394.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.5813, allocations: 3.953 kB / 394.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.003268/0.5846, allocations: 0.6402 MB / 394.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.5847, allocations: 7.594 kB / 394.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/0.5847, allocations: 3.875 kB / 394.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00159/0.5864, allocations: 398 kB / 395.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006747/0.5871, allocations: 72.17 kB / 395.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/0.5892, allocations: 1.315 MB / 396.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.5906, allocations: 95.03 kB / 396.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.5907, allocations: 22.14 kB / 396.7 MB, free: 10.14 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004701/0.5912, allocations: 158.3 kB / 396.8 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002107/0.5915, allocations: 35.11 kB / 396.9 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003471/0.5949, allocations: 0.6483 MB / 397.5 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/0.595, allocations: 7.844 kB / 397.5 MB, free: 9.898 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.595, allocations: 0 / 397.5 MB, free: 9.898 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/0.5951, allocations: 3 kB / 397.5 MB, free: 9.898 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006288/0.6014, allocations: 1.32 MB / 398.9 MB, free: 9.477 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.6014, allocations: 0 / 398.9 MB, free: 9.477 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007378/0.6022, allocations: 60.8 kB / 398.9 MB, free: 9.473 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001328/0.6035, allocations: 357.6 kB / 399.3 MB, free: 9.438 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.395e-05/0.6037, allocations: 21.97 kB / 399.3 MB, free: 9.438 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001759/0.6054, allocations: 1.268 MB / 400.6 MB, free: 8.391 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.6055, allocations: 3.875 kB / 400.6 MB, free: 8.391 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003686/0.6092, allocations: 0.9231 MB / 401.5 MB, free: 8.074 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003697/0.6096, allocations: 155.7 kB / 401.6 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001902/0.6098, allocations: 15.06 kB / 401.7 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007268/0.6105, allocations: 60.41 kB / 401.7 MB, free: 7.953 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003768/0.6109, allocations: 100.9 kB / 401.8 MB, free: 7.949 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-05/0.6111, allocations: 30.75 kB / 401.8 MB, free: 7.945 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002528/0.6113, allocations: 155.6 kB / 402 MB, free: 7.867 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6113, allocations: 0 / 402 MB, free: 7.867 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009713/0.6123, allocations: 107.6 kB / 402.1 MB, free: 7.859 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004527/0.6169, allocations: 1.866 MB / 404 MB, free: 6.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.6191, allocations: 0.5199 MB / 404.5 MB, free: 6.582 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.6192, allocations: 4 kB / 404.5 MB, free: 6.578 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001196/0.6204, allocations: 280.1 kB / 404.8 MB, free: 6.559 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007906/0.6212, allocations: 40.89 kB / 404.8 MB, free: 6.555 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/0.6314, allocations: 3.625 MB / 408.4 MB, free: 4.469 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005715/0.632, allocations: 0.7865 MB / 409.2 MB, free: 19.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003068/0.6323, allocations: 85.77 kB / 409.3 MB, free: 19.76 MB / 330.7 MB Notification: Performance of SimCode: time 1.413e-06/0.6324, allocations: 7.781 kB / 409.3 MB, free: 19.76 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.008/3.64, allocations: 7.533 MB / 416.8 MB, free: 16.96 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat