Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.091/2.091, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.262e-05/4.272e-05, allocations: 10.17 kB / 284.4 MB, free: 8.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 50.36 MB / 334.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.439/0.5505, allocations: 77.8 MB / 412.6 MB, free: 432 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.5508, allocations: 78.52 kB / 412.6 MB, free: 384 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003714/0.5546, allocations: 1.001 MB / 413.6 MB, free: 15.49 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5546, allocations: 3.938 kB / 413.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.774e-05/0.5547, allocations: 4 kB / 413.7 MB, free: 15.48 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004583/0.5551, allocations: 334.3 kB / 414 MB, free: 15.11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.5552, allocations: 12.03 kB / 414 MB, free: 15.1 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.045e-05/0.5553, allocations: 38 kB / 414 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.944e-05/0.5553, allocations: 8.656 kB / 414 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002768/0.5556, allocations: 190.6 kB / 414.2 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.5557, allocations: 3.953 kB / 414.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.5557, allocations: 0 / 414.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.556, allocations: 84.06 kB / 414.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.556, allocations: 4 kB / 414.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.5561, allocations: 4 kB / 414.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.5561, allocations: 0 / 414.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.427e-05/0.5561, allocations: 15.92 kB / 414.3 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004658/0.5566, allocations: 257 kB / 414.6 MB, free: 14.42 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.827e-05/0.5567, allocations: 41.44 kB / 414.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.222e-05/0.5568, allocations: 13.66 kB / 414.6 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.5568, allocations: 0 / 414.6 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.5569, allocations: 34.62 kB / 414.7 MB, free: 14.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 2.074e-06/0.5569, allocations: 0 / 414.7 MB, free: 14.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002112/0.5571, allocations: 41.5 kB / 414.7 MB, free: 14.26 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.074e-05/0.5572, allocations: 89.11 kB / 414.8 MB, free: 14.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000184/0.5574, allocations: 122.3 kB / 414.9 MB, free: 14.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.5575, allocations: 25.7 kB / 414.9 MB, free: 14.01 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.397e-05/0.5576, allocations: 154.6 kB / 415.1 MB, free: 13.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.148e-05/0.5576, allocations: 0 / 415.1 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.527e-06/0.5576, allocations: 0 / 415.1 MB, free: 13.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5578, allocations: 314.6 kB / 415.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.228e-05/0.5578, allocations: 4 kB / 415.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.306e-05/0.5579, allocations: 17.7 kB / 415.4 MB, free: 13.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.077e-05/0.5579, allocations: 7.953 kB / 415.4 MB, free: 13.51 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.5579, allocations: 0 / 415.4 MB, free: 13.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001168/0.5581, allocations: 41.58 kB / 415.5 MB, free: 13.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.5581, allocations: 8 kB / 415.5 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.5581, allocations: 3.984 kB / 415.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.5581, allocations: 128 / 415.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.896e-05/0.5582, allocations: 7.938 kB / 415.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.5582, allocations: 0 / 415.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.179e-05/0.5583, allocations: 7.984 kB / 415.5 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.5583, allocations: 3.938 kB / 415.5 MB, free: 13.43 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.774e-05/0.5584, allocations: 108.7 kB / 415.6 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.5585, allocations: 41.42 kB / 415.6 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.288e-05/0.5586, allocations: 7.656 kB / 415.7 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.5586, allocations: 0 / 415.7 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.5586, allocations: 11.95 kB / 415.7 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.5587, allocations: 0 / 415.7 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/0.559, allocations: 161.5 kB / 415.8 MB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.559, allocations: 3.953 kB / 415.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.28e-05/0.559, allocations: 4 kB / 415.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.559, allocations: 0 / 415.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.5591, allocations: 0 / 415.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.5591, allocations: 0 / 415.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.5591, allocations: 3.984 kB / 415.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001882/0.5593, allocations: 158.8 kB / 416 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.5594, allocations: 89 kB / 416.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.5595, allocations: 4 kB / 416.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.5596, allocations: 0 / 416.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.532e-05/0.5597, allocations: 7.984 kB / 416.1 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.5597, allocations: 0 / 416.1 MB, free: 12.76 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001185/0.5598, allocations: 102.8 kB / 416.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5598, allocations: 4 kB / 416.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004904/0.5603, allocations: 0 / 416.2 MB, free: 12.66 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0006188/0.561, allocations: 0.7597 MB / 417 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001009/0.5611, allocations: 15.86 kB / 417 MB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.5611, allocations: 3.938 kB / 417 MB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.6e-05/0.5611, allocations: 4 kB / 417 MB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.5616, allocations: 11.53 kB / 417 MB, free: 11.85 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006448/0.5622, allocations: 153.2 kB / 417.1 MB, free: 11.66 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004079/0.5626, allocations: 0.689 MB / 417.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.894e-05/0.5627, allocations: 15.19 kB / 417.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5627, allocations: 0 / 417.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.377/2.94, allocations: 0.8649 MB / 418.7 MB, free: 10.08 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat