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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.073/1.073, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002751/0.0002753, allocations: 8 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05758/0.0579, allocations: 25.17 MB / 183.6 MB, free: 5.875 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2706/0.3286, allocations: 34.72 MB / 218.3 MB, free: 6.535 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.3289, allocations: 65.41 kB / 218.4 MB, free: 6.527 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008945/0.3378, allocations: 2.191 MB / 220.6 MB, free: 5.582 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3379, allocations: 0 / 220.6 MB, free: 5.582 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.061e-05/0.3379, allocations: 3.844 kB / 220.6 MB, free: 5.582 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.0005477/0.3385, allocations: 407.7 kB / 221 MB, free: 5.18 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.3385, allocations: 11.62 kB / 221 MB, free: 5.18 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.44e-05/0.3386, allocations: 48.7 kB / 221 MB, free: 5.137 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.424e-05/0.3387, allocations: 15.31 kB / 221.1 MB, free: 5.129 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.3389, allocations: 192.4 kB / 221.2 MB, free: 4.918 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.3389, allocations: 11.28 kB / 221.3 MB, free: 4.914 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.998e-05/0.3389, allocations: 15.66 kB / 221.3 MB, free: 4.91 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003336/0.3393, allocations: 128.8 kB / 221.4 MB, free: 4.852 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.3393, allocations: 3.906 kB / 221.4 MB, free: 4.848 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.299e-05/0.3393, allocations: 15.14 kB / 221.4 MB, free: 4.84 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.3394, allocations: 5 kB / 221.4 MB, free: 4.84 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002675/0.3396, allocations: 77.12 kB / 221.5 MB, free: 4.824 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009072/0.3405, allocations: 492.4 kB / 222 MB, free: 4.441 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001963/0.3408, allocations: 71.28 kB / 222 MB, free: 4.41 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.3408, allocations: 4 kB / 222 MB, free: 4.406 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/0.3408, allocations: 34.52 kB / 222.1 MB, free: 4.363 MB / 170.7 MB Notification: Performance of pre-optimization done (n=8): time 2.955e-06/0.3408, allocations: 0 / 222.1 MB, free: 4.363 MB / 170.7 MB Notification: Performance of matching and sorting (n=10): time 0.00122/0.3421, allocations: 0.5843 MB / 222.7 MB, free: 3.879 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.3421, allocations: 59.19 kB / 222.7 MB, free: 3.812 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.3423, allocations: 116 kB / 222.8 MB, free: 3.711 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.834e-05/0.3423, allocations: 29.14 kB / 222.9 MB, free: 3.68 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.285e-05/0.3424, allocations: 193.6 kB / 223.1 MB, free: 3.5 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.015e-05/0.3425, allocations: 34.58 kB / 223.1 MB, free: 3.477 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.446e-05/0.3425, allocations: 7.625 kB / 223.1 MB, free: 3.473 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 8.381e-05/0.3426, allocations: 314.7 kB / 223.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.3428, allocations: 34.11 kB / 223.4 MB, free: 3.152 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.343, allocations: 89.3 kB / 223.5 MB, free: 3.07 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.3433, allocations: 42.67 kB / 223.6 MB, free: 3.066 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.3433, allocations: 3.844 kB / 223.6 MB, free: 3.066 MB / 170.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0006321/0.344, allocations: 153.2 kB / 223.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.597e-05/0.344, allocations: 7.641 kB / 223.7 MB, free: 3 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.3441, allocations: 7.828 kB / 223.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.747e-05/0.3441, allocations: 3.688 kB / 223.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003501/0.3445, allocations: 38.19 kB / 223.8 MB, free: 2.984 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.3445, allocations: 7.75 kB / 223.8 MB, free: 2.98 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.3447, allocations: 11.5 kB / 223.8 MB, free: 2.977 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.582e-05/0.3448, allocations: 7.469 kB / 223.8 MB, free: 2.977 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 () * Number of clocked 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 0.0001688/0.345, allocations: 135.6 kB / 223.9 MB, free: 2.852 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.926e-05/0.345, allocations: 7.625 kB / 223.9 MB, free: 2.848 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.108e-05/0.3451, allocations: 22.53 kB / 224 MB, free: 2.832 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3452, allocations: 0 / 224 MB, free: 2.832 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.3452, allocations: 0 / 224 MB, free: 2.832 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.3452, allocations: 0 / 224 MB, free: 2.832 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007647/0.346, allocations: 437.2 kB / 224.4 MB, free: 2.469 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.346, allocations: 0 / 224.4 MB, free: 2.469 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002289/0.3462, allocations: 22.02 kB / 224.4 MB, free: 2.465 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.3463, allocations: 3.688 kB / 224.4 MB, free: 2.465 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.3463, allocations: 0 / 224.4 MB, free: 2.465 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.3463, allocations: 4.062 kB / 224.4 MB, free: 2.461 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3463, allocations: 3.531 kB / 224.4 MB, free: 2.461 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004266/0.3467, allocations: 279.8 kB / 224.7 MB, free: 2.25 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.197e-05/0.3468, allocations: 96.27 kB / 224.8 MB, free: 2.145 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.3469, allocations: 7.922 kB / 224.8 MB, free: 2.137 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.347, allocations: 6.781 kB / 224.8 MB, free: 2.137 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.619e-05/0.3471, allocations: 3.781 kB / 224.8 MB, free: 2.137 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.3471, allocations: 7.703 kB / 224.8 MB, free: 2.133 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.734e-05/0.3471, allocations: 105.9 kB / 224.9 MB, free: 2.047 MB / 170.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3472, allocations: 4.062 kB / 224.9 MB, free: 2.043 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.000362/0.3475, allocations: 26.25 kB / 224.9 MB, free: 2.043 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 () * Number of clocked 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.0006785/0.3482, allocations: 0.9358 MB / 225.9 MB, free: 1.184 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0003131/0.3486, allocations: 79.16 kB / 226 MB, free: 1.168 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.3486, allocations: 4.281 kB / 226 MB, free: 1.168 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.3487, allocations: 41.8 kB / 226 MB, free: 1.156 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.349, allocations: 19 kB / 226 MB, free: 1.145 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.3513, allocations: 2.155 MB / 228.2 MB, free: 15.2 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.3518, allocations: 0.7135 MB / 228.9 MB, free: 14.48 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.544e-05/0.3519, allocations: 32.67 kB / 228.9 MB, free: 14.47 MB / 186.7 MB Notification: Performance of SimCode: time 1.733e-06/0.3519, allocations: 3.688 kB / 228.9 MB, free: 14.47 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.592/2.944, allocations: 1.871 MB / 230.8 MB, free: 13.55 MB / 186.7 MB