Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.713e-05/2.728e-05, allocations: 7.984 kB / 249.7 MB, free: 15.17 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.2996, allocations: 44.5 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1334/0.4331, allocations: 74.65 MB / 368.9 MB, free: 7.23 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.4334, allocations: 71.95 kB / 368.9 MB, free: 7.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02476/0.4582, allocations: 5.492 MB / 374.4 MB, free: 1.648 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4582, allocations: 0 / 374.4 MB, free: 1.648 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.4583, allocations: 8 kB / 374.4 MB, free: 1.641 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001354/0.4596, allocations: 0.576 MB / 375 MB, free: 1.016 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.4597, allocations: 12.03 kB / 375 MB, free: 1.004 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.4598, allocations: 35.62 kB / 375.1 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004536/0.4603, allocations: 282.2 kB / 375.3 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.4603, allocations: 8 kB / 375.3 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.825e-05/0.4604, allocations: 16 kB / 375.4 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004863/0.4609, allocations: 161 kB / 375.5 MB, free: 480 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005224/0.4614, allocations: 191.8 kB / 375.7 MB, free: 280 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.4615, allocations: 0 / 375.7 MB, free: 280 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.402e-05/0.4615, allocations: 3.938 kB / 375.7 MB, free: 276 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.4615, allocations: 8 kB / 375.7 MB, free: 268 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00256/0.4641, allocations: 1.029 MB / 376.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003653/0.4645, allocations: 94.66 kB / 376.8 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.4646, allocations: 37.09 kB / 376.9 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.4647, allocations: 11.92 kB / 376.9 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002701/0.465, allocations: 101.1 kB / 377 MB, free: 14.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 2.214e-06/0.465, allocations: 0 / 377 MB, free: 14.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.000502/0.4655, allocations: 138.2 kB / 377.1 MB, free: 14.74 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.4656, allocations: 89.08 kB / 377.2 MB, free: 14.64 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000388/0.466, allocations: 234 kB / 377.4 MB, free: 14.4 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.466, allocations: 25.7 kB / 377.5 MB, free: 14.37 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.4662, allocations: 266 kB / 377.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.824e-05/0.4663, allocations: 31.56 kB / 377.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.879e-05/0.4663, allocations: 0 / 377.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.4665, allocations: 322.8 kB / 378.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.4666, allocations: 44.47 kB / 378.1 MB, free: 13.71 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.4669, allocations: 152 kB / 378.3 MB, free: 13.51 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.4671, allocations: 63.91 kB / 378.3 MB, free: 13.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.4671, allocations: 8 kB / 378.3 MB, free: 13.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006772/0.4678, allocations: 222.1 kB / 378.5 MB, free: 13.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.23e-05/0.4678, allocations: 38.12 kB / 378.6 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.4679, allocations: 11.94 kB / 378.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002251/0.4681, allocations: 32.78 kB / 378.6 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004409/0.4686, allocations: 59.89 kB / 378.7 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001207/0.4698, allocations: 1.252 MB / 379.9 MB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005213/0.4703, allocations: 47.88 kB / 380 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.7e-05/0.4704, allocations: 19.94 kB / 380 MB, free: 11.64 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001304/0.4705, allocations: 116.8 kB / 380.1 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003617/0.4709, allocations: 138.1 kB / 380.2 MB, free: 11.37 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.98e-05/0.4709, allocations: 19.72 kB / 380.3 MB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.949e-05/0.471, allocations: 25.83 kB / 380.3 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.471, allocations: 4.031 kB / 380.3 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4711, allocations: 4 kB / 380.3 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.4711, allocations: 0 / 380.3 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005561/0.4716, allocations: 403.8 kB / 380.7 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.4717, allocations: 0 / 380.7 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002697/0.4719, allocations: 35.91 kB / 380.7 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001499/0.4721, allocations: 28.88 kB / 380.8 MB, free: 10.81 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.4721, allocations: 192 / 380.8 MB, free: 10.81 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/0.4733, allocations: 1.237 MB / 382 MB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.4733, allocations: 3.938 kB / 382 MB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004238/0.4737, allocations: 192.2 kB / 382.2 MB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.733e-05/0.4739, allocations: 100.8 kB / 382.3 MB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.989e-05/0.4739, allocations: 4 kB / 382.3 MB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003474/0.4743, allocations: 19.97 kB / 382.3 MB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.4744, allocations: 19.94 kB / 382.3 MB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.996e-05/0.4744, allocations: 7.984 kB / 382.3 MB, free: 9.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002622/0.4747, allocations: 186 kB / 382.5 MB, free: 8.891 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-07/0.4747, allocations: 0 / 382.5 MB, free: 8.891 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005244/0.4752, allocations: 67.78 kB / 382.6 MB, free: 8.824 MB / 330.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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007854/0.476, allocations: 0.7862 MB / 383.4 MB, free: 8 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006978/0.4768, allocations: 292.9 kB / 383.7 MB, free: 7.691 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4768, allocations: 0 / 383.7 MB, free: 7.691 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003475/0.4771, allocations: 158.8 kB / 383.8 MB, free: 7.527 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/0.4775, allocations: 40.86 kB / 383.8 MB, free: 7.488 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.4786, allocations: 351.2 kB / 384.2 MB, free: 7.102 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.479, allocations: 0.7599 MB / 385 MB, free: 6.316 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.4792, allocations: 83.41 kB / 385 MB, free: 6.234 MB / 330.7 MB Notification: Performance of SimCode: time 9.01e-07/0.4792, allocations: 0 / 385 MB, free: 6.234 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.584/3.063, allocations: 5.253 MB / 390.3 MB, free: 0.9844 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat