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 2.237/2.237, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.088e-05/3.105e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3785/0.3786, allocations: 44.5 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.132/0.5106, allocations: 71.15 MB / 365.3 MB, free: 10.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.511, allocations: 67.95 kB / 365.4 MB, free: 10.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00779/0.5188, allocations: 1.638 MB / 367.1 MB, free: 9.121 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5188, allocations: 0 / 367.1 MB, free: 9.121 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.5189, allocations: 4 kB / 367.1 MB, free: 9.117 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.000615/0.5195, allocations: 429.8 kB / 367.5 MB, free: 8.641 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.5196, allocations: 8.031 kB / 367.5 MB, free: 8.633 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.784e-05/0.5196, allocations: 11.89 kB / 367.5 MB, free: 8.621 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/0.5198, allocations: 182.9 kB / 367.7 MB, free: 8.402 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.5198, allocations: 0 / 367.7 MB, free: 8.402 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/0.5199, allocations: 4 kB / 367.7 MB, free: 8.398 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001456/0.52, allocations: 24 kB / 367.7 MB, free: 8.375 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.5203, allocations: 93.05 kB / 367.8 MB, free: 8.266 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.5203, allocations: 4 kB / 367.8 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.5203, allocations: 0 / 367.8 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.5203, allocations: 4 kB / 367.8 MB, free: 8.258 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005499/0.5209, allocations: 359.4 kB / 368.1 MB, free: 7.859 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000176/0.5211, allocations: 87.8 kB / 368.2 MB, free: 7.746 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.41e-05/0.5212, allocations: 38.58 kB / 368.3 MB, free: 7.699 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.183e-05/0.5212, allocations: 8 kB / 368.3 MB, free: 7.691 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002614/0.5215, allocations: 135.7 kB / 368.4 MB, free: 7.531 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.755e-06/0.5215, allocations: 0 / 368.4 MB, free: 7.531 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003953/0.5219, allocations: 121.5 kB / 368.5 MB, free: 7.406 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.522, allocations: 166.2 kB / 368.7 MB, free: 7.207 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.5222, allocations: 119 kB / 368.8 MB, free: 7.086 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.5222, allocations: 29.7 kB / 368.8 MB, free: 7.051 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.875e-05/0.5223, allocations: 158.6 kB / 369 MB, free: 6.895 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.893e-05/0.5224, allocations: 27.64 kB / 369 MB, free: 6.867 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-06/0.5224, allocations: 0 / 369 MB, free: 6.867 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.5225, allocations: 314.8 kB / 369.3 MB, free: 6.551 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.208e-05/0.5226, allocations: 23.98 kB / 369.4 MB, free: 6.527 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.605e-05/0.5227, allocations: 62.44 kB / 369.4 MB, free: 6.457 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001411/0.5229, allocations: 19.98 kB / 369.4 MB, free: 6.438 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.5229, allocations: 4 kB / 369.4 MB, free: 6.434 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003275/0.5232, allocations: 113.6 kB / 369.5 MB, free: 6.316 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.227e-05/0.5233, allocations: 59.41 kB / 369.6 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.5233, allocations: 0 / 369.6 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.5234, allocations: 0 / 369.6 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.937e-05/0.5235, allocations: 12.05 kB / 369.6 MB, free: 6.234 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.5235, allocations: 0 / 369.6 MB, free: 6.234 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.5236, allocations: 19.84 kB / 369.6 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.5237, allocations: 4 kB / 369.6 MB, free: 6.211 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.0001535/0.5239, allocations: 158.3 kB / 369.8 MB, free: 6.043 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003387/0.5242, allocations: 133.5 kB / 369.9 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.003e-05/0.5242, allocations: 11.97 kB / 369.9 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.823e-05/0.5243, allocations: 16.41 kB / 370 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.5243, allocations: 0 / 370 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5243, allocations: 0 / 370 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.5244, allocations: 0 / 370 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002147/0.5246, allocations: 174.1 kB / 370.1 MB, free: 5.676 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5246, allocations: 0 / 370.1 MB, free: 5.676 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.766e-05/0.5246, allocations: 8.234 kB / 370.1 MB, free: 5.668 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.5246, allocations: 0 / 370.1 MB, free: 5.668 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/0.5247, allocations: 8 kB / 370.1 MB, free: 5.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.5247, allocations: 0 / 370.1 MB, free: 5.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/0.5247, allocations: 8 kB / 370.1 MB, free: 5.652 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003626/0.5251, allocations: 190 kB / 370.3 MB, free: 5.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.47e-05/0.5251, allocations: 88.95 kB / 370.4 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.028e-05/0.5252, allocations: 4 kB / 370.4 MB, free: 5.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.5254, allocations: 15.98 kB / 370.4 MB, free: 5.305 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.989e-05/0.5255, allocations: 11.98 kB / 370.5 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.5255, allocations: 11.89 kB / 370.5 MB, free: 5.281 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.516e-05/0.5256, allocations: 100.4 kB / 370.6 MB, free: 5.184 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5256, allocations: 4 kB / 370.6 MB, free: 5.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004009/0.526, allocations: 28 kB / 370.6 MB, free: 5.152 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.0009221/0.5269, allocations: 0.8837 MB / 371.5 MB, free: 4.223 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003322/0.5273, allocations: 182.7 kB / 371.7 MB, free: 4.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5273, allocations: 4.125 kB / 371.7 MB, free: 4.016 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.5275, allocations: 103.4 kB / 371.8 MB, free: 3.902 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.5278, allocations: 19.94 kB / 371.8 MB, free: 3.883 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006922/0.5285, allocations: 218.9 kB / 372 MB, free: 3.621 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.5289, allocations: 0.7042 MB / 372.7 MB, free: 2.891 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.112e-05/0.5289, allocations: 23.42 kB / 372.7 MB, free: 2.867 MB / 314.7 MB Notification: Performance of SimCode: time 1.012e-06/0.529, allocations: 3.938 kB / 372.7 MB, free: 2.863 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.52/3.049, allocations: 1.742 MB / 374.5 MB, free: 1.125 MB / 314.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