Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.004/2.004, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.636e-05/3.65e-05, allocations: 4 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2741, allocations: 38.76 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1203/0.3945, allocations: 66.51 MB / 330.3 MB, free: 7.254 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.3949, allocations: 55.98 kB / 330.4 MB, free: 7.199 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008049/0.4029, allocations: 1.669 MB / 332.1 MB, free: 5.527 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.403, allocations: 0 / 332.1 MB, free: 5.527 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.403, allocations: 4 kB / 332.1 MB, free: 5.523 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006182/0.4036, allocations: 421.8 kB / 332.5 MB, free: 5.055 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.4037, allocations: 12.03 kB / 332.5 MB, free: 5.043 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.18e-05/0.4038, allocations: 38.55 kB / 332.5 MB, free: 4.996 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/0.4038, allocations: 11.91 kB / 332.6 MB, free: 4.984 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000159/0.404, allocations: 177.5 kB / 332.7 MB, free: 4.773 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.404, allocations: 8 kB / 332.7 MB, free: 4.766 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.208e-05/0.4041, allocations: 4 kB / 332.7 MB, free: 4.762 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002251/0.4043, allocations: 93 kB / 332.8 MB, free: 4.652 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.4043, allocations: 7.938 kB / 332.8 MB, free: 4.645 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.4043, allocations: 4 kB / 332.8 MB, free: 4.641 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.4044, allocations: 0 / 332.8 MB, free: 4.641 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.4045, allocations: 28 kB / 332.9 MB, free: 4.613 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005749/0.4051, allocations: 390.8 kB / 333.2 MB, free: 4.172 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001918/0.4053, allocations: 87.78 kB / 333.3 MB, free: 4.059 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.4054, allocations: 54.64 kB / 333.4 MB, free: 3.996 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.4055, allocations: 0 / 333.4 MB, free: 3.996 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002688/0.4057, allocations: 147.6 kB / 333.5 MB, free: 3.824 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 2.064e-06/0.4058, allocations: 0 / 333.5 MB, free: 3.824 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004479/0.4062, allocations: 155.2 kB / 333.7 MB, free: 3.66 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.4063, allocations: 162.2 kB / 333.8 MB, free: 3.465 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.4065, allocations: 125.2 kB / 334 MB, free: 3.332 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.4065, allocations: 25.7 kB / 334 MB, free: 3.301 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.07e-05/0.4066, allocations: 162.8 kB / 334.1 MB, free: 3.137 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.119e-05/0.4067, allocations: 27.84 kB / 334.2 MB, free: 3.109 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-06/0.4067, allocations: 0 / 334.2 MB, free: 3.109 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.4068, allocations: 310.8 kB / 334.5 MB, free: 2.797 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.414e-05/0.4069, allocations: 24 kB / 334.5 MB, free: 2.773 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.4071, allocations: 59.42 kB / 334.6 MB, free: 2.703 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.4072, allocations: 75.39 kB / 334.6 MB, free: 2.617 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.4072, allocations: 8 kB / 334.6 MB, free: 2.609 MB / 282.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003579/0.4076, allocations: 180.8 kB / 334.8 MB, free: 2.414 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.312e-05/0.4077, allocations: 59.41 kB / 334.9 MB, free: 2.344 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.4077, allocations: 0 / 334.9 MB, free: 2.344 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.4077, allocations: 4 kB / 334.9 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.093e-05/0.4078, allocations: 11.92 kB / 334.9 MB, free: 2.328 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.4078, allocations: 0 / 334.9 MB, free: 2.328 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001766/0.408, allocations: 15.94 kB / 334.9 MB, free: 2.312 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.744e-05/0.4081, allocations: 12.05 kB / 334.9 MB, free: 2.301 MB / 282.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.0001569/0.4082, allocations: 142.7 kB / 335.1 MB, free: 2.148 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.241e-05/0.4083, allocations: 11.86 kB / 335.1 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.63e-05/0.4083, allocations: 16.08 kB / 335.1 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.4084, allocations: 0 / 335.1 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.4084, allocations: 11.92 kB / 335.1 MB, free: 2.105 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.4084, allocations: 3.938 kB / 335.1 MB, free: 2.102 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002464/0.4087, allocations: 193.6 kB / 335.3 MB, free: 1.863 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.4087, allocations: 4 kB / 335.3 MB, free: 1.859 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.085e-05/0.4087, allocations: 11.92 kB / 335.3 MB, free: 1.848 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.4087, allocations: 3.953 kB / 335.3 MB, free: 1.844 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.4088, allocations: 4 kB / 335.3 MB, free: 1.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.4088, allocations: 0 / 335.3 MB, free: 1.84 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4088, allocations: 0 / 335.3 MB, free: 1.84 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004743/0.4093, allocations: 235.9 kB / 335.5 MB, free: 1.566 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.234e-05/0.4093, allocations: 85.02 kB / 335.6 MB, free: 1.465 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.147e-05/0.4094, allocations: 8 kB / 335.6 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.4096, allocations: 15.98 kB / 335.6 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.526e-05/0.4097, allocations: 11.98 kB / 335.7 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.4097, allocations: 7.984 kB / 335.7 MB, free: 1.422 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001012/0.4098, allocations: 106.4 kB / 335.8 MB, free: 1.32 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4098, allocations: 0 / 335.8 MB, free: 1.32 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004151/0.4103, allocations: 36 kB / 335.8 MB, free: 1.285 MB / 282.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.001004/0.4113, allocations: 0.9227 MB / 336.7 MB, free: 324 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003756/0.4117, allocations: 186.7 kB / 336.9 MB, free: 112 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.4117, allocations: 4 kB / 336.9 MB, free: 108 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002272/0.4119, allocations: 115.4 kB / 337 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.4123, allocations: 19.89 kB / 337 MB, free: 15.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007198/0.413, allocations: 234.3 kB / 337.3 MB, free: 15.69 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.4133, allocations: 0.7004 MB / 338 MB, free: 14.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.311e-05/0.4134, allocations: 23.42 kB / 338 MB, free: 14.94 MB / 298.7 MB Notification: Performance of SimCode: time 9.62e-07/0.4134, allocations: 3.938 kB / 338 MB, free: 14.93 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.555/2.968, allocations: 1.74 MB / 339.7 MB, free: 13.2 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat