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.86/1.86, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.084e-05/3.102e-05, allocations: 4 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09256/0.09261, allocations: 44.52 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.401/0.4936, allocations: 74.35 MB / 374.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/0.494, allocations: 78.36 kB / 374.4 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02372/0.5177, allocations: 5.132 MB / 379.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5178, allocations: 0 / 379.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.958e-05/0.5178, allocations: 4.312 kB / 379.5 MB, free: 12.1 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.001161/0.519, allocations: 0.5425 MB / 380.1 MB, free: 11.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.519, allocations: 7.719 kB / 380.1 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.242e-05/0.5191, allocations: 57.45 kB / 380.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.883e-05/0.5192, allocations: 34.5 kB / 380.2 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003778/0.5196, allocations: 265.5 kB / 380.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.5197, allocations: 13.86 kB / 380.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.265e-05/0.5197, allocations: 20.41 kB / 380.4 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005126/0.5202, allocations: 189.5 kB / 380.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.5203, allocations: 0 / 380.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.738e-05/0.5203, allocations: 5.906 kB / 380.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.5203, allocations: 8.156 kB / 380.6 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000424/0.5208, allocations: 145.2 kB / 380.8 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/0.5229, allocations: 0.8884 MB / 381.7 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004272/0.5234, allocations: 134.8 kB / 381.8 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.5235, allocations: 56.7 kB / 381.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.5236, allocations: 6.312 kB / 381.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002969/0.5239, allocations: 128.6 kB / 382 MB, free: 10.76 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.254e-06/0.5239, allocations: 1.062 kB / 382 MB, free: 10.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009984/0.5249, allocations: 217.6 kB / 382.2 MB, free: 10.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.525, allocations: 107.9 kB / 382.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.5253, allocations: 243.6 kB / 382.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/0.5254, allocations: 30.61 kB / 382.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.5255, allocations: 230.7 kB / 382.8 MB, free: 10.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.08e-05/0.5256, allocations: 47.62 kB / 382.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.147e-05/0.5256, allocations: 4.344 kB / 382.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.408e-05/0.5257, allocations: 319.8 kB / 383.2 MB, free: 9.902 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.5259, allocations: 55.64 kB / 383.2 MB, free: 9.898 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002044/0.5261, allocations: 125.6 kB / 383.3 MB, free: 9.809 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001952/0.5263, allocations: 91.66 kB / 383.4 MB, free: 9.773 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.5263, allocations: 0 / 383.4 MB, free: 9.773 MB / 314.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001077/0.5274, allocations: 319.3 kB / 383.7 MB, free: 9.672 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.5275, allocations: 34.78 kB / 383.8 MB, free: 9.641 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.5275, allocations: 5.469 kB / 383.8 MB, free: 9.637 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007643/0.5283, allocations: 99.78 kB / 383.9 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003619/0.5286, allocations: 43.62 kB / 383.9 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002086/0.5307, allocations: 1.591 MB / 385.5 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005754/0.5313, allocations: 50.69 kB / 385.6 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.315e-05/0.5314, allocations: 12.53 kB / 385.6 MB, free: 8.246 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.0001116/0.5315, allocations: 121.8 kB / 385.7 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.123e-05/0.5316, allocations: 18.81 kB / 385.7 MB, free: 8.125 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.164e-05/0.5317, allocations: 26.97 kB / 385.7 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.5317, allocations: 1.375 kB / 385.7 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.5317, allocations: 1.688 kB / 385.7 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.5317, allocations: 0 / 385.7 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003271/0.532, allocations: 296.4 kB / 386 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.532, allocations: 1.375 kB / 386 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002486/0.5323, allocations: 35.81 kB / 386.1 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000685/0.533, allocations: 94.09 kB / 386.2 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.533, allocations: 5.219 kB / 386.2 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001884/0.5349, allocations: 1.57 MB / 387.7 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.535, allocations: 1.281 kB / 387.7 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009559/0.5359, allocations: 258 kB / 388 MB, free: 6.449 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.088e-05/0.536, allocations: 96.5 kB / 388.1 MB, free: 6.344 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.636e-05/0.5361, allocations: 9.141 kB / 388.1 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004116/0.5365, allocations: 30.67 kB / 388.1 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.836e-05/0.5366, allocations: 30.17 kB / 388.2 MB, free: 6.332 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.5367, allocations: 2.969 kB / 388.2 MB, free: 6.332 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004678/0.5372, allocations: 185.5 kB / 388.3 MB, free: 22.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5372, allocations: 0 / 388.3 MB, free: 22.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005878/0.5378, allocations: 67.72 kB / 388.4 MB, free: 22.25 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.001269/0.539, allocations: 0.7954 MB / 389.2 MB, free: 21.62 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007386/0.5398, allocations: 317.3 kB / 389.5 MB, free: 21.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.5398, allocations: 0 / 389.5 MB, free: 21.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003675/0.5402, allocations: 189.9 kB / 389.7 MB, free: 21.31 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.5406, allocations: 41.39 kB / 389.7 MB, free: 21.3 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003112/0.5437, allocations: 0.5131 MB / 390.2 MB, free: 21.1 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.5441, allocations: 0.7513 MB / 391 MB, free: 20.4 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.5443, allocations: 71.05 kB / 391.1 MB, free: 20.39 MB / 330.7 MB Notification: Performance of SimCode: time 1.863e-06/0.5443, allocations: 1.312 kB / 391.1 MB, free: 20.39 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.904/3.449, allocations: 4.888 MB / 396 MB, free: 20.1 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