Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Blocks.Examples.BusUsage.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.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_1_cpp_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1/1, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002689/0.0002689, allocations: 4 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05538/0.05568, allocations: 25.17 MB / 183.6 MB, free: 5.875 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2395/0.2953, allocations: 33.8 MB / 217.4 MB, free: 6.363 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.2955, allocations: 66.31 kB / 217.5 MB, free: 6.352 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01001/0.3056, allocations: 2.547 MB / 220 MB, free: 5.109 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3056, allocations: 0 / 220 MB, free: 5.109 MB / 170.7 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.3056, allocations: 3.969 kB / 220 MB, free: 5.109 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004611/0.3061, allocations: 382.2 kB / 220.4 MB, free: 4.719 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.3062, allocations: 10.97 kB / 220.4 MB, free: 4.719 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.164e-05/0.3062, allocations: 41.8 kB / 220.4 MB, free: 4.676 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.666e-05/0.3063, allocations: 7.719 kB / 220.4 MB, free: 4.672 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.3064, allocations: 178 kB / 220.6 MB, free: 4.465 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.3064, allocations: 3.25 kB / 220.6 MB, free: 4.465 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.3064, allocations: 3.844 kB / 220.6 MB, free: 4.465 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002934/0.3067, allocations: 124.6 kB / 220.7 MB, free: 4.371 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.3068, allocations: 0 / 220.7 MB, free: 4.371 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.3068, allocations: 2.562 kB / 220.7 MB, free: 4.371 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.3068, allocations: 7.797 kB / 220.7 MB, free: 4.367 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002915/0.3071, allocations: 73.03 kB / 220.8 MB, free: 4.344 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006296/0.3077, allocations: 0.6302 MB / 221.4 MB, free: 3.711 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002233/0.308, allocations: 132.2 kB / 221.6 MB, free: 3.574 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.859e-05/0.3081, allocations: 0 / 221.6 MB, free: 3.574 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.3081, allocations: 45.84 kB / 221.6 MB, free: 3.527 MB / 170.7 MB Notification: Performance of pre-optimization done (n=6): time 1.633e-06/0.3081, allocations: 0 / 221.6 MB, free: 3.527 MB / 170.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006351/0.3087, allocations: 137.3 kB / 221.8 MB, free: 3.465 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.3088, allocations: 158 kB / 221.9 MB, free: 3.277 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.917e-05/0.3089, allocations: 111.2 kB / 222 MB, free: 3.18 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.3089, allocations: 25.7 kB / 222 MB, free: 3.148 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.502e-05/0.309, allocations: 169.3 kB / 222.2 MB, free: 2.988 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.309, allocations: 11.17 kB / 222.2 MB, free: 2.98 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.062e-06/0.309, allocations: 0 / 222.2 MB, free: 2.98 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.905e-05/0.3091, allocations: 322.2 kB / 222.5 MB, free: 2.664 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.3093, allocations: 26.97 kB / 222.6 MB, free: 2.656 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.3094, allocations: 62.84 kB / 222.6 MB, free: 2.602 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001413/0.3096, allocations: 35.58 kB / 222.7 MB, free: 2.594 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.3096, allocations: 0 / 222.7 MB, free: 2.594 MB / 170.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000349/0.3099, allocations: 110.7 kB / 222.8 MB, free: 2.535 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.31, allocations: 3.875 kB / 222.8 MB, free: 2.535 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.31, allocations: 3.844 kB / 222.8 MB, free: 2.535 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.31, allocations: 0 / 222.8 MB, free: 2.535 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.3102, allocations: 19.67 kB / 222.8 MB, free: 2.527 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.3102, allocations: 3.844 kB / 222.8 MB, free: 2.527 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001209/0.3103, allocations: 15.58 kB / 222.8 MB, free: 2.52 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.3103, allocations: 128 / 222.8 MB, free: 2.52 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.000104/0.3105, allocations: 116.8 kB / 222.9 MB, free: 2.406 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.3106, allocations: 7.766 kB / 222.9 MB, free: 2.402 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.284e-05/0.3106, allocations: 18.88 kB / 223 MB, free: 2.395 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3106, allocations: 3.844 kB / 223 MB, free: 2.395 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3107, allocations: 4 kB / 223 MB, free: 2.391 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.3107, allocations: 7.781 kB / 223 MB, free: 2.387 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004588/0.3111, allocations: 179.5 kB / 223.1 MB, free: 2.188 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.3112, allocations: 0 / 223.1 MB, free: 2.188 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.3113, allocations: 15.42 kB / 223.2 MB, free: 2.184 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.724e-06/0.3113, allocations: 3.953 kB / 223.2 MB, free: 2.18 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.3113, allocations: 3.875 kB / 223.2 MB, free: 2.18 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.3114, allocations: 0 / 223.2 MB, free: 2.18 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.3114, allocations: 3.844 kB / 223.2 MB, free: 2.18 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004533/0.3118, allocations: 0.5412 MB / 223.7 MB, free: 1.66 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.769e-05/0.3119, allocations: 92.06 kB / 223.8 MB, free: 1.559 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.3119, allocations: 0 / 223.8 MB, free: 1.559 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003141/0.3123, allocations: 7.719 kB / 223.8 MB, free: 1.559 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.587e-05/0.3123, allocations: 19.47 kB / 223.8 MB, free: 1.547 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.3124, allocations: 3.719 kB / 223.8 MB, free: 1.547 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.092e-05/0.3124, allocations: 92.08 kB / 223.9 MB, free: 1.469 MB / 170.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3124, allocations: 3.938 kB / 223.9 MB, free: 1.465 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004957/0.3129, allocations: 15.16 kB / 223.9 MB, free: 1.461 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0006913/0.3136, allocations: 1.353 MB / 225.3 MB, free: 144 kB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0003594/0.314, allocations: 71.91 kB / 225.4 MB, free: 128 kB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.314, allocations: 0 / 225.4 MB, free: 128 kB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.3142, allocations: 37.75 kB / 225.4 MB, free: 116 kB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003675/0.3146, allocations: 10.88 kB / 225.4 MB, free: 112 kB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009434/0.3156, allocations: 278.3 kB / 225.7 MB, free: 15.82 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.3159, allocations: 0.6996 MB / 226.4 MB, free: 15.11 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.3161, allocations: 21.94 kB / 226.4 MB, free: 15.11 MB / 186.7 MB Notification: Performance of SimCode: time 1.453e-06/0.3161, allocations: 0 / 226.4 MB, free: 15.11 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.435/2.751, allocations: 1.208 MB / 227.6 MB, free: 14.51 MB / 186.7 MB