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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.758/1.758, allocations: 194.9 MB / 202.6 MB, free: 6.906 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2142/1.972, allocations: 46.83 MB / 249.4 MB, free: 5.375 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0926/2.065, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3095/2.374, allocations: 86.32 MB / 380.2 MB, free: 5.957 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/2.375, allocations: 72.03 kB / 380.3 MB, free: 5.949 MB / 298.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.2121/2.587, allocations: 56.5 MB / 436.8 MB, free: 1.695 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/2.587, allocations: 8 kB / 436.8 MB, free: 1.688 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005399/2.587, allocations: 225.4 kB / 437 MB, free: 1.465 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003809/2.591, allocations: 1.258 MB / 438.3 MB, free: 184 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.338e-05/2.591, allocations: 23.94 kB / 438.3 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001673/2.591, allocations: 36 kB / 438.3 MB, free: 124 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001584/2.593, allocations: 448.3 kB / 438.8 MB, free: 15.69 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/2.595, allocations: 0.547 MB / 439.3 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.878e-05/2.595, allocations: 3.906 kB / 439.3 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.153e-05/2.595, allocations: 8 kB / 439.3 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.32e-05/2.595, allocations: 15.98 kB / 439.3 MB, free: 15.1 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007/2.602, allocations: 2.49 MB / 441.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/2.603, allocations: 448.1 kB / 442.3 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001114/2.604, allocations: 454.3 kB / 442.7 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0181/2.622, allocations: 8.716 MB / 451.4 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008564/2.623, allocations: 289.8 kB / 451.7 MB, free: 1.289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 4.478e-06/2.623, allocations: 7.938 kB / 451.7 MB, free: 1.281 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.003275/2.627, allocations: 0.9225 MB / 452.6 MB, free: 356 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.408e-05/2.627, allocations: 97.47 kB / 452.7 MB, free: 240 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002827/2.63, allocations: 1.155 MB / 453.9 MB, free: 15.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/2.63, allocations: 25.7 kB / 453.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004581/2.63, allocations: 408.9 kB / 454.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003034/2.631, allocations: 220.7 kB / 454.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.925e-05/2.631, allocations: 0 / 454.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/2.631, allocations: 339 kB / 454.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006328/2.631, allocations: 181.8 kB / 455 MB, free: 13.87 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008164/2.632, allocations: 379.9 kB / 455.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/2.633, allocations: 322.7 kB / 455.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.919e-06/2.634, allocations: 4 kB / 455.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003302/2.637, allocations: 1.044 MB / 456.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/2.637, allocations: 4 kB / 456.8 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002182/2.637, allocations: 71.98 kB / 456.9 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002322/2.639, allocations: 0.6723 MB / 457.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/2.641, allocations: 131.8 kB / 457.7 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003296/2.644, allocations: 1.284 MB / 458.9 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/2.646, allocations: 91.25 kB / 459 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001684/2.646, allocations: 43.92 kB / 459.1 MB, free: 9.727 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.0003447/2.646, allocations: 137 kB / 459.2 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003838/2.647, allocations: 197.7 kB / 459.4 MB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005175/2.652, allocations: 1.162 MB / 460.6 MB, free: 8.211 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.095e-05/2.652, allocations: 15.92 kB / 460.6 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/2.652, allocations: 0 / 460.6 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/2.652, allocations: 0 / 460.6 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002216/2.654, allocations: 0.9065 MB / 461.5 MB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002001/2.654, allocations: 67.98 kB / 461.6 MB, free: 7.184 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008784/2.655, allocations: 79.88 kB / 461.6 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002296/2.658, allocations: 0.6661 MB / 462.3 MB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001355/2.658, allocations: 19.98 kB / 462.3 MB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003148/2.661, allocations: 1.253 MB / 463.6 MB, free: 5.141 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/2.661, allocations: 0 / 463.6 MB, free: 5.141 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004075/2.665, allocations: 1.27 MB / 464.8 MB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005114/2.67, allocations: 1.934 MB / 466.8 MB, free: 1.895 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008508/2.671, allocations: 306.4 kB / 467.1 MB, free: 1.574 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003625/2.671, allocations: 4 kB / 467.1 MB, free: 1.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/2.673, allocations: 43.95 kB / 467.1 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/2.673, allocations: 52.36 kB / 467.2 MB, free: 1.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/2.673, allocations: 24 kB / 467.2 MB, free: 1.453 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.002124/2.675, allocations: 0.867 MB / 468.1 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002774/2.678, allocations: 463.1 kB / 468.5 MB, free: 116 kB / 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.001629/2.68, allocations: 0.6116 MB / 469.1 MB, free: 15.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002735/2.682, allocations: 0.7046 MB / 469.8 MB, free: 14.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/2.682, allocations: 4 kB / 469.8 MB, free: 14.83 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001803/2.684, allocations: 453 kB / 470.3 MB, free: 14.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/2.686, allocations: 175 kB / 470.4 MB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009256/2.695, allocations: 2.395 MB / 472.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001557/2.696, allocations: 1.348 MB / 474.2 MB, free: 10.39 MB / 378.7 MB Notification: Performance of SimCode: time 1.563e-06/2.696, allocations: 0 / 474.2 MB, free: 10.39 MB / 378.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