Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.807/1.807, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.116e-05/4.129e-05, allocations: 4 kB / 225 MB, free: 2.629 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2943, allocations: 38.76 MB / 263.8 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1268/0.4212, allocations: 66.39 MB / 330.2 MB, free: 7.273 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.4216, allocations: 67.97 kB / 330.3 MB, free: 7.207 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006249/0.4279, allocations: 1.442 MB / 331.7 MB, free: 5.758 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4279, allocations: 0 / 331.7 MB, free: 5.758 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.4279, allocations: 0 / 331.7 MB, free: 5.758 MB / 282.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.0005661/0.4285, allocations: 362.4 kB / 332.1 MB, free: 5.359 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.4286, allocations: 12.03 kB / 332.1 MB, free: 5.348 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.611e-05/0.4286, allocations: 38.56 kB / 332.1 MB, free: 5.301 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.318e-05/0.4287, allocations: 7.906 kB / 332.1 MB, free: 5.293 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001626/0.4289, allocations: 182.8 kB / 332.3 MB, free: 5.074 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.982e-05/0.4289, allocations: 8 kB / 332.3 MB, free: 5.066 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.4289, allocations: 4 kB / 332.3 MB, free: 5.062 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002389/0.4292, allocations: 113.8 kB / 332.4 MB, free: 4.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.4292, allocations: 4 kB / 332.4 MB, free: 4.926 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.4293, allocations: 8 kB / 332.4 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.4293, allocations: 0 / 332.4 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.4294, allocations: 35.92 kB / 332.5 MB, free: 4.883 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008953/0.4303, allocations: 0.638 MB / 333.1 MB, free: 4.18 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.4305, allocations: 101.1 kB / 333.2 MB, free: 4.035 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.4306, allocations: 44.34 kB / 333.3 MB, free: 3.977 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.4307, allocations: 7.938 kB / 333.3 MB, free: 3.969 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.4307, allocations: 34.56 kB / 333.3 MB, free: 3.926 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 3.416e-06/0.4307, allocations: 0 / 333.3 MB, free: 3.926 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003801/0.4311, allocations: 81.47 kB / 333.4 MB, free: 3.84 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.4313, allocations: 154.2 kB / 333.5 MB, free: 3.652 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.4314, allocations: 113 kB / 333.6 MB, free: 3.535 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.4314, allocations: 25.86 kB / 333.7 MB, free: 3.504 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.81e-05/0.4315, allocations: 162.7 kB / 333.8 MB, free: 3.34 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.436e-05/0.4316, allocations: 27.72 kB / 333.8 MB, free: 3.312 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/0.4316, allocations: 0 / 333.8 MB, free: 3.312 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.4318, allocations: 314.8 kB / 334.2 MB, free: 2.996 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.696e-05/0.4319, allocations: 12 kB / 334.2 MB, free: 2.984 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.808e-05/0.4319, allocations: 40.23 kB / 334.2 MB, free: 2.93 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.639e-05/0.432, allocations: 19.98 kB / 334.2 MB, free: 2.91 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.432, allocations: 0 / 334.2 MB, free: 2.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002077/0.4323, allocations: 69.56 kB / 334.3 MB, free: 2.836 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.4323, allocations: 11.94 kB / 334.3 MB, free: 2.824 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.4323, allocations: 160 / 334.3 MB, free: 2.824 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.4323, allocations: 8 kB / 334.3 MB, free: 2.816 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.4325, allocations: 15.98 kB / 334.3 MB, free: 2.801 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.4326, allocations: 4 kB / 334.3 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.4327, allocations: 8.125 kB / 334.3 MB, free: 2.789 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.4327, allocations: 4 kB / 334.3 MB, free: 2.785 MB / 282.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 0.0001036/0.4328, allocations: 112.9 kB / 334.5 MB, free: 2.668 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.433, allocations: 15.91 kB / 334.5 MB, free: 2.652 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.021e-05/0.433, allocations: 19.59 kB / 334.5 MB, free: 2.629 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.433, allocations: 0 / 334.5 MB, free: 2.629 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/0.4331, allocations: 0 / 334.5 MB, free: 2.629 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.4331, allocations: 7.938 kB / 334.5 MB, free: 2.621 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005226/0.4336, allocations: 185.6 kB / 334.7 MB, free: 2.391 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-06/0.4336, allocations: 0 / 334.7 MB, free: 2.391 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001452/0.4338, allocations: 15.98 kB / 334.7 MB, free: 2.375 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.4338, allocations: 0 / 334.7 MB, free: 2.375 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.4338, allocations: 4 kB / 334.7 MB, free: 2.371 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.4339, allocations: 7.938 kB / 334.7 MB, free: 2.363 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.4339, allocations: 0 / 334.7 MB, free: 2.363 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004174/0.4343, allocations: 0.5111 MB / 335.2 MB, free: 1.809 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.68e-05/0.4344, allocations: 89.02 kB / 335.3 MB, free: 1.703 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.4344, allocations: 3.953 kB / 335.3 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003193/0.4348, allocations: 11.98 kB / 335.3 MB, free: 1.688 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.612e-05/0.4348, allocations: 11.98 kB / 335.3 MB, free: 1.676 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.4349, allocations: 8 kB / 335.3 MB, free: 1.668 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.538e-05/0.435, allocations: 87.28 kB / 335.4 MB, free: 1.582 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.435, allocations: 0 / 335.4 MB, free: 1.582 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004953/0.4355, allocations: 8 kB / 335.4 MB, free: 1.574 MB / 282.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.0009327/0.4364, allocations: 1.334 MB / 336.8 MB, free: 200 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002005/0.4367, allocations: 40.12 kB / 336.8 MB, free: 160 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4367, allocations: 0 / 336.8 MB, free: 160 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.952e-05/0.4368, allocations: 23.94 kB / 336.8 MB, free: 136 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003677/0.4371, allocations: 11.94 kB / 336.8 MB, free: 124 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009053/0.4381, allocations: 180.7 kB / 337 MB, free: 15.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.4385, allocations: 0.7004 MB / 337.7 MB, free: 15.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.82e-05/0.4386, allocations: 19.44 kB / 337.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4386, allocations: 0 / 337.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.409/2.848, allocations: 1.206 MB / 338.9 MB, free: 13.94 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat