Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.935/1.935, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.349e-05/3.36e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2968, allocations: 44.49 MB / 294.2 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1332/0.4301, allocations: 73.65 MB / 367.9 MB, free: 8.242 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.4304, allocations: 75.95 kB / 367.9 MB, free: 8.168 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02268/0.4531, allocations: 5.041 MB / 373 MB, free: 3.113 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4532, allocations: 0 / 373 MB, free: 3.113 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.026e-05/0.4532, allocations: 7.984 kB / 373 MB, free: 3.105 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.001205/0.4544, allocations: 0.5366 MB / 373.5 MB, free: 2.516 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.4545, allocations: 16.03 kB / 373.5 MB, free: 2.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.763e-05/0.4546, allocations: 23.72 kB / 373.6 MB, free: 2.477 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004337/0.455, allocations: 267.5 kB / 373.8 MB, free: 2.172 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.4551, allocations: 4 kB / 373.8 MB, free: 2.168 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.729e-05/0.4551, allocations: 15.94 kB / 373.8 MB, free: 2.152 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004141/0.4555, allocations: 136.9 kB / 374 MB, free: 2.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004444/0.456, allocations: 162.4 kB / 374.1 MB, free: 1.852 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.456, allocations: 0 / 374.1 MB, free: 1.852 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.112e-05/0.4561, allocations: 0 / 374.1 MB, free: 1.852 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.4561, allocations: 4 kB / 374.1 MB, free: 1.848 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.4582, allocations: 0.8428 MB / 375 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003905/0.4586, allocations: 118.8 kB / 375.1 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.4588, allocations: 52.86 kB / 375.1 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.4588, allocations: 7.984 kB / 375.2 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003013/0.4592, allocations: 133 kB / 375.3 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 4.097e-06/0.4592, allocations: 3.984 kB / 375.3 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009652/0.4602, allocations: 214.1 kB / 375.5 MB, free: 392 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.823e-05/0.4602, allocations: 106.8 kB / 375.6 MB, free: 260 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.4605, allocations: 204.5 kB / 375.8 MB, free: 52 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.787e-05/0.4606, allocations: 29.7 kB / 375.8 MB, free: 16 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.4608, allocations: 238.2 kB / 376.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.581e-05/0.4609, allocations: 47.39 kB / 376.1 MB, free: 15.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.695e-05/0.4609, allocations: 0 / 376.1 MB, free: 15.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.461, allocations: 322.8 kB / 376.4 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.4612, allocations: 51.86 kB / 376.5 MB, free: 15.36 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.4614, allocations: 113.7 kB / 376.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001727/0.4616, allocations: 59.91 kB / 376.6 MB, free: 15.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.4616, allocations: 3.938 kB / 376.6 MB, free: 15.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001075/0.4627, allocations: 274.1 kB / 376.9 MB, free: 14.88 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.501e-05/0.4628, allocations: 33.7 kB / 376.9 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.4628, allocations: 0 / 376.9 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009474/0.4638, allocations: 100.7 kB / 377 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004668/0.4642, allocations: 51.91 kB / 377.1 MB, free: 14.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002826/0.4671, allocations: 1.517 MB / 378.6 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006323/0.4677, allocations: 43.72 kB / 378.7 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/0.4678, allocations: 8 kB / 378.7 MB, free: 12.99 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: 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.0002098/0.468, allocations: 127 kB / 378.8 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001096/0.4691, allocations: 206.2 kB / 379 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.534e-05/0.4692, allocations: 23.72 kB / 379 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.358e-05/0.4693, allocations: 25.95 kB / 379 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.4693, allocations: 4 kB / 379 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4694, allocations: 3.953 kB / 379 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.4694, allocations: 0 / 379 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004119/0.4698, allocations: 246.1 kB / 379.3 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4698, allocations: 0 / 379.3 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003221/0.4702, allocations: 35.91 kB / 379.3 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000852/0.471, allocations: 92.92 kB / 379.4 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.4711, allocations: 3.984 kB / 379.4 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002843/0.4739, allocations: 1.521 MB / 380.9 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.474, allocations: 0 / 380.9 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.4753, allocations: 237.7 kB / 381.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.4754, allocations: 100.9 kB / 381.3 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.331e-05/0.4756, allocations: 3.938 kB / 381.3 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005792/0.4761, allocations: 27.97 kB / 381.3 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.4763, allocations: 19.97 kB / 381.3 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.234e-05/0.4764, allocations: 7.984 kB / 381.3 MB, free: 10.12 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003355/0.4767, allocations: 168.5 kB / 381.5 MB, free: 9.961 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.4767, allocations: 0 / 381.5 MB, free: 9.961 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009526/0.4777, allocations: 67.78 kB / 381.6 MB, free: 9.895 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.001835/0.4796, allocations: 0.7793 MB / 382.3 MB, free: 9.086 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009033/0.4805, allocations: 297.4 kB / 382.6 MB, free: 8.773 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.4805, allocations: 4.125 kB / 382.6 MB, free: 8.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004723/0.481, allocations: 181.5 kB / 382.8 MB, free: 8.582 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.4815, allocations: 36.34 kB / 382.8 MB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003836/0.4853, allocations: 0.5005 MB / 383.3 MB, free: 8 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004778/0.4858, allocations: 0.7443 MB / 384.1 MB, free: 7.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002484/0.4861, allocations: 71.36 kB / 384.2 MB, free: 7.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4861, allocations: 4 kB / 384.2 MB, free: 7.156 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.744/3.23, allocations: 4.755 MB / 388.9 MB, free: 2.395 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.NonInvertingAmp_res.mat does not exist to compare? outputFormat=mat