Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.27/2.27, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.51e-05/3.512e-05, allocations: 4 kB / 269.4 MB, free: 6.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1438, allocations: 47.57 MB / 317 MB, free: 6.656 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4259/0.5697, allocations: 79.27 MB / 396.3 MB, free: 8.785 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.57, allocations: 66.03 kB / 396.3 MB, free: 8.754 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02678/0.5968, allocations: 5.675 MB / 402 MB, free: 3.973 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5969, allocations: 0 / 402 MB, free: 3.973 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.855e-05/0.597, allocations: 4 kB / 402 MB, free: 3.969 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008887/0.5979, allocations: 491.2 kB / 402.5 MB, free: 3.449 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.5979, allocations: 8.031 kB / 402.5 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.852e-05/0.598, allocations: 42.11 kB / 402.6 MB, free: 3.395 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.208e-05/0.5981, allocations: 15.81 kB / 402.6 MB, free: 3.379 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000789/0.5989, allocations: 268.3 kB / 402.8 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.387e-05/0.5989, allocations: 3.812 kB / 402.8 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.493e-05/0.599, allocations: 11.95 kB / 402.8 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004268/0.5994, allocations: 116.1 kB / 403 MB, free: 2.965 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.5995, allocations: 0 / 403 MB, free: 2.965 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.908e-05/0.5995, allocations: 7.875 kB / 403 MB, free: 2.961 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.5996, allocations: 0 / 403 MB, free: 2.961 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002536/0.5998, allocations: 43.36 kB / 403 MB, free: 2.93 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/0.6012, allocations: 0.6158 MB / 403.6 MB, free: 2.305 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004084/0.6017, allocations: 122.1 kB / 403.7 MB, free: 2.184 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001726/0.6019, allocations: 45.94 kB / 403.8 MB, free: 2.141 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.6019, allocations: 0 / 403.8 MB, free: 2.141 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003572/0.6023, allocations: 121.5 kB / 403.9 MB, free: 2.016 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 3.206e-06/0.6024, allocations: 4 kB / 403.9 MB, free: 2.012 MB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006306/0.603, allocations: 136.8 kB / 404 MB, free: 1.895 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.6031, allocations: 128.5 kB / 404.2 MB, free: 1.738 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006949/0.6038, allocations: 258.5 kB / 404.4 MB, free: 1.523 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/0.6039, allocations: 33.56 kB / 404.5 MB, free: 1.488 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.6041, allocations: 123.2 kB / 404.6 MB, free: 1.387 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.291e-05/0.6042, allocations: 23.12 kB / 404.6 MB, free: 1.367 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.768e-05/0.6042, allocations: 3.938 kB / 404.6 MB, free: 1.367 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.6044, allocations: 338.4 kB / 404.9 MB, free: 1.035 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.6046, allocations: 30.69 kB / 405 MB, free: 1.016 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002223/0.6049, allocations: 77.75 kB / 405 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.6051, allocations: 35.77 kB / 405.1 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.749e-06/0.6051, allocations: 4 kB / 405.1 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005546/0.6057, allocations: 128.4 kB / 405.2 MB, free: 0.793 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.6057, allocations: 4 kB / 405.2 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.6058, allocations: 4 kB / 405.2 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.6058, allocations: 3.938 kB / 405.2 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002307/0.606, allocations: 23.55 kB / 405.2 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.6061, allocations: 4 kB / 405.2 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003364/0.6064, allocations: 19.98 kB / 405.3 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.656e-05/0.6065, allocations: 15.88 kB / 405.3 MB, free: 0.7266 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: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001714/0.6067, allocations: 116.5 kB / 405.4 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.6068, allocations: 19.81 kB / 405.4 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004985/0.6073, allocations: 114.5 kB / 405.5 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.6073, allocations: 0 / 405.5 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.6074, allocations: 4 kB / 405.5 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.6074, allocations: 4 kB / 405.5 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005238/0.608, allocations: 247.9 kB / 405.8 MB, free: 232 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.932e-06/0.608, allocations: 0 / 405.8 MB, free: 232 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.6081, allocations: 15.92 kB / 405.8 MB, free: 220 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.968e-06/0.6081, allocations: 0 / 405.8 MB, free: 220 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.6082, allocations: 4 kB / 405.8 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.6082, allocations: 0 / 405.8 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/0.6082, allocations: 0 / 405.8 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006185/0.6088, allocations: 213.3 kB / 406 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001776/0.609, allocations: 100.7 kB / 406.1 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.245e-05/0.6091, allocations: 11.73 kB / 406.1 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002952/0.6095, allocations: 16.11 kB / 406.1 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.6096, allocations: 19.36 kB / 406.1 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.768e-05/0.6096, allocations: 4 kB / 406.1 MB, free: 15.84 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004796/0.6101, allocations: 207.3 kB / 406.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.6101, allocations: 0 / 406.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007133/0.6109, allocations: 51.77 kB / 406.4 MB, free: 15.63 MB / 330.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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.002779/0.6137, allocations: 1.165 MB / 407.6 MB, free: 14.51 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000553/0.6143, allocations: 86.98 kB / 407.7 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.6143, allocations: 4.062 kB / 407.7 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.6146, allocations: 51.42 kB / 407.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007683/0.6154, allocations: 47.8 kB / 407.8 MB, free: 14.37 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.617, allocations: 331.7 kB / 408.1 MB, free: 14.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.6175, allocations: 0.7439 MB / 408.8 MB, free: 13.27 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002661/0.6178, allocations: 21.55 kB / 408.8 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003604/0.6182, allocations: 58.03 kB / 408.9 MB, free: 13.23 MB / 330.7 MB Notification: Performance of SimCode: time 1.343e-06/0.6182, allocations: 0 / 408.9 MB, free: 13.23 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03382/0.6521, allocations: 4.558 MB / 413.5 MB, free: 8.699 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003798/0.6525, allocations: 196.5 kB / 413.6 MB, free: 8.465 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.548/3.2, allocations: 4 kB / 413.7 MB, free: 8.461 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat