Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.873/1.873, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.759e-05/2.771e-05, allocations: 8 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3123, allocations: 44.49 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.441, allocations: 73.7 MB / 367.9 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.4414, allocations: 83.94 kB / 368 MB, free: 8.133 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02282/0.4642, allocations: 5.076 MB / 373.1 MB, free: 3.043 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4642, allocations: 4 kB / 373.1 MB, free: 3.039 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.794e-05/0.4643, allocations: 4 kB / 373.1 MB, free: 3.035 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001174/0.4654, allocations: 0.5405 MB / 373.6 MB, free: 2.441 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.4655, allocations: 12.03 kB / 373.6 MB, free: 2.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.768e-05/0.4656, allocations: 23.72 kB / 373.6 MB, free: 2.406 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004049/0.466, allocations: 274.2 kB / 373.9 MB, free: 2.098 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.466, allocations: 4 kB / 373.9 MB, free: 2.094 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.302e-05/0.4661, allocations: 12 kB / 373.9 MB, free: 2.082 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000426/0.4665, allocations: 128.9 kB / 374.1 MB, free: 1.957 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004263/0.467, allocations: 158.4 kB / 374.2 MB, free: 1.793 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.467, allocations: 0 / 374.2 MB, free: 1.793 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.4671, allocations: 15.94 kB / 374.2 MB, free: 1.777 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.4671, allocations: 4 kB / 374.2 MB, free: 1.773 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.4692, allocations: 0.8351 MB / 375.1 MB, free: 0.875 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003947/0.4696, allocations: 130.7 kB / 375.2 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.4698, allocations: 52.84 kB / 375.2 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.261e-05/0.4698, allocations: 4 kB / 375.2 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/0.4701, allocations: 125.9 kB / 375.4 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.074e-06/0.4701, allocations: 0 / 375.4 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009436/0.4711, allocations: 213.6 kB / 375.6 MB, free: 328 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.4711, allocations: 106.8 kB / 375.7 MB, free: 196 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003157/0.4715, allocations: 212.5 kB / 375.9 MB, free: 15.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.782e-05/0.4715, allocations: 33.7 kB / 375.9 MB, free: 15.94 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.4717, allocations: 230.1 kB / 376.1 MB, free: 15.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.225e-05/0.4717, allocations: 43.45 kB / 376.2 MB, free: 15.67 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.713e-05/0.4718, allocations: 0 / 376.2 MB, free: 15.67 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4719, allocations: 322.8 kB / 376.5 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.4721, allocations: 51.86 kB / 376.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.4723, allocations: 125.4 kB / 376.7 MB, free: 15.14 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000159/0.4725, allocations: 52.02 kB / 376.7 MB, free: 15.09 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4725, allocations: 0 / 376.7 MB, free: 15.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001038/0.4735, allocations: 267.1 kB / 377 MB, free: 14.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.717e-05/0.4736, allocations: 37.91 kB / 377 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.4736, allocations: 0 / 377 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007474/0.4744, allocations: 104.7 kB / 377.1 MB, free: 14.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003544/0.4747, allocations: 47.91 kB / 377.2 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002126/0.4769, allocations: 1.529 MB / 378.7 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004822/0.4774, allocations: 43.88 kB / 378.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/0.4774, allocations: 8 kB / 378.8 MB, free: 12.92 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (20): * Single equations (assignments): 18 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001677/0.4776, allocations: 124.8 kB / 378.9 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008627/0.4785, allocations: 214.1 kB / 379.1 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.677e-05/0.4785, allocations: 15.81 kB / 379.1 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.405e-05/0.4786, allocations: 21.97 kB / 379.1 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.4786, allocations: 3.984 kB / 379.1 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.4786, allocations: 3.953 kB / 379.1 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.4786, allocations: 0 / 379.1 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003113/0.479, allocations: 249.9 kB / 379.4 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.479, allocations: 0 / 379.4 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.4792, allocations: 35.97 kB / 379.4 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006915/0.4799, allocations: 92.78 kB / 379.5 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.48, allocations: 128 / 379.5 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002001/0.482, allocations: 1.517 MB / 381 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.482, allocations: 4.031 kB / 381 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008874/0.4829, allocations: 241.6 kB / 381.3 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.592e-05/0.483, allocations: 100.8 kB / 381.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.838e-05/0.4831, allocations: 4 kB / 381.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003874/0.4835, allocations: 31.97 kB / 381.4 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.872e-05/0.4836, allocations: 28 kB / 381.4 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.181e-05/0.4836, allocations: 4 kB / 381.4 MB, free: 10.04 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002115/0.4838, allocations: 164.5 kB / 381.6 MB, free: 9.883 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4839, allocations: 0 / 381.6 MB, free: 9.883 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005576/0.4844, allocations: 63.84 kB / 381.6 MB, free: 9.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001203/0.4856, allocations: 0.7789 MB / 382.4 MB, free: 9.012 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006398/0.4863, allocations: 309.7 kB / 382.7 MB, free: 8.688 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.4863, allocations: 0 / 382.7 MB, free: 8.688 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003238/0.4867, allocations: 173.7 kB / 382.9 MB, free: 8.508 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.487, allocations: 28.88 kB / 382.9 MB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002925/0.4899, allocations: 0.5159 MB / 383.4 MB, free: 7.918 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.4903, allocations: 0.7599 MB / 384.2 MB, free: 7.133 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.4905, allocations: 67.42 kB / 384.3 MB, free: 7.066 MB / 330.7 MB Notification: Performance of SimCode: time 7.41e-07/0.4905, allocations: 0 / 384.3 MB, free: 7.066 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.541/3.031, allocations: 4.791 MB / 389.1 MB, free: 2.277 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.InvertingSchmittTrigger_res.mat does not exist to compare? outputFormat=mat