Running command: translateModel(Modelica.Electrical.Analog.Examples.ChuaCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="C1.v|C2.v|L.i|Time",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit") Notification: Performance of loadModel(Modelica): time 0.9718/0.9718, allocations: 111.1 MB / 126.3 MB, free: 6.398 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.39e-05/3.378e-05, allocations: 3.984 kB / 154.5 MB, free: 2.832 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05363/0.05369, allocations: 25.18 MB / 179.7 MB, free: 9.613 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ChuaCircuit): time 0.002628/0.05637, allocations: 1.609 MB / 181.3 MB, free: 8 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008356/0.05724, allocations: 387.9 kB / 181.7 MB, free: 7.621 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.921e-05/0.05736, allocations: 4 kB / 181.7 MB, free: 7.617 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 6.604e-05/0.05744, allocations: 23.83 kB / 181.7 MB, free: 7.594 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000182/0.05763, allocations: 63.78 kB / 181.8 MB, free: 7.531 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001772/0.05782, allocations: 43.94 kB / 181.8 MB, free: 7.488 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.000245/0.05808, allocations: 119.7 kB / 181.9 MB, free: 7.371 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.05826, allocations: 48.33 kB / 182 MB, free: 7.32 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.05837, allocations: 59.84 kB / 182 MB, free: 7.262 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.05855, allocations: 79.8 kB / 182.1 MB, free: 7.184 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.819e-05/0.05861, allocations: 8 kB / 182.1 MB, free: 7.176 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 3.028e-05/0.05865, allocations: 11.94 kB / 182.1 MB, free: 7.164 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 4.105e-05/0.0587, allocations: 27.91 kB / 182.2 MB, free: 7.137 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 6.035e-05/0.05877, allocations: 16 kB / 182.2 MB, free: 7.121 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000244/0.05903, allocations: 171.8 kB / 182.3 MB, free: 6.953 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.05904, allocations: 0 / 182.3 MB, free: 6.953 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.05905, allocations: 0 / 182.3 MB, free: 6.953 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.05907, allocations: 0 / 182.3 MB, free: 6.953 MB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.000872/0.05995, allocations: 463.2 kB / 182.8 MB, free: 6.453 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.06001, allocations: 12.03 kB / 182.8 MB, free: 6.441 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.578e-05/0.06009, allocations: 15.81 kB / 182.8 MB, free: 6.426 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.06039, allocations: 214.8 kB / 183 MB, free: 6.176 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.06e-05/0.06044, allocations: 20.36 kB / 183 MB, free: 6.156 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.556e-05/0.06049, allocations: 12 kB / 183.1 MB, free: 6.145 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005332/0.06104, allocations: 182.6 kB / 183.2 MB, free: 5.961 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.06106, allocations: 0 / 183.2 MB, free: 5.961 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.733e-05/0.06111, allocations: 12 kB / 183.2 MB, free: 5.949 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.06113, allocations: 7.953 kB / 183.3 MB, free: 5.941 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005456/0.06168, allocations: 143.9 kB / 183.4 MB, free: 5.801 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.06349, allocations: 0.7663 MB / 184.2 MB, free: 4.965 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006458/0.06416, allocations: 174.5 kB / 184.3 MB, free: 4.785 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.0642, allocations: 0 / 184.3 MB, free: 4.785 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.06424, allocations: 34.56 kB / 184.4 MB, free: 4.742 MB / 154.7 MB Notification: Performance of pre-optimization done (n=13): time 1.804e-06/0.06425, allocations: 0 / 184.4 MB, free: 4.742 MB / 154.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007252/0.06498, allocations: 197.8 kB / 184.6 MB, free: 4.543 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.06504, allocations: 51.41 kB / 184.6 MB, free: 4.48 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.06522, allocations: 141.4 kB / 184.7 MB, free: 4.336 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.06526, allocations: 25.7 kB / 184.8 MB, free: 4.305 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.06539, allocations: 198.6 kB / 185 MB, free: 4.109 MB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.468e-05/0.06546, allocations: 51.28 kB / 185 MB, free: 4.059 MB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.252e-05/0.06549, allocations: 8 kB / 185 MB, free: 4.051 MB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.06563, allocations: 322.8 kB / 185.3 MB, free: 3.727 MB / 154.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.06586, allocations: 47.98 kB / 185.4 MB, free: 3.68 MB / 154.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002247/0.06609, allocations: 69.67 kB / 185.5 MB, free: 3.605 MB / 154.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002414/0.06635, allocations: 71.84 kB / 185.5 MB, free: 3.535 MB / 154.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.06637, allocations: 0 / 185.5 MB, free: 3.535 MB / 154.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005447/0.06692, allocations: 171.2 kB / 185.7 MB, free: 3.363 MB / 154.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.06696, allocations: 11.94 kB / 185.7 MB, free: 3.352 MB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.06698, allocations: 4.031 kB / 185.7 MB, free: 3.348 MB / 154.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.067, allocations: 0 / 185.7 MB, free: 3.348 MB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00038/0.06739, allocations: 43.97 kB / 185.8 MB, free: 3.305 MB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.06741, allocations: 0 / 185.8 MB, free: 3.305 MB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.0676, allocations: 19.84 kB / 185.8 MB, free: 3.285 MB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.06763, allocations: 4 kB / 185.8 MB, free: 3.281 MB / 154.7 MB Warning: Assuming fixed start value for the following 3 variables: C2.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real C1.v:VARIABLE(start = 4.0 unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real L.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002243/0.06786, allocations: 142.7 kB / 185.9 MB, free: 3.133 MB / 154.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.451e-05/0.06793, allocations: 11.91 kB / 185.9 MB, free: 3.121 MB / 154.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.616e-05/0.06798, allocations: 12.84 kB / 185.9 MB, free: 3.113 MB / 154.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.068, allocations: 7.984 kB / 185.9 MB, free: 3.105 MB / 154.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.06801, allocations: 0 / 185.9 MB, free: 3.105 MB / 154.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.06803, allocations: 0 / 185.9 MB, free: 3.105 MB / 154.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004019/0.06844, allocations: 277.3 kB / 186.2 MB, free: 2.785 MB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.06846, allocations: 3.953 kB / 186.2 MB, free: 2.781 MB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003853/0.06885, allocations: 39.98 kB / 186.3 MB, free: 2.742 MB / 154.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.06887, allocations: 0 / 186.3 MB, free: 2.742 MB / 154.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.0689, allocations: 7.984 kB / 186.3 MB, free: 2.734 MB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.06892, allocations: 4 kB / 186.3 MB, free: 2.73 MB / 154.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.06892, allocations: 0 / 186.3 MB, free: 2.73 MB / 154.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007518/0.06968, allocations: 315.2 kB / 186.6 MB, free: 2.406 MB / 154.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.964e-05/0.06978, allocations: 88.97 kB / 186.7 MB, free: 2.301 MB / 154.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.28e-05/0.06986, allocations: 4 kB / 186.7 MB, free: 2.297 MB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002426/0.07011, allocations: 16.12 kB / 186.7 MB, free: 2.281 MB / 154.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.124e-05/0.07018, allocations: 15.97 kB / 186.7 MB, free: 2.266 MB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.07021, allocations: 8 kB / 186.7 MB, free: 2.258 MB / 154.7 MB Notification: Performance of sorting global known variables: time 0.0001212/0.07034, allocations: 119.2 kB / 186.8 MB, free: 2.145 MB / 154.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.07035, allocations: 0 / 186.8 MB, free: 2.145 MB / 154.7 MB Notification: Performance of remove unused functions: time 0.000347/0.0707, allocations: 47.84 kB / 186.9 MB, free: 2.098 MB / 154.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,C1.v,C2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001378/0.07085, allocations: 99.19 kB / 187 MB, free: 1.988 MB / 154.7 MB Notification: Performance of simCode: created initialization part: time 0.0005241/0.07139, allocations: 131.9 kB / 187.1 MB, free: 1.859 MB / 154.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.0714, allocations: 0 / 187.1 MB, free: 1.859 MB / 154.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002353/0.07165, allocations: 67.91 kB / 187.2 MB, free: 1.793 MB / 154.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004653/0.07213, allocations: 36.03 kB / 187.2 MB, free: 1.758 MB / 154.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.07354, allocations: 0.6399 MB / 187.8 MB, free: 1.082 MB / 154.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.07392, allocations: 0.7282 MB / 188.6 MB, free: 336 kB / 154.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.861e-05/0.07401, allocations: 15.44 kB / 188.6 MB, free: 324 kB / 154.7 MB Notification: Performance of SimCode: time 7.61e-07/0.07402, allocations: 0 / 188.6 MB, free: 324 kB / 154.7 MB Notification: Performance of Templates: time 0.03212/0.1061, allocations: 1.974 MB / 190.6 MB, free: 14.34 MB / 170.7 MB