Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Sensors.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.25/1.25, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.411e-05, allocations: 4 kB / 148.2 MB, free: 6.121 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05971/0.0598, allocations: 25.16 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2167/0.2766, allocations: 33.97 MB / 207.4 MB, free: 4.707 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.2769, allocations: 63.52 kB / 207.4 MB, free: 4.707 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008775/0.2857, allocations: 2.18 MB / 209.6 MB, free: 4.277 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2857, allocations: 4 kB / 209.6 MB, free: 4.273 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.2858, allocations: 3.188 kB / 209.6 MB, free: 4.273 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005305/0.2863, allocations: 393.1 kB / 210 MB, free: 3.902 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.2864, allocations: 13.03 kB / 210 MB, free: 3.902 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.617e-05/0.2864, allocations: 15.12 kB / 210 MB, free: 3.895 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001992/0.2866, allocations: 186.3 kB / 210.2 MB, free: 3.691 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.2867, allocations: 4.688 kB / 210.2 MB, free: 3.691 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.283e-05/0.2867, allocations: 11.84 kB / 210.2 MB, free: 3.688 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002135/0.2869, allocations: 66.86 kB / 210.3 MB, free: 3.68 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002351/0.2872, allocations: 90.94 kB / 210.4 MB, free: 3.648 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.2872, allocations: 1.125 kB / 210.4 MB, free: 3.648 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.2873, allocations: 7.922 kB / 210.4 MB, free: 3.645 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.2873, allocations: 2.844 kB / 210.4 MB, free: 3.645 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008535/0.2881, allocations: 463.2 kB / 210.8 MB, free: 3.348 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001352/0.2883, allocations: 57.48 kB / 210.9 MB, free: 3.324 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.606e-05/0.2884, allocations: 22.19 kB / 210.9 MB, free: 3.312 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.2884, allocations: 1.062 kB / 210.9 MB, free: 3.312 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.734e-05/0.2884, allocations: 35.97 kB / 210.9 MB, free: 3.27 MB / 170.7 MB Notification: Performance of pre-optimization done (n=8): time 2.665e-06/0.2884, allocations: 0 / 210.9 MB, free: 3.27 MB / 170.7 MB Notification: Performance of matching and sorting (n=10): time 0.0008847/0.2893, allocations: 0.5081 MB / 211.5 MB, free: 2.809 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.2894, allocations: 53.16 kB / 211.5 MB, free: 2.746 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.2895, allocations: 119.5 kB / 211.6 MB, free: 2.652 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.2895, allocations: 29.7 kB / 211.6 MB, free: 2.617 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.059e-05/0.2896, allocations: 198.9 kB / 211.8 MB, free: 2.438 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.2897, allocations: 31.52 kB / 211.9 MB, free: 2.418 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.815e-06/0.2897, allocations: 0 / 211.9 MB, free: 2.418 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.683e-05/0.2898, allocations: 320.4 kB / 212.2 MB, free: 2.105 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.558e-05/0.2899, allocations: 23.62 kB / 212.2 MB, free: 2.102 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.984e-05/0.29, allocations: 77.61 kB / 212.3 MB, free: 2.027 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.408e-05/0.2901, allocations: 38.45 kB / 212.3 MB, free: 2.023 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.2901, allocations: 1.25 kB / 212.3 MB, free: 2.023 MB / 170.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002877/0.2904, allocations: 120.7 kB / 212.4 MB, free: 1.977 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.2904, allocations: 7.938 kB / 212.4 MB, free: 1.977 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.475e-06/0.2904, allocations: 2.594 kB / 212.5 MB, free: 1.977 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/0.2905, allocations: 7.609 kB / 212.5 MB, free: 1.973 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002792/0.2908, allocations: 39.45 kB / 212.5 MB, free: 1.969 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.2908, allocations: 3.312 kB / 212.5 MB, free: 1.969 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.2909, allocations: 7.734 kB / 212.5 MB, free: 1.969 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.2909, allocations: 9.906 kB / 212.5 MB, free: 1.965 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.235e-05/0.291, allocations: 111.2 kB / 212.6 MB, free: 1.852 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001778/0.2912, allocations: 75.45 kB / 212.7 MB, free: 1.816 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.904e-05/0.2913, allocations: 16.45 kB / 212.7 MB, free: 1.805 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.8e-05/0.2913, allocations: 13.17 kB / 212.7 MB, free: 1.797 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2913, allocations: 1.625 kB / 212.7 MB, free: 1.797 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.2914, allocations: 1.406 kB / 212.7 MB, free: 1.797 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.2914, allocations: 0 / 212.7 MB, free: 1.797 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005544/0.2919, allocations: 387.7 kB / 213.1 MB, free: 1.496 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.2919, allocations: 0 / 213.1 MB, free: 1.496 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002352/0.2922, allocations: 23.03 kB / 213.1 MB, free: 1.496 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.2922, allocations: 1.312 kB / 213.1 MB, free: 1.496 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.2922, allocations: 1.281 kB / 213.1 MB, free: 1.496 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.2922, allocations: 1.25 kB / 213.1 MB, free: 1.496 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.2923, allocations: 5.125 kB / 213.1 MB, free: 1.492 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002993/0.2926, allocations: 251.3 kB / 213.4 MB, free: 1.297 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.712e-05/0.2926, allocations: 91.58 kB / 213.5 MB, free: 1.195 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.2927, allocations: 2.469 kB / 213.5 MB, free: 1.195 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.2928, allocations: 9.859 kB / 213.5 MB, free: 1.191 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.2929, allocations: 7.047 kB / 213.5 MB, free: 1.191 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.2929, allocations: 3.469 kB / 213.5 MB, free: 1.191 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.236e-05/0.293, allocations: 96.8 kB / 213.6 MB, free: 1.113 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.293, allocations: 0 / 213.6 MB, free: 1.113 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004362/0.2934, allocations: 20.38 kB / 213.6 MB, free: 1.113 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006235/0.2941, allocations: 0.9078 MB / 214.5 MB, free: 16.26 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0002195/0.2943, allocations: 69.48 kB / 214.6 MB, free: 16.25 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2943, allocations: 448 / 214.6 MB, free: 16.25 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 7.341e-05/0.2944, allocations: 35.28 kB / 214.6 MB, free: 16.25 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.2947, allocations: 9.234 kB / 214.6 MB, free: 16.24 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009992/0.2958, allocations: 352.1 kB / 215 MB, free: 15.96 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003781/0.2962, allocations: 0.7114 MB / 215.7 MB, free: 15.27 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.858e-05/0.2963, allocations: 34.83 kB / 215.7 MB, free: 15.26 MB / 186.7 MB Notification: Performance of SimCode: time 6.81e-07/0.2963, allocations: 1.281 kB / 215.7 MB, free: 15.26 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.703/2.999, allocations: 1.85 MB / 217.6 MB, free: 15.12 MB / 186.7 MB