Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.221e-05/3.237e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1017, allocations: 44.5 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4022/0.504, allocations: 71.81 MB / 371.7 MB, free: 21.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/0.5044, allocations: 64.58 kB / 371.8 MB, free: 21.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008481/0.5128, allocations: 1.664 MB / 373.5 MB, free: 21.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5129, allocations: 0 / 373.5 MB, free: 21.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.5129, allocations: 2.094 kB / 373.5 MB, free: 21.23 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005934/0.5135, allocations: 431.9 kB / 373.9 MB, free: 20.81 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/0.5136, allocations: 9.719 kB / 373.9 MB, free: 20.81 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.548e-05/0.5137, allocations: 37.67 kB / 373.9 MB, free: 20.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.217e-05/0.5137, allocations: 9.484 kB / 373.9 MB, free: 20.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.5139, allocations: 182.3 kB / 374.1 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/0.5139, allocations: 2.688 kB / 374.1 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.603e-05/0.5139, allocations: 5.016 kB / 374.1 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002162/0.5142, allocations: 93.83 kB / 374.2 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.5142, allocations: 2.812 kB / 374.2 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.5142, allocations: 5 kB / 374.2 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.5142, allocations: 1.188 kB / 374.2 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001241/0.5144, allocations: 33.02 kB / 374.2 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005172/0.5149, allocations: 388.4 kB / 374.6 MB, free: 20.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001738/0.5151, allocations: 90.91 kB / 374.7 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.5152, allocations: 46.14 kB / 374.8 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.114e-05/0.5152, allocations: 4.609 kB / 374.8 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.5155, allocations: 140.3 kB / 374.9 MB, free: 19.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.735e-06/0.5155, allocations: 0 / 374.9 MB, free: 19.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004694/0.516, allocations: 162.9 kB / 375.1 MB, free: 19.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.545e-05/0.5161, allocations: 161 kB / 375.2 MB, free: 19.65 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001365/0.5162, allocations: 126.2 kB / 375.3 MB, free: 19.55 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.5163, allocations: 32.14 kB / 375.4 MB, free: 19.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.711e-05/0.5163, allocations: 159.7 kB / 375.5 MB, free: 19.36 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.895e-05/0.5164, allocations: 26.38 kB / 375.6 MB, free: 19.35 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.064e-05/0.5164, allocations: 1.156 kB / 375.6 MB, free: 19.35 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.37e-05/0.5165, allocations: 321.4 kB / 375.9 MB, free: 19.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.056e-05/0.5166, allocations: 23.33 kB / 375.9 MB, free: 19.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.5167, allocations: 58.44 kB / 376 MB, free: 19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.5168, allocations: 82.64 kB / 376 MB, free: 18.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.5168, allocations: 0 / 376 MB, free: 18.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003469/0.5172, allocations: 173.7 kB / 376.2 MB, free: 18.83 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.496e-05/0.5172, allocations: 62.47 kB / 376.3 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.5172, allocations: 1.438 kB / 376.3 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.5173, allocations: 1.281 kB / 376.3 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.593e-05/0.5174, allocations: 14.86 kB / 376.3 MB, free: 18.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.5174, allocations: 2.703 kB / 376.3 MB, free: 18.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001794/0.5176, allocations: 19 kB / 376.3 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/0.5176, allocations: 5.859 kB / 376.3 MB, free: 18.75 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,step.y,pulse.y,$PRE.pulse.pulsStart,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,$PRE.table.y,table.y,$PRE.table.nextTime,table.nextTime,$PRE.table.index,table.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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.0001211/0.5177, allocations: 149.4 kB / 376.5 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.145e-05/0.5178, allocations: 10.42 kB / 376.5 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.98e-05/0.5179, allocations: 15.58 kB / 376.5 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.5179, allocations: 1.75 kB / 376.5 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.5179, allocations: 1.062 kB / 376.5 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.5179, allocations: 1.75 kB / 376.5 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002138/0.5182, allocations: 196.8 kB / 376.7 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.5182, allocations: 1.312 kB / 376.7 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.866e-05/0.5182, allocations: 6.203 kB / 376.7 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.5182, allocations: 1.656 kB / 376.7 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.5182, allocations: 7 kB / 376.7 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.5183, allocations: 1.703 kB / 376.7 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.5183, allocations: 5.188 kB / 376.7 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004189/0.5187, allocations: 235.6 kB / 376.9 MB, free: 18.24 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.109e-05/0.5188, allocations: 84.69 kB / 377 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.125e-05/0.5188, allocations: 7.453 kB / 377 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001772/0.519, allocations: 23.11 kB / 377 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.612e-05/0.5191, allocations: 17.75 kB / 377.1 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.5191, allocations: 4.406 kB / 377.1 MB, free: 18.13 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.061e-05/0.5192, allocations: 100.8 kB / 377.2 MB, free: 18.06 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5192, allocations: 0 / 377.2 MB, free: 18.06 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003769/0.5196, allocations: 36.97 kB / 377.2 MB, free: 18.05 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,step.y,pulse.y,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,table.y,table.nextTime,table.index) * Number of discrete states: 4 (table.y,table.nextTime,table.index,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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.0008247/0.5205, allocations: 0.9251 MB / 378.1 MB, free: 17.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003546/0.5209, allocations: 191.4 kB / 378.3 MB, free: 17.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.5209, allocations: 4.125 kB / 378.3 MB, free: 17.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001864/0.5211, allocations: 115.3 kB / 378.4 MB, free: 17.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.5214, allocations: 13.83 kB / 378.4 MB, free: 17.04 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007165/0.5221, allocations: 228.1 kB / 378.7 MB, free: 16.87 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006527/0.5228, allocations: 0.7002 MB / 379.4 MB, free: 32.17 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.84e-05/0.5229, allocations: 24.03 kB / 379.4 MB, free: 32.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5229, allocations: 1.031 kB / 379.4 MB, free: 32.16 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.573/3.095, allocations: 1.753 MB / 381.1 MB, free: 32.02 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat