Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.149/2.149, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.266e-05/3.286e-05, allocations: 3.984 kB / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1009, allocations: 44.5 MB / 299.9 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4076/0.5086, allocations: 71.69 MB / 371.6 MB, free: 21.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.5089, allocations: 64.72 kB / 371.7 MB, free: 21.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006307/0.5153, allocations: 1.432 MB / 373.1 MB, free: 21.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5153, allocations: 1.312 kB / 373.1 MB, free: 21.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.852e-05/0.5153, allocations: 1.375 kB / 373.1 MB, free: 21.09 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004751/0.5158, allocations: 367.2 kB / 373.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.5159, allocations: 9.969 kB / 373.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.095e-05/0.5159, allocations: 38.98 kB / 373.5 MB, free: 20.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.27e-05/0.516, allocations: 7.781 kB / 373.5 MB, free: 20.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.5161, allocations: 177.5 kB / 373.7 MB, free: 20.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.644e-05/0.5162, allocations: 7.078 kB / 373.7 MB, free: 20.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.091e-05/0.5162, allocations: 5.312 kB / 373.7 MB, free: 20.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002103/0.5164, allocations: 100.1 kB / 373.8 MB, free: 20.4 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.5164, allocations: 9.219 kB / 373.8 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.5165, allocations: 1.094 kB / 373.8 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.5165, allocations: 1 kB / 373.8 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.5166, allocations: 35.38 kB / 373.9 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007191/0.5173, allocations: 0.6412 MB / 374.5 MB, free: 19.78 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/0.5175, allocations: 102.7 kB / 374.6 MB, free: 19.65 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.523e-05/0.5176, allocations: 43.66 kB / 374.7 MB, free: 19.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.5176, allocations: 1.719 kB / 374.7 MB, free: 19.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.5177, allocations: 42.38 kB / 374.7 MB, free: 19.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=6): time 2.595e-06/0.5177, allocations: 0 / 374.7 MB, free: 19.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003367/0.518, allocations: 74.08 kB / 374.8 MB, free: 19.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.5181, allocations: 165.7 kB / 374.9 MB, free: 19.33 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.894e-05/0.5182, allocations: 106.8 kB / 375 MB, free: 19.24 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.5183, allocations: 30.58 kB / 375.1 MB, free: 19.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.727e-05/0.5183, allocations: 164.3 kB / 375.2 MB, free: 19.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.937e-05/0.5184, allocations: 11.83 kB / 375.2 MB, free: 19.05 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.596e-06/0.5184, allocations: 3 kB / 375.2 MB, free: 19.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.265e-05/0.5185, allocations: 313.6 kB / 375.6 MB, free: 18.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.522e-05/0.5185, allocations: 9.031 kB / 375.6 MB, free: 18.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.139e-05/0.5186, allocations: 42.41 kB / 375.6 MB, free: 18.69 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.784e-05/0.5186, allocations: 13.19 kB / 375.6 MB, free: 18.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.5187, allocations: 0 / 375.6 MB, free: 18.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002159/0.5189, allocations: 74.05 kB / 375.7 MB, free: 18.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.5189, allocations: 7.906 kB / 375.7 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.5189, allocations: 1.375 kB / 375.7 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.519, allocations: 5.141 kB / 375.7 MB, free: 18.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.5192, allocations: 18.12 kB / 375.7 MB, free: 18.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.5192, allocations: 1.125 kB / 375.7 MB, free: 18.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/0.5193, allocations: 22.73 kB / 375.7 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.5194, allocations: 3.547 kB / 375.7 MB, free: 18.63 MB / 314.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 6.857e-05/0.5194, allocations: 111.2 kB / 375.9 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.5196, allocations: 4.484 kB / 375.9 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.138e-05/0.5196, allocations: 19.27 kB / 375.9 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.5196, allocations: 2.531 kB / 375.9 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.5196, allocations: 4.859 kB / 375.9 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.5197, allocations: 1.875 kB / 375.9 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005051/0.5202, allocations: 181.5 kB / 376.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.5202, allocations: 1.781 kB / 376.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.5203, allocations: 17.86 kB / 376.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.5203, allocations: 1.094 kB / 376.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.5204, allocations: 3.047 kB / 376.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.5204, allocations: 2.094 kB / 376.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.5204, allocations: 5 kB / 376.1 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002749/0.5207, allocations: 0.5109 MB / 376.6 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.584e-05/0.5207, allocations: 89.45 kB / 376.7 MB, free: 17.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.361e-05/0.5208, allocations: 2.062 kB / 376.7 MB, free: 17.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003163/0.5211, allocations: 14 kB / 376.7 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.144e-05/0.5212, allocations: 10.09 kB / 376.7 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.5212, allocations: 3.859 kB / 376.7 MB, free: 17.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.812e-05/0.5213, allocations: 88.69 kB / 376.8 MB, free: 17.63 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5213, allocations: 0 / 376.8 MB, free: 17.63 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005473/0.5218, allocations: 10.62 kB / 376.8 MB, free: 17.63 MB / 314.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.001154/0.523, allocations: 1.324 MB / 378.1 MB, free: 32.33 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001922/0.5232, allocations: 32.88 kB / 378.2 MB, free: 32.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.5232, allocations: 0 / 378.2 MB, free: 32.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.418e-05/0.5233, allocations: 22.69 kB / 378.2 MB, free: 32.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004251/0.5238, allocations: 7.594 kB / 378.2 MB, free: 32.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000852/0.5246, allocations: 185.7 kB / 378.4 MB, free: 32.13 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.525, allocations: 0.6933 MB / 379.1 MB, free: 31.44 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.552e-05/0.5251, allocations: 22.84 kB / 379.1 MB, free: 31.43 MB / 330.7 MB Notification: Performance of SimCode: time 2.985e-06/0.5251, allocations: 0 / 379.1 MB, free: 31.43 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.599/3.124, allocations: 1.219 MB / 380.3 MB, free: 31.35 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat