Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkDifferentialPair",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.333/2.333, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.849e-05/2.861e-05, allocations: 0 / 249.8 MB, free: 14.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3487, allocations: 44.5 MB / 294.3 MB, free: 14.46 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2028/0.5515, allocations: 86.38 MB / 380.7 MB, free: 11.48 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002953/0.5519, allocations: 67.97 kB / 380.7 MB, free: 11.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6059/1.158, allocations: 54.47 MB / 435.2 MB, free: 90.14 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.925e-06/1.158, allocations: 0 / 435.2 MB, free: 90.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001182/1.158, allocations: 27.28 kB / 435.2 MB, free: 90.14 MB / 362.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.004851/1.163, allocations: 1.731 MB / 437 MB, free: 89.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/1.163, allocations: 11.59 kB / 437 MB, free: 89.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005572/1.163, allocations: 220.9 kB / 437.2 MB, free: 89.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003312/1.167, allocations: 1.25 MB / 438.4 MB, free: 88.63 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.231e-05/1.167, allocations: 16.78 kB / 438.4 MB, free: 88.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/1.167, allocations: 35.78 kB / 438.5 MB, free: 88.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00121/1.168, allocations: 443.3 kB / 438.9 MB, free: 88.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/1.17, allocations: 0.5573 MB / 439.5 MB, free: 88.56 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/1.17, allocations: 352 / 439.5 MB, free: 88.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.583e-05/1.17, allocations: 7.797 kB / 439.5 MB, free: 88.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.318e-05/1.17, allocations: 14.62 kB / 439.5 MB, free: 88.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005636/1.175, allocations: 2.488 MB / 442 MB, free: 87.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009683/1.176, allocations: 0.4916 MB / 442.5 MB, free: 87.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008834/1.177, allocations: 479.7 kB / 442.9 MB, free: 87.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01413/1.192, allocations: 8.759 MB / 451.7 MB, free: 80.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000686/1.192, allocations: 301.3 kB / 452 MB, free: 80.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 4.138e-06/1.192, allocations: 0 / 452 MB, free: 80.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.002723/1.195, allocations: 0.9613 MB / 453 MB, free: 80.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/1.195, allocations: 90.72 kB / 453 MB, free: 80.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00213/1.197, allocations: 1.153 MB / 454.2 MB, free: 80.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001371/1.197, allocations: 33.42 kB / 454.2 MB, free: 79.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008228/1.198, allocations: 0.792 MB / 455 MB, free: 79.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002909/1.199, allocations: 214.3 kB / 455.2 MB, free: 79.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.516e-05/1.199, allocations: 3.812 kB / 455.2 MB, free: 79.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.292e-05/1.199, allocations: 333.4 kB / 455.6 MB, free: 79.21 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004724/1.199, allocations: 187.6 kB / 455.7 MB, free: 79.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006406/1.2, allocations: 378.3 kB / 456.1 MB, free: 78.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/1.201, allocations: 357.6 kB / 456.5 MB, free: 78.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/1.201, allocations: 2.688 kB / 456.5 MB, free: 78.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002764/1.204, allocations: 1.059 MB / 457.5 MB, free: 78.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.351e-05/1.204, allocations: 7.875 kB / 457.5 MB, free: 78.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002054/1.204, allocations: 71.94 kB / 457.6 MB, free: 78.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001855/1.206, allocations: 0.6688 MB / 458.3 MB, free: 78.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009313/1.207, allocations: 128.2 kB / 458.4 MB, free: 78.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002517/1.209, allocations: 1.287 MB / 459.7 MB, free: 77.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/1.211, allocations: 85.89 kB / 459.8 MB, free: 77.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/1.211, allocations: 36.53 kB / 459.8 MB, free: 77.3 MB / 362.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.0003067/1.211, allocations: 136.2 kB / 459.9 MB, free: 77.17 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002771/1.214, allocations: 0.9512 MB / 460.9 MB, free: 76.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003771/1.215, allocations: 200.4 kB / 461.1 MB, free: 76.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00363/1.218, allocations: 1.104 MB / 462.2 MB, free: 76.26 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/1.218, allocations: 3.375 kB / 462.2 MB, free: 76.26 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/1.218, allocations: 3.281 kB / 462.2 MB, free: 76.26 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/1.218, allocations: 3.797 kB / 462.2 MB, free: 76.26 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001795/1.22, allocations: 0.9127 MB / 463.1 MB, free: 75.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001913/1.22, allocations: 70.62 kB / 463.2 MB, free: 75.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007425/1.221, allocations: 76.58 kB / 463.3 MB, free: 75.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001785/1.223, allocations: 0.6623 MB / 463.9 MB, free: 75.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.43e-05/1.223, allocations: 15.56 kB / 463.9 MB, free: 75.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002415/1.225, allocations: 1.25 MB / 465.2 MB, free: 74.87 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/1.225, allocations: 0 / 465.2 MB, free: 74.87 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00335/1.229, allocations: 1.293 MB / 466.5 MB, free: 74.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007857/1.23, allocations: 292.4 kB / 466.8 MB, free: 74.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003615/1.23, allocations: 7.688 kB / 466.8 MB, free: 74.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009927/1.231, allocations: 41.69 kB / 466.8 MB, free: 74.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/1.231, allocations: 51.97 kB / 466.9 MB, free: 74.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.148e-05/1.231, allocations: 20.94 kB / 466.9 MB, free: 74.04 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001684/1.233, allocations: 0.8709 MB / 467.8 MB, free: 73.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.233, allocations: 4 kB / 467.8 MB, free: 73.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001661/1.235, allocations: 452.8 kB / 468.2 MB, free: 73.54 MB / 362.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.004829/1.24, allocations: 2.355 MB / 470.6 MB, free: 71.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002279/1.242, allocations: 0.7033 MB / 471.3 MB, free: 70.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.242, allocations: 4 kB / 471.3 MB, free: 70.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001471/1.243, allocations: 456.6 kB / 471.7 MB, free: 70.51 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/1.245, allocations: 173.9 kB / 471.9 MB, free: 70.35 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008591/1.253, allocations: 2.62 MB / 474.5 MB, free: 67.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007549/1.254, allocations: 1.26 MB / 475.8 MB, free: 66.89 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001078/1.255, allocations: 177.7 kB / 475.9 MB, free: 66.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001053/1.256, allocations: 0.6265 MB / 476.6 MB, free: 66.19 MB / 362.7 MB Notification: Performance of SimCode: time 1.794e-06/1.256, allocations: 0 / 476.6 MB, free: 66.19 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1305/1.387, allocations: 28.36 MB / 0.4931 GB, free: 39.54 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002632/1.387, allocations: 167.3 kB / 0.4932 GB, free: 39.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.423/5.81, allocations: 0 / 0.4932 GB, free: 39.34 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkDifferentialPair_res.mat does not exist to compare? outputFormat=mat