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/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.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.043/1.043, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.614e-05/2.623e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05734/0.05741, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2159/0.2734, allocations: 33.04 MB / 206.4 MB, free: 4.625 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.2737, allocations: 60.11 kB / 206.5 MB, free: 4.625 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01106/0.2848, allocations: 2.535 MB / 209 MB, free: 4.23 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2848, allocations: 1.438 kB / 209 MB, free: 4.23 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.49e-05/0.2848, allocations: 1.031 kB / 209 MB, free: 4.23 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.0004524/0.2853, allocations: 366.2 kB / 209.4 MB, free: 3.867 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.2854, allocations: 14.22 kB / 209.4 MB, free: 3.863 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.739e-05/0.2854, allocations: 11.83 kB / 209.4 MB, free: 3.855 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.2855, allocations: 173.3 kB / 209.6 MB, free: 3.656 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.2856, allocations: 6.281 kB / 209.6 MB, free: 3.652 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.765e-05/0.2856, allocations: 3.562 kB / 209.6 MB, free: 3.652 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001265/0.2857, allocations: 23.97 kB / 209.6 MB, free: 3.652 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001647/0.2859, allocations: 94.3 kB / 209.7 MB, free: 3.574 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.2859, allocations: 0 / 209.7 MB, free: 3.574 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.286, allocations: 5.109 kB / 209.7 MB, free: 3.57 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.286, allocations: 2.188 kB / 209.7 MB, free: 3.57 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006339/0.2866, allocations: 0.61 MB / 210.3 MB, free: 2.996 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001399/0.2868, allocations: 104.7 kB / 210.4 MB, free: 2.867 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.01e-05/0.2869, allocations: 44.11 kB / 210.5 MB, free: 2.82 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.2869, allocations: 3.141 kB / 210.5 MB, free: 2.82 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.287, allocations: 40.78 kB / 210.5 MB, free: 2.777 MB / 170.7 MB Notification: Performance of pre-optimization done (n=6): time 2.815e-06/0.287, allocations: 0 / 210.5 MB, free: 2.777 MB / 170.7 MB Notification: Performance of matching and sorting (n=6): time 0.000336/0.2873, allocations: 68.86 kB / 210.6 MB, free: 2.734 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.2874, allocations: 160.9 kB / 210.7 MB, free: 2.547 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.2875, allocations: 106.2 kB / 210.8 MB, free: 2.457 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.2875, allocations: 25.86 kB / 210.9 MB, free: 2.426 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.875e-05/0.2876, allocations: 166.1 kB / 211 MB, free: 2.266 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.2876, allocations: 19.77 kB / 211 MB, free: 2.254 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.712e-06/0.2876, allocations: 0 / 211 MB, free: 2.254 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.592e-05/0.2877, allocations: 312.5 kB / 211.3 MB, free: 1.941 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.71e-05/0.2877, allocations: 10.5 kB / 211.4 MB, free: 1.941 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.479e-05/0.2878, allocations: 39.19 kB / 211.4 MB, free: 1.902 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.221e-05/0.2879, allocations: 19.05 kB / 211.4 MB, free: 1.895 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.2879, allocations: 0 / 211.4 MB, free: 1.895 MB / 170.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001612/0.2881, allocations: 65.42 kB / 211.5 MB, free: 1.859 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.2881, allocations: 10.33 kB / 211.5 MB, free: 1.855 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.2881, allocations: 0 / 211.5 MB, free: 1.855 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.2881, allocations: 10.94 kB / 211.5 MB, free: 1.848 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.2883, allocations: 13.19 kB / 211.5 MB, free: 1.848 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.2883, allocations: 5.219 kB / 211.5 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.2885, allocations: 13.95 kB / 211.5 MB, free: 1.84 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.2885, allocations: 6.656 kB / 211.5 MB, free: 1.836 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 () * 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 7.226e-05/0.2886, allocations: 105.9 kB / 211.6 MB, free: 1.73 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002472/0.2888, allocations: 73.48 kB / 211.7 MB, free: 1.688 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.289, allocations: 11.98 kB / 211.7 MB, free: 1.68 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.289, allocations: 12.78 kB / 211.7 MB, free: 1.676 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.289, allocations: 2.219 kB / 211.7 MB, free: 1.676 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.289, allocations: 1.344 kB / 211.7 MB, free: 1.676 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.2891, allocations: 1.375 kB / 211.7 MB, free: 1.676 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004283/0.2895, allocations: 160.4 kB / 211.9 MB, free: 1.52 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.2895, allocations: 1.438 kB / 211.9 MB, free: 1.52 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.2897, allocations: 16.44 kB / 211.9 MB, free: 1.516 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.257e-06/0.2897, allocations: 6.516 kB / 211.9 MB, free: 1.512 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.2897, allocations: 1.062 kB / 211.9 MB, free: 1.512 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.2897, allocations: 2.562 kB / 211.9 MB, free: 1.512 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.2897, allocations: 3.312 kB / 211.9 MB, free: 1.512 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002536/0.29, allocations: 0.5031 MB / 212.4 MB, free: 1.008 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.516e-05/0.2901, allocations: 89.66 kB / 212.5 MB, free: 0.9102 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.2901, allocations: 1.125 kB / 212.5 MB, free: 0.9102 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003178/0.2904, allocations: 9.906 kB / 212.5 MB, free: 0.9102 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.623e-05/0.2905, allocations: 19.33 kB / 212.5 MB, free: 0.8984 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.2905, allocations: 6.562 kB / 212.6 MB, free: 0.8984 MB / 170.7 MB Notification: Performance of sorting global known variables: time 5.021e-05/0.2906, allocations: 90.64 kB / 212.6 MB, free: 0.8242 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.2906, allocations: 0 / 212.6 MB, free: 0.8242 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0005255/0.2911, allocations: 9 kB / 212.7 MB, free: 0.8242 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 () * 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.0007275/0.2919, allocations: 1.317 MB / 214 MB, free: 15.52 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0001642/0.2921, allocations: 32.34 kB / 214 MB, free: 15.52 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.2921, allocations: 3.938 kB / 214 MB, free: 15.52 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 6.948e-05/0.2922, allocations: 19.84 kB / 214 MB, free: 15.51 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003977/0.2926, allocations: 8.547 kB / 214 MB, free: 15.51 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008215/0.2934, allocations: 180.8 kB / 214.2 MB, free: 15.32 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.2938, allocations: 0.6963 MB / 214.9 MB, free: 14.62 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.396e-05/0.2938, allocations: 23.66 kB / 214.9 MB, free: 14.62 MB / 186.7 MB Notification: Performance of SimCode: time 1.042e-06/0.2939, allocations: 0 / 214.9 MB, free: 14.62 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.489/2.783, allocations: 1.213 MB / 216.1 MB, free: 14.53 MB / 186.7 MB