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 1.972/1.972, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.693e-05/3.712e-05, allocations: 4 kB / 255.4 MB, free: 3.125 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1035, allocations: 44.5 MB / 299.9 MB, free: 6.559 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4127/0.5163, allocations: 71.68 MB / 371.6 MB, free: 21.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.5166, allocations: 66.11 kB / 371.7 MB, free: 21.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006266/0.5229, allocations: 1.436 MB / 373.1 MB, free: 21.47 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.523, allocations: 0 / 373.1 MB, free: 21.47 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.523, allocations: 1.281 kB / 373.1 MB, free: 21.47 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.0004659/0.5235, allocations: 363 kB / 373.5 MB, free: 21.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.5235, allocations: 10.3 kB / 373.5 MB, free: 21.12 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.45e-05/0.5236, allocations: 38.02 kB / 373.5 MB, free: 21.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.934e-05/0.5236, allocations: 12.8 kB / 373.5 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.5238, allocations: 174.5 kB / 373.7 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.5238, allocations: 4.422 kB / 373.7 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.246e-05/0.5238, allocations: 6.625 kB / 373.7 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002098/0.5241, allocations: 102.8 kB / 373.8 MB, free: 20.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.5241, allocations: 0 / 373.8 MB, free: 20.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.5241, allocations: 1.938 kB / 373.8 MB, free: 20.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.5241, allocations: 5.562 kB / 373.8 MB, free: 20.79 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.5243, allocations: 35.59 kB / 373.8 MB, free: 20.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006977/0.525, allocations: 0.6453 MB / 374.5 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001502/0.5251, allocations: 102.6 kB / 374.6 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.29e-05/0.5252, allocations: 47.5 kB / 374.6 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.5253, allocations: 3.281 kB / 374.6 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.5253, allocations: 35.78 kB / 374.7 MB, free: 19.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=6): time 2.194e-06/0.5253, allocations: 0.9062 kB / 374.7 MB, free: 19.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003389/0.5257, allocations: 85.58 kB / 374.8 MB, free: 19.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.5257, allocations: 156.7 kB / 374.9 MB, free: 19.72 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.5259, allocations: 108.3 kB / 375 MB, free: 19.63 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.5259, allocations: 27.02 kB / 375 MB, free: 19.6 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.813e-05/0.526, allocations: 162.2 kB / 375.2 MB, free: 19.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.526, allocations: 15.64 kB / 375.2 MB, free: 19.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.742e-06/0.526, allocations: 4.969 kB / 375.2 MB, free: 19.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.939e-05/0.5261, allocations: 316.6 kB / 375.5 MB, free: 19.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.134e-05/0.5261, allocations: 8.625 kB / 375.5 MB, free: 19.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.116e-05/0.5262, allocations: 41.25 kB / 375.6 MB, free: 19.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.7e-05/0.5263, allocations: 17.2 kB / 375.6 MB, free: 19.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.5263, allocations: 0 / 375.6 MB, free: 19.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000177/0.5265, allocations: 74.53 kB / 375.7 MB, free: 19.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.5265, allocations: 6.734 kB / 375.7 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.5265, allocations: 1.906 kB / 375.7 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/0.5266, allocations: 4.984 kB / 375.7 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.5267, allocations: 19.58 kB / 375.7 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.5268, allocations: 1.031 kB / 375.7 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.5269, allocations: 18.09 kB / 375.7 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.5269, allocations: 3.344 kB / 375.7 MB, free: 19.02 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 7.215e-05/0.527, allocations: 110 kB / 375.8 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.5271, allocations: 4.953 kB / 375.8 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.424e-05/0.5272, allocations: 14.91 kB / 375.9 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.5272, allocations: 10.38 kB / 375.9 MB, free: 18.9 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.5272, allocations: 5.266 kB / 375.9 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.5272, allocations: 1.859 kB / 375.9 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005874/0.5278, allocations: 185.2 kB / 376 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.5279, allocations: 5.375 kB / 376.1 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002113/0.5281, allocations: 13.98 kB / 376.1 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.2e-05/0.5281, allocations: 2.156 kB / 376.1 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.5282, allocations: 1.812 kB / 376.1 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.5282, allocations: 6.156 kB / 376.1 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.5282, allocations: 1.641 kB / 376.1 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004082/0.5286, allocations: 0.5147 MB / 376.6 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.5287, allocations: 85.11 kB / 376.7 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/0.5288, allocations: 2.875 kB / 376.7 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006314/0.5294, allocations: 12.33 kB / 376.7 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.5295, allocations: 8.281 kB / 376.7 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.5296, allocations: 2.875 kB / 376.7 MB, free: 18.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001028/0.5297, allocations: 93.81 kB / 376.8 MB, free: 18.01 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.5297, allocations: 0 / 376.8 MB, free: 18.01 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005641/0.5303, allocations: 13.44 kB / 376.8 MB, free: 18.01 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.0005691/0.5309, allocations: 1.319 MB / 378.1 MB, free: 16.71 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001868/0.5311, allocations: 34.28 kB / 378.2 MB, free: 16.71 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5311, allocations: 0.7188 kB / 378.2 MB, free: 16.71 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.396e-05/0.5312, allocations: 29.7 kB / 378.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.5316, allocations: 4.391 kB / 378.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007786/0.5324, allocations: 189.5 kB / 378.4 MB, free: 16.52 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008545/0.5332, allocations: 0.6975 MB / 379.1 MB, free: 31.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.544e-05/0.5334, allocations: 18.95 kB / 379.1 MB, free: 31.81 MB / 330.7 MB Notification: Performance of SimCode: time 1.303e-06/0.5334, allocations: 0.7188 kB / 379.1 MB, free: 31.81 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.716/3.25, allocations: 1.214 MB / 380.3 MB, free: 31.74 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