Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.9/1.9, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.01e-05/3.019e-05, allocations: 7.984 kB / 255.5 MB, free: 3.07 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09162/0.09167, allocations: 44.51 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4009/0.4926, allocations: 74.36 MB / 374.3 MB, free: 12.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/0.4929, allocations: 78.64 kB / 374.4 MB, free: 12.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02344/0.5164, allocations: 5.127 MB / 379.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.5164, allocations: 0 / 379.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.158e-05/0.5164, allocations: 5.188 kB / 379.5 MB, free: 11.82 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.001171/0.5176, allocations: 0.5458 MB / 380.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.5177, allocations: 11.64 kB / 380.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.577e-05/0.5178, allocations: 55.72 kB / 380.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.069e-05/0.5179, allocations: 27.14 kB / 380.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003991/0.5183, allocations: 259.9 kB / 380.4 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.619e-05/0.5183, allocations: 15.12 kB / 380.4 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.659e-05/0.5184, allocations: 20.95 kB / 380.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004992/0.5189, allocations: 183.7 kB / 380.6 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.5189, allocations: 7.938 kB / 380.6 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.839e-05/0.519, allocations: 10.41 kB / 380.7 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.519, allocations: 4.906 kB / 380.7 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00041/0.5194, allocations: 140.5 kB / 380.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002192/0.5216, allocations: 0.8856 MB / 381.7 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004273/0.5221, allocations: 134.1 kB / 381.8 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.5223, allocations: 57.86 kB / 381.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.515e-05/0.5223, allocations: 1.156 kB / 381.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000289/0.5226, allocations: 135 kB / 382 MB, free: 10.49 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.514e-06/0.5226, allocations: 0 / 382 MB, free: 10.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.001017/0.5237, allocations: 217.7 kB / 382.2 MB, free: 10.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.5237, allocations: 110.7 kB / 382.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003384/0.5241, allocations: 234.9 kB / 382.6 MB, free: 10.19 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.5241, allocations: 30.17 kB / 382.6 MB, free: 10.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.5242, allocations: 220.8 kB / 382.8 MB, free: 9.977 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.948e-05/0.5243, allocations: 48.16 kB / 382.8 MB, free: 9.949 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.884e-05/0.5243, allocations: 3.844 kB / 382.9 MB, free: 9.949 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.953e-05/0.5244, allocations: 317.3 kB / 383.2 MB, free: 9.637 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.5246, allocations: 52.84 kB / 383.2 MB, free: 9.629 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.5248, allocations: 115.4 kB / 383.3 MB, free: 9.555 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001835/0.525, allocations: 85.95 kB / 383.4 MB, free: 9.516 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.525, allocations: 1.531 kB / 383.4 MB, free: 9.516 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00106/0.5261, allocations: 299.5 kB / 383.7 MB, free: 9.422 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.996e-05/0.5261, allocations: 32.95 kB / 383.7 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.5262, allocations: 2 kB / 383.7 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000785/0.527, allocations: 95.86 kB / 383.8 MB, free: 9.379 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003614/0.5273, allocations: 46.94 kB / 383.9 MB, free: 9.371 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002256/0.5296, allocations: 1.603 MB / 385.5 MB, free: 8.016 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005916/0.5302, allocations: 52.23 kB / 385.5 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.5303, allocations: 10.47 kB / 385.5 MB, free: 7.996 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (18): * Single equations (assignments): 16 * 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.0001088/0.5304, allocations: 114.4 kB / 385.7 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.469e-05/0.5305, allocations: 18.16 kB / 385.7 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.8e-05/0.5305, allocations: 25.8 kB / 385.7 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.5305, allocations: 5.219 kB / 385.7 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-06/0.5306, allocations: 6.75 kB / 385.7 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.5306, allocations: 0 / 385.7 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000327/0.5309, allocations: 294.2 kB / 386 MB, free: 7.668 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.5309, allocations: 0 / 386 MB, free: 7.668 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002562/0.5312, allocations: 28.67 kB / 386 MB, free: 7.668 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007029/0.5319, allocations: 91.11 kB / 386.1 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.5319, allocations: 3.469 kB / 386.1 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/0.5339, allocations: 1.475 MB / 387.6 MB, free: 22.38 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.534, allocations: 3.938 kB / 387.6 MB, free: 22.38 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009732/0.535, allocations: 252 kB / 387.8 MB, free: 22.29 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.5351, allocations: 95.88 kB / 387.9 MB, free: 22.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.702e-05/0.5351, allocations: 6.734 kB / 387.9 MB, free: 22.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004074/0.5356, allocations: 38.23 kB / 388 MB, free: 22.17 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.5357, allocations: 27.41 kB / 388 MB, free: 22.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.5357, allocations: 2.75 kB / 388 MB, free: 22.17 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002665/0.536, allocations: 178.9 kB / 388.2 MB, free: 22.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.536, allocations: 0 / 388.2 MB, free: 22.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005498/0.5366, allocations: 72.09 kB / 388.3 MB, free: 22.08 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.001285/0.5379, allocations: 0.7988 MB / 389.1 MB, free: 21.45 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007024/0.5386, allocations: 307.3 kB / 389.4 MB, free: 21.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.5386, allocations: 0 / 389.4 MB, free: 21.27 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003264/0.5389, allocations: 173.2 kB / 389.5 MB, free: 21.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003932/0.5394, allocations: 42.08 kB / 389.6 MB, free: 21.15 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.5404, allocations: 333.7 kB / 389.9 MB, free: 20.95 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.5407, allocations: 0.7515 MB / 390.6 MB, free: 20.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.5409, allocations: 71.97 kB / 390.7 MB, free: 20.24 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5409, allocations: 0 / 390.7 MB, free: 20.24 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.634/3.175, allocations: 4.871 MB / 395.6 MB, free: 19.95 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.SchmittTrigger_res.mat does not exist to compare? outputFormat=mat