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.904/1.904, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.233e-05/3.238e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09236/0.09242, allocations: 44.5 MB / 300 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4008/0.4933, allocations: 74.36 MB / 374.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.4936, allocations: 76.45 kB / 374.4 MB, free: 12.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02448/0.5181, allocations: 5.132 MB / 379.5 MB, free: 12.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5182, allocations: 0 / 379.5 MB, free: 12.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.947e-05/0.5182, allocations: 5.531 kB / 379.5 MB, free: 12.12 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.001221/0.5194, allocations: 0.5461 MB / 380.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/0.5195, allocations: 8.719 kB / 380.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.297e-05/0.5196, allocations: 52.95 kB / 380.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.5197, allocations: 26.22 kB / 380.2 MB, free: 11.63 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004072/0.5201, allocations: 267.5 kB / 380.4 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.5202, allocations: 14.62 kB / 380.4 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.489e-05/0.5202, allocations: 25.39 kB / 380.5 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005154/0.5208, allocations: 183.6 kB / 380.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.5208, allocations: 0 / 380.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.748e-05/0.5208, allocations: 12 kB / 380.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.5209, allocations: 4.938 kB / 380.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004292/0.5213, allocations: 139.2 kB / 380.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002289/0.5236, allocations: 0.8944 MB / 381.7 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004455/0.5241, allocations: 130.2 kB / 381.8 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.5243, allocations: 58.02 kB / 381.9 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.609e-05/0.5243, allocations: 1.031 kB / 381.9 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002969/0.5246, allocations: 133.1 kB / 382 MB, free: 10.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.134e-06/0.5246, allocations: 1.312 kB / 382 MB, free: 10.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.001048/0.5257, allocations: 215 kB / 382.2 MB, free: 10.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.5258, allocations: 110.6 kB / 382.3 MB, free: 10.6 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003766/0.5261, allocations: 240.5 kB / 382.6 MB, free: 10.49 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.615e-05/0.5262, allocations: 32.41 kB / 382.6 MB, free: 10.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.5263, allocations: 227.2 kB / 382.8 MB, free: 10.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.006e-05/0.5264, allocations: 49.39 kB / 382.9 MB, free: 10.24 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.893e-05/0.5264, allocations: 5.031 kB / 382.9 MB, free: 10.24 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.172e-05/0.5265, allocations: 323.1 kB / 383.2 MB, free: 9.926 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/0.5267, allocations: 52.39 kB / 383.2 MB, free: 9.922 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.5269, allocations: 125.4 kB / 383.4 MB, free: 9.832 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001991/0.5271, allocations: 93.41 kB / 383.5 MB, free: 9.793 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.5271, allocations: 1.438 kB / 383.5 MB, free: 9.793 MB / 314.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001151/0.5283, allocations: 308.5 kB / 383.8 MB, free: 9.695 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.674e-05/0.5284, allocations: 43.12 kB / 383.8 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.5284, allocations: 5.438 kB / 383.8 MB, free: 9.656 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008004/0.5292, allocations: 96.25 kB / 383.9 MB, free: 9.645 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003864/0.5296, allocations: 47.2 kB / 383.9 MB, free: 9.641 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002175/0.5318, allocations: 1.583 MB / 385.5 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006088/0.5324, allocations: 53.72 kB / 385.6 MB, free: 8.273 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.109e-05/0.5325, allocations: 6.75 kB / 385.6 MB, free: 8.273 MB / 314.7 MB 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.0001163/0.5326, allocations: 129.8 kB / 385.7 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.445e-05/0.5327, allocations: 22.28 kB / 385.7 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.073e-05/0.5327, allocations: 26.14 kB / 385.8 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.5328, allocations: 2.125 kB / 385.8 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.5328, allocations: 0 / 385.8 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.5328, allocations: 0 / 385.8 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003321/0.5331, allocations: 292.2 kB / 386 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.5331, allocations: 1.094 kB / 386 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002612/0.5334, allocations: 39 kB / 386.1 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007115/0.5341, allocations: 93.77 kB / 386.2 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.5342, allocations: 0 / 386.2 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00195/0.5361, allocations: 1.567 MB / 387.7 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.5362, allocations: 1.406 kB / 387.7 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009735/0.5372, allocations: 252.1 kB / 388 MB, free: 6.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.602e-05/0.5373, allocations: 103.7 kB / 388.1 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.925e-05/0.5373, allocations: 11.53 kB / 388.1 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004149/0.5378, allocations: 29.44 kB / 388.1 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.5379, allocations: 27.36 kB / 388.2 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.5379, allocations: 2.75 kB / 388.2 MB, free: 6.363 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004854/0.5384, allocations: 187.5 kB / 388.3 MB, free: 22.28 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.5384, allocations: 0 / 388.3 MB, free: 22.28 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006578/0.5391, allocations: 70.23 kB / 388.4 MB, free: 22.27 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.001339/0.5405, allocations: 0.7946 MB / 389.2 MB, free: 21.64 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000797/0.5413, allocations: 299.5 kB / 389.5 MB, free: 21.47 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5413, allocations: 4.188 kB / 389.5 MB, free: 21.47 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003782/0.5417, allocations: 187.2 kB / 389.7 MB, free: 21.35 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004371/0.5421, allocations: 43.42 kB / 389.7 MB, free: 21.34 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003241/0.5454, allocations: 0.5198 MB / 390.2 MB, free: 21.14 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.5458, allocations: 0.7519 MB / 391 MB, free: 20.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001812/0.546, allocations: 73.31 kB / 391.1 MB, free: 20.43 MB / 330.7 MB Notification: Performance of SimCode: time 2.535e-06/0.546, allocations: 0 / 391.1 MB, free: 20.43 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.597/3.143, allocations: 4.873 MB / 395.9 MB, free: 20.13 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