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.951/1.951, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.296e-05/3.301e-05, allocations: 7.094 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0921/0.09216, allocations: 44.51 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3987/0.491, allocations: 74.35 MB / 374.3 MB, free: 12.58 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/0.4913, allocations: 77.23 kB / 374.4 MB, free: 12.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02291/0.5142, allocations: 5.123 MB / 379.5 MB, free: 11.92 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5143, allocations: 0 / 379.5 MB, free: 11.92 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.999e-05/0.5143, allocations: 5.75 kB / 379.5 MB, free: 11.92 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.001135/0.5154, allocations: 0.5428 MB / 380 MB, free: 11.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.5155, allocations: 9.281 kB / 380.1 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.492e-05/0.5156, allocations: 54.77 kB / 380.1 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.54e-05/0.5157, allocations: 27.31 kB / 380.1 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003627/0.5161, allocations: 271.5 kB / 380.4 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.5161, allocations: 15.78 kB / 380.4 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.29e-05/0.5162, allocations: 21.22 kB / 380.4 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004944/0.5167, allocations: 186.3 kB / 380.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.5167, allocations: 0 / 380.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.623e-05/0.5167, allocations: 9.375 kB / 380.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.5168, allocations: 9.688 kB / 380.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000409/0.5172, allocations: 141.5 kB / 380.8 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/0.5193, allocations: 0.8852 MB / 381.7 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004298/0.5198, allocations: 149.5 kB / 381.8 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.5199, allocations: 55.53 kB / 381.9 MB, free: 10.65 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.275e-05/0.52, allocations: 5.094 kB / 381.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002966/0.5203, allocations: 133.8 kB / 382 MB, free: 10.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.034e-06/0.5203, allocations: 0 / 382 MB, free: 10.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009953/0.5213, allocations: 212.7 kB / 382.2 MB, free: 10.51 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.349e-05/0.5214, allocations: 109.5 kB / 382.3 MB, free: 10.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003315/0.5217, allocations: 234.6 kB / 382.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.5218, allocations: 31.05 kB / 382.6 MB, free: 10.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.5219, allocations: 225.6 kB / 382.8 MB, free: 10.06 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.52e-05/0.5219, allocations: 48.48 kB / 382.8 MB, free: 10.03 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.795e-05/0.522, allocations: 4.219 kB / 382.8 MB, free: 10.03 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.874e-05/0.522, allocations: 319.1 kB / 383.2 MB, free: 9.715 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.5222, allocations: 51.55 kB / 383.2 MB, free: 9.707 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.5224, allocations: 108.6 kB / 383.3 MB, free: 9.637 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.5226, allocations: 89.12 kB / 383.4 MB, free: 9.598 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.5226, allocations: 1.531 kB / 383.4 MB, free: 9.598 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001046/0.5237, allocations: 304.8 kB / 383.7 MB, free: 9.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.759e-05/0.5237, allocations: 37.61 kB / 383.7 MB, free: 9.469 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.5238, allocations: 1.125 kB / 383.7 MB, free: 9.469 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007526/0.5245, allocations: 96.55 kB / 383.8 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003438/0.5249, allocations: 43.17 kB / 383.9 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/0.5271, allocations: 1.598 MB / 385.5 MB, free: 8.098 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005557/0.5277, allocations: 52.02 kB / 385.5 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.139e-05/0.5278, allocations: 10.09 kB / 385.5 MB, free: 8.082 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.0001095/0.5279, allocations: 122.3 kB / 385.6 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.061e-05/0.5279, allocations: 22.28 kB / 385.7 MB, free: 7.957 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.037e-05/0.528, allocations: 23.58 kB / 385.7 MB, free: 7.949 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.528, allocations: 2.688 kB / 385.7 MB, free: 7.949 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.5281, allocations: 0 / 385.7 MB, free: 7.949 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.5281, allocations: 1.547 kB / 385.7 MB, free: 7.949 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003251/0.5284, allocations: 290 kB / 386 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.5284, allocations: 0 / 386 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002507/0.5287, allocations: 35.33 kB / 386 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006852/0.5294, allocations: 91.48 kB / 386.1 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.5294, allocations: 4.469 kB / 386.1 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002197/0.5316, allocations: 1.486 MB / 387.6 MB, free: 6.453 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.5317, allocations: 1.375 kB / 387.6 MB, free: 6.453 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.533, allocations: 249.4 kB / 387.8 MB, free: 6.359 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001846/0.5332, allocations: 101.9 kB / 387.9 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.5333, allocations: 7.734 kB / 387.9 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005341/0.5339, allocations: 30.84 kB / 388 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.5341, allocations: 25.59 kB / 388 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.5342, allocations: 7.562 kB / 388 MB, free: 6.242 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003816/0.5345, allocations: 182.3 kB / 388.2 MB, free: 6.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.022e-06/0.5346, allocations: 0 / 388.2 MB, free: 6.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001093/0.5357, allocations: 67.84 kB / 388.2 MB, free: 6.152 MB / 314.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.002087/0.5378, allocations: 0.7976 MB / 389 MB, free: 21.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001162/0.539, allocations: 312.9 kB / 389.4 MB, free: 21.34 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.5391, allocations: 4.062 kB / 389.4 MB, free: 21.34 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000571/0.5397, allocations: 176.5 kB / 389.5 MB, free: 21.23 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006142/0.5403, allocations: 32.94 kB / 389.6 MB, free: 21.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.5421, allocations: 340.8 kB / 389.9 MB, free: 21.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005369/0.5427, allocations: 0.754 MB / 390.6 MB, free: 20.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000286/0.543, allocations: 70.8 kB / 390.7 MB, free: 20.31 MB / 330.7 MB Notification: Performance of SimCode: time 1.493e-06/0.543, allocations: 0 / 390.7 MB, free: 20.31 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.928/3.471, allocations: 4.874 MB / 395.6 MB, free: 20.02 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