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.897/1.897, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.102e-05/4.122e-05, allocations: 8 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2963, allocations: 44.49 MB / 294.2 MB, free: 14.28 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.4267, allocations: 73.69 MB / 367.9 MB, free: 8.266 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/0.427, allocations: 83.94 kB / 368 MB, free: 8.184 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02313/0.4502, allocations: 5.069 MB / 373.1 MB, free: 3.102 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.4502, allocations: 0 / 373.1 MB, free: 3.102 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.049e-05/0.4503, allocations: 4 kB / 373.1 MB, free: 3.098 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.001189/0.4515, allocations: 0.5366 MB / 373.6 MB, free: 2.508 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.4515, allocations: 16.03 kB / 373.6 MB, free: 2.492 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.32e-05/0.4516, allocations: 23.72 kB / 373.6 MB, free: 2.469 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004238/0.4521, allocations: 274.2 kB / 373.9 MB, free: 2.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.4521, allocations: 4 kB / 373.9 MB, free: 2.156 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.698e-05/0.4522, allocations: 12 kB / 373.9 MB, free: 2.145 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004064/0.4526, allocations: 128.9 kB / 374 MB, free: 2.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004376/0.453, allocations: 158.4 kB / 374.2 MB, free: 1.855 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.4531, allocations: 3.938 kB / 374.2 MB, free: 1.852 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.4531, allocations: 0 / 374.2 MB, free: 1.852 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.4531, allocations: 8 kB / 374.2 MB, free: 1.844 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.4553, allocations: 0.8468 MB / 375.1 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004097/0.4557, allocations: 126.7 kB / 375.2 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.4559, allocations: 56.86 kB / 375.2 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.438e-05/0.4559, allocations: 0 / 375.2 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002899/0.4562, allocations: 129 kB / 375.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 1.904e-06/0.4563, allocations: 0 / 375.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009713/0.4572, allocations: 210.2 kB / 375.6 MB, free: 392 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.325e-05/0.4573, allocations: 106.8 kB / 375.7 MB, free: 260 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003056/0.4576, allocations: 208.5 kB / 375.9 MB, free: 48 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.4577, allocations: 33.64 kB / 375.9 MB, free: 8 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.4579, allocations: 230.3 kB / 376.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.354e-05/0.4579, allocations: 43.39 kB / 376.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.669e-05/0.458, allocations: 0 / 376.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4581, allocations: 322.8 kB / 376.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.4583, allocations: 48.05 kB / 376.5 MB, free: 15.36 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.4585, allocations: 111.8 kB / 376.6 MB, free: 15.22 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.4586, allocations: 43.98 kB / 376.7 MB, free: 15.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.4587, allocations: 7.938 kB / 376.7 MB, free: 15.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001004/0.4597, allocations: 250.2 kB / 376.9 MB, free: 14.92 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.608e-05/0.4597, allocations: 45.39 kB / 377 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.4598, allocations: 4.156 kB / 377 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007375/0.4605, allocations: 96.95 kB / 377.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003526/0.4609, allocations: 47.91 kB / 377.1 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/0.4629, allocations: 1.428 MB / 378.6 MB, free: 13.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000496/0.4635, allocations: 43.91 kB / 378.6 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.713e-05/0.4635, allocations: 8 kB / 378.6 MB, free: 13.12 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: 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.0001811/0.4637, allocations: 113.9 kB / 378.7 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008571/0.4646, allocations: 206.2 kB / 378.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.143e-05/0.4646, allocations: 23.72 kB / 378.9 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.58e-05/0.4647, allocations: 21.97 kB / 379 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.4647, allocations: 0 / 379 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.4647, allocations: 11.98 kB / 379 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.4648, allocations: 0 / 379 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003203/0.4651, allocations: 246 kB / 379.2 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.4651, allocations: 0 / 379.2 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002508/0.4654, allocations: 27.97 kB / 379.2 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006706/0.4661, allocations: 92.97 kB / 379.3 MB, free: 12.35 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.4661, allocations: 4 kB / 379.3 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001947/0.468, allocations: 1.424 MB / 380.8 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4681, allocations: 0 / 380.8 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008996/0.469, allocations: 241.6 kB / 381 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.93e-05/0.4691, allocations: 92.91 kB / 381.1 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.54e-05/0.4692, allocations: 4 kB / 381.1 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000385/0.4695, allocations: 31.97 kB / 381.1 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.4697, allocations: 23.92 kB / 381.2 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.373e-05/0.4697, allocations: 11.98 kB / 381.2 MB, free: 10.37 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002225/0.4699, allocations: 160.5 kB / 381.3 MB, free: 10.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.47, allocations: 0 / 381.3 MB, free: 10.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004871/0.4705, allocations: 63.84 kB / 381.4 MB, free: 10.15 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.001243/0.4717, allocations: 0.7831 MB / 382.2 MB, free: 9.336 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006709/0.4724, allocations: 304.9 kB / 382.5 MB, free: 9.016 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4724, allocations: 0 / 382.5 MB, free: 9.016 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003188/0.4727, allocations: 169.7 kB / 382.6 MB, free: 8.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/0.4731, allocations: 40.72 kB / 382.7 MB, free: 8.797 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009992/0.4741, allocations: 317.9 kB / 383 MB, free: 8.441 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.4745, allocations: 0.756 MB / 383.7 MB, free: 7.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.4747, allocations: 67.42 kB / 383.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of SimCode: time 8.22e-07/0.4747, allocations: 0 / 383.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.824/3.299, allocations: 4.785 MB / 388.6 MB, free: 2.809 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