Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9958/0.9958, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.047e-05/3.059e-05, allocations: 0 / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.189, allocations: 25.16 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06573/0.2548, allocations: 37.5 MB / 214.1 MB, free: 11.85 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.2551, allocations: 63.97 kB / 214.2 MB, free: 11.79 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0756/0.3307, allocations: 15.4 MB / 229.6 MB, free: 12.34 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3308, allocations: 0 / 229.6 MB, free: 12.34 MB / 202.7 MB Notification: Performance of Transformations before backend: time 5.989e-05/0.3308, allocations: 23.98 kB / 229.6 MB, free: 12.32 MB / 202.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.00555/0.3364, allocations: 1.216 MB / 230.8 MB, free: 11.05 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.3365, allocations: 8.031 kB / 230.8 MB, free: 11.05 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004054/0.3369, allocations: 135.1 kB / 231 MB, free: 10.91 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003219/0.3372, allocations: 102.8 kB / 231.1 MB, free: 10.8 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.3384, allocations: 0.512 MB / 231.6 MB, free: 10.25 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.111e-05/0.3385, allocations: 69.95 kB / 231.7 MB, free: 10.18 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002547/0.3388, allocations: 76 kB / 231.7 MB, free: 10.11 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002818/0.3416, allocations: 0.9353 MB / 232.7 MB, free: 9.156 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.436e-05/0.3417, allocations: 4 kB / 232.7 MB, free: 9.152 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001886/0.3419, allocations: 36 kB / 232.7 MB, free: 9.117 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.826e-05/0.3419, allocations: 27.94 kB / 232.7 MB, free: 9.09 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003038/0.345, allocations: 0.8787 MB / 233.6 MB, free: 8.211 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01144/0.3564, allocations: 3.475 MB / 237.1 MB, free: 4.617 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00272/0.3592, allocations: 0.7951 MB / 237.9 MB, free: 3.812 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001407/0.3607, allocations: 466.5 kB / 238.3 MB, free: 3.355 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.34e-05/0.3608, allocations: 8.562 kB / 238.3 MB, free: 3.348 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/0.3609, allocations: 43.12 kB / 238.4 MB, free: 3.297 MB / 202.7 MB Notification: Performance of pre-optimization done (n=67): time 4.339e-06/0.3609, allocations: 0 / 238.4 MB, free: 3.297 MB / 202.7 MB Notification: Performance of matching and sorting (n=71): time 0.007628/0.3685, allocations: 2.064 MB / 240.5 MB, free: 1.18 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.3686, allocations: 60.19 kB / 240.5 MB, free: 1.105 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009545/0.3696, allocations: 460.8 kB / 241 MB, free: 0.6523 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000291/0.3699, allocations: 37.7 kB / 241 MB, free: 0.6094 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003908/0.3703, allocations: 429.8 kB / 241.4 MB, free: 188 kB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005073/0.3709, allocations: 256.4 kB / 241.7 MB, free: 15.93 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.371, allocations: 16 kB / 241.7 MB, free: 15.91 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.3712, allocations: 346.8 kB / 242 MB, free: 15.56 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.3724, allocations: 353.8 kB / 242.4 MB, free: 15.22 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001296/0.3737, allocations: 466.6 kB / 242.8 MB, free: 14.73 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.375, allocations: 389 kB / 243.2 MB, free: 14.34 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/0.3751, allocations: 7.781 kB / 243.2 MB, free: 14.34 MB / 218.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.003592/0.3787, allocations: 1.086 MB / 244.3 MB, free: 13.24 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.3787, allocations: 11.94 kB / 244.3 MB, free: 13.23 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.3788, allocations: 0 / 244.3 MB, free: 13.23 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009484/0.3797, allocations: 176.9 kB / 244.5 MB, free: 13.05 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002831/0.3826, allocations: 291.6 kB / 244.8 MB, free: 12.77 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00589/0.3885, allocations: 2.592 MB / 247.4 MB, free: 10.05 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002136/0.3907, allocations: 128 kB / 247.5 MB, free: 9.922 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000257/0.391, allocations: 35.98 kB / 247.5 MB, free: 9.887 MB / 218.7 MB Warning: Assuming fixed start value for the following 9 variables: Transistor2.Tr.C.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real Transistor2.ct.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Transistor1.Tr.C.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real Transistor1.ct.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C3.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C5.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C4.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C1.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000515/0.3915, allocations: 166.8 kB / 247.7 MB, free: 9.719 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/0.3918, allocations: 71.25 kB / 247.8 MB, free: 9.648 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003587/0.3922, allocations: 82.34 kB / 247.8 MB, free: 9.562 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.3922, allocations: 8 kB / 247.8 MB, free: 9.555 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.002e-05/0.3923, allocations: 8 kB / 247.8 MB, free: 9.547 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.3923, allocations: 3.984 kB / 247.9 MB, free: 9.543 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002345/0.3946, allocations: 1.002 MB / 248.9 MB, free: 8.492 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.3947, allocations: 4 kB / 248.9 MB, free: 8.488 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00265/0.3974, allocations: 243.7 kB / 249.1 MB, free: 8.25 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/0.3985, allocations: 172.7 kB / 249.3 MB, free: 8.078 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000278/0.3988, allocations: 27.97 kB / 249.3 MB, free: 8.051 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005923/0.4047, allocations: 2.597 MB / 251.9 MB, free: 5.324 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.4048, allocations: 0 / 251.9 MB, free: 5.324 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005136/0.4099, allocations: 1.573 MB / 253.5 MB, free: 3.734 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008077/0.4108, allocations: 252.1 kB / 253.7 MB, free: 3.469 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002588/0.4111, allocations: 12 kB / 253.7 MB, free: 3.457 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002154/0.4132, allocations: 155.9 kB / 253.9 MB, free: 3.305 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002567/0.4135, allocations: 44.7 kB / 253.9 MB, free: 3.262 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001724/0.4137, allocations: 28.08 kB / 253.9 MB, free: 3.234 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0007412/0.4145, allocations: 357.5 kB / 254.3 MB, free: 2.887 MB / 218.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4145, allocations: 0 / 254.3 MB, free: 2.887 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001406/0.4159, allocations: 240 kB / 254.5 MB, free: 2.652 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(5,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005193/0.4211, allocations: 2.149 MB / 256.7 MB, free: 484 kB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.1486/0.5698, allocations: 1.086 MB / 257.8 MB, free: 61.39 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.5699, allocations: 1.062 kB / 257.8 MB, free: 61.39 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002532/0.5724, allocations: 0.6623 MB / 258.4 MB, free: 61.28 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001715/0.5742, allocations: 174.9 kB / 258.6 MB, free: 61.28 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004933/0.5791, allocations: 1.796 MB / 260.4 MB, free: 60.74 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005176/0.5797, allocations: 0.9727 MB / 261.4 MB, free: 60.03 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009993/0.5807, allocations: 307.5 kB / 261.7 MB, free: 60.02 MB / 218.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5807, allocations: 0 / 261.7 MB, free: 60.02 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.996/3.577, allocations: 18.26 MB / 279.9 MB, free: 52.32 MB / 218.7 MB