Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.791/1.791, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.953e-05/2.963e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2582, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.147/0.4052, allocations: 82.26 MB / 340.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.4056, allocations: 75.91 kB / 340.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4952/0.9008, allocations: 55.08 MB / 395.7 MB, free: 77.61 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.9009, allocations: 0 / 395.7 MB, free: 77.61 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001115/0.901, allocations: 28.36 kB / 395.8 MB, free: 77.61 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: 157 * Number of variables: 157 Notification: Performance of Generate backend data structure: time 0.004479/0.9055, allocations: 1.732 MB / 397.5 MB, free: 76.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.9056, allocations: 8.031 kB / 397.5 MB, free: 76.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005134/0.9061, allocations: 225.7 kB / 397.7 MB, free: 75.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002936/0.909, allocations: 1.252 MB / 399 MB, free: 74.58 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.686e-05/0.9091, allocations: 16 kB / 399 MB, free: 74.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.9093, allocations: 43.91 kB / 399 MB, free: 74.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00107/0.9103, allocations: 438.6 kB / 399.5 MB, free: 74.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.9115, allocations: 0.5547 MB / 400 MB, free: 73.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/0.9116, allocations: 0 / 400 MB, free: 73.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.429e-05/0.9117, allocations: 0 / 400 MB, free: 73.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.45e-05/0.9117, allocations: 19.89 kB / 400 MB, free: 73.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005044/0.9168, allocations: 2.492 MB / 402.5 MB, free: 70.92 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000835/0.9176, allocations: 0.4984 MB / 403 MB, free: 70.41 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007385/0.9184, allocations: 475 kB / 403.5 MB, free: 69.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01301/0.9314, allocations: 8.761 MB / 412.2 MB, free: 59.85 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006388/0.9321, allocations: 309.2 kB / 412.5 MB, free: 59.54 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 4.208e-06/0.9321, allocations: 0 / 412.5 MB, free: 59.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.002576/0.9347, allocations: 0.9461 MB / 413.5 MB, free: 58.58 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.9348, allocations: 93.53 kB / 413.6 MB, free: 58.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001851/0.9367, allocations: 1.152 MB / 414.7 MB, free: 57.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.818e-05/0.9368, allocations: 29.7 kB / 414.8 MB, free: 57.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005911/0.9374, allocations: 0.6897 MB / 415.5 MB, free: 56.56 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001992/0.9376, allocations: 220.8 kB / 415.7 MB, free: 56.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.975e-05/0.9376, allocations: 4 kB / 415.7 MB, free: 56.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.933e-05/0.9377, allocations: 342.8 kB / 416 MB, free: 55.99 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004204/0.9382, allocations: 186 kB / 416.2 MB, free: 55.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005336/0.9387, allocations: 373.9 kB / 416.6 MB, free: 55.37 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009968/0.9397, allocations: 364 kB / 416.9 MB, free: 55.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.485e-06/0.9397, allocations: 4 kB / 416.9 MB, free: 55.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00212/0.9419, allocations: 0.8944 MB / 417.8 MB, free: 54.11 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.9419, allocations: 11.69 kB / 417.8 MB, free: 54.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001798/0.9421, allocations: 79.97 kB / 417.9 MB, free: 54.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001611/0.9437, allocations: 0.6717 MB / 418.6 MB, free: 53.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008064/0.9445, allocations: 119.8 kB / 418.7 MB, free: 53.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00218/0.9467, allocations: 1.276 MB / 420 MB, free: 51.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/0.948, allocations: 95.17 kB / 420.1 MB, free: 51.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.173e-05/0.9481, allocations: 40.06 kB / 420.1 MB, free: 51.79 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: RS2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Q2.vcs:VARIABLE(unit = "V" ) type: Real Q1.B.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real Q1.vcs:VARIABLE(unit = "V" ) type: Real Q2.Einternal:VARIABLE(unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.VCC.counter,VCC.counter,$PRE.VEE.counter,VEE.counter,$whenCondition2,$whenCondition1,$PRE.VCC.T0,VCC.T0,$PRE.VCC.counter2,VCC.counter2,$PRE.VEE.T0,VEE.T0,$PRE.VEE.counter2,VEE.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * 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: 0 * Non-linear torn systems: 1 {5 26} Notification: Performance of prepare postOptimizeDAE: time 0.0002584/0.9484, allocations: 121.4 kB / 420.2 MB, free: 51.66 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002236/0.9506, allocations: 0.9655 MB / 421.2 MB, free: 50.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002327/0.9509, allocations: 201.7 kB / 421.4 MB, free: 50.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003172/0.954, allocations: 1.088 MB / 422.5 MB, free: 49.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.9541, allocations: 4 kB / 422.5 MB, free: 49.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.9541, allocations: 4 kB / 422.5 MB, free: 49.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.9541, allocations: 3.984 kB / 422.5 MB, free: 49.37 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.9557, allocations: 0.9139 MB / 423.4 MB, free: 48.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001677/0.9559, allocations: 67.98 kB / 423.5 MB, free: 48.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006244/0.9565, allocations: 71.88 kB / 423.5 MB, free: 48.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001542/0.9581, allocations: 0.6659 MB / 424.2 MB, free: 47.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.202e-05/0.9582, allocations: 15.98 kB / 424.2 MB, free: 47.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/0.9603, allocations: 1.253 MB / 425.5 MB, free: 46.33 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.9603, allocations: 3.938 kB / 425.5 MB, free: 46.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002876/0.9632, allocations: 1.293 MB / 426.8 MB, free: 45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006176/0.9639, allocations: 294.5 kB / 427 MB, free: 44.69 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003012/0.9642, allocations: 11.98 kB / 427.1 MB, free: 44.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008761/0.9651, allocations: 31.97 kB / 427.1 MB, free: 44.65 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.9653, allocations: 52.36 kB / 427.1 MB, free: 44.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.875e-05/0.9654, allocations: 27.98 kB / 427.2 MB, free: 44.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001423/0.9668, allocations: 0.867 MB / 428 MB, free: 43.68 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.9668, allocations: 0 / 428 MB, free: 43.68 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001413/0.9682, allocations: 451.2 kB / 428.5 MB, free: 43.24 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Q1.vbe,Q1.vbc,Q2.vbe,Q2.vbc) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,VCC.T0,VCC.counter,VCC.counter2,VEE.T0,VEE.counter,VEE.counter2) * Number of discrete states: 4 (VEE.counter,VCC.counter,VEE.counter2,VCC.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 {5 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.004175/0.9724, allocations: 2.356 MB / 430.8 MB, free: 40.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002051/0.9745, allocations: 0.6962 MB / 431.5 MB, free: 40.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.9746, allocations: 4.188 kB / 431.5 MB, free: 40.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001299/0.9759, allocations: 461.9 kB / 432 MB, free: 39.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.9771, allocations: 174.9 kB / 432.2 MB, free: 39.55 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007762/0.9848, allocations: 2.675 MB / 434.8 MB, free: 36.83 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006585/0.9856, allocations: 1.251 MB / 436.1 MB, free: 35.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009569/0.9865, allocations: 0.6243 MB / 436.7 MB, free: 34.92 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.9865, allocations: 0 / 436.7 MB, free: 34.92 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.264/4.25, allocations: 31.37 MB / 468.1 MB, free: 3.52 MB / 314.7 MB