Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadModel(Modelica): time 1.687/1.687, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.592e-05/3.614e-05, allocations: 8 kB / 225 MB, free: 2.781 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.2145, allocations: 38.76 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1089/0.3235, allocations: 67.97 MB / 331.7 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.3238, allocations: 67.95 kB / 331.8 MB, free: 5.738 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02049/0.3443, allocations: 4.962 MB / 336.8 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.3443, allocations: 4 kB / 336.8 MB, free: 0.75 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.686e-05/0.3444, allocations: 8.375 kB / 336.8 MB, free: 0.7422 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001039/0.3454, allocations: 0.5644 MB / 337.3 MB, free: 136 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.3455, allocations: 8.031 kB / 337.3 MB, free: 128 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.3456, allocations: 35.62 kB / 337.4 MB, free: 92 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004955/0.3461, allocations: 270.4 kB / 337.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.3462, allocations: 20.56 kB / 337.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.384e-05/0.3463, allocations: 24 kB / 337.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005991/0.3469, allocations: 231.7 kB / 337.9 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.3469, allocations: 3.938 kB / 337.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.064e-05/0.347, allocations: 23.98 kB / 337.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.347, allocations: 8 kB / 337.9 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004817/0.3475, allocations: 169.1 kB / 338.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002381/0.3499, allocations: 0.9875 MB / 339.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005532/0.3505, allocations: 203.1 kB / 339.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.3508, allocations: 105.2 kB / 339.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.877e-05/0.3508, allocations: 8.172 kB / 339.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.3509, allocations: 34.69 kB / 339.4 MB, free: 13.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 3.48e-06/0.3509, allocations: 0 / 339.4 MB, free: 13.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007375/0.3516, allocations: 253.6 kB / 339.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/0.3517, allocations: 55.41 kB / 339.7 MB, free: 13.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003651/0.3521, allocations: 227 kB / 340 MB, free: 13.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.3521, allocations: 25.7 kB / 340 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.3523, allocations: 242.4 kB / 340.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.44e-05/0.3524, allocations: 71 kB / 340.3 MB, free: 12.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.894e-05/0.3524, allocations: 8 kB / 340.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.3526, allocations: 322.8 kB / 340.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.3528, allocations: 56.47 kB / 340.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.353, allocations: 91.2 kB / 340.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001998/0.3532, allocations: 67.91 kB / 340.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.059e-06/0.3532, allocations: 4 kB / 340.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007438/0.354, allocations: 267 kB / 341.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.354, allocations: 4 kB / 341.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.513e-06/0.3541, allocations: 3.984 kB / 341.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003644/0.3544, allocations: 65.69 kB / 341.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002916/0.3547, allocations: 51.97 kB / 341.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003324/0.3581, allocations: 2.82 MB / 344 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003185/0.3584, allocations: 39.84 kB / 344.1 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.064e-05/0.3585, allocations: 8 kB / 344.1 MB, free: 8.898 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001497/0.3587, allocations: 116.9 kB / 344.2 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.995e-05/0.3588, allocations: 27.67 kB / 344.2 MB, free: 8.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.384e-05/0.3588, allocations: 33.95 kB / 344.3 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.424e-06/0.3589, allocations: 4 kB / 344.3 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.3589, allocations: 4 kB / 344.3 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.3589, allocations: 3.984 kB / 344.3 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001274/0.3602, allocations: 0.6441 MB / 344.9 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.963e-06/0.3602, allocations: 0 / 344.9 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000204/0.3604, allocations: 31.98 kB / 344.9 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002951/0.3607, allocations: 73.67 kB / 345 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.3608, allocations: 3.938 kB / 345 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003241/0.364, allocations: 2.815 MB / 347.8 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.3641, allocations: 0 / 347.8 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000752/0.3648, allocations: 352.7 kB / 348.2 MB, free: 4.434 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001956/0.3651, allocations: 116.7 kB / 348.3 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.001e-05/0.3651, allocations: 8 kB / 348.3 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/0.3655, allocations: 35.97 kB / 348.3 MB, free: 4.258 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.796e-05/0.3656, allocations: 23.95 kB / 348.4 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.656e-05/0.3656, allocations: 8 kB / 348.4 MB, free: 4.227 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002869/0.3659, allocations: 183.1 kB / 348.5 MB, free: 4.051 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.67e-07/0.3659, allocations: 4 kB / 348.6 MB, free: 4.047 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005434/0.3665, allocations: 87.84 kB / 348.6 MB, free: 3.961 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001595/0.3667, allocations: 115.2 kB / 348.7 MB, free: 3.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000759/0.3674, allocations: 395.3 kB / 349.1 MB, free: 3.438 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.3675, allocations: 7.938 kB / 349.1 MB, free: 3.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004915/0.368, allocations: 315.5 kB / 349.5 MB, free: 3.102 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004356/0.3684, allocations: 49.83 kB / 349.5 MB, free: 3.051 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008516/0.3693, allocations: 346.6 kB / 349.8 MB, free: 2.688 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004887/0.3698, allocations: 0.7755 MB / 350.6 MB, free: 1.887 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.366e-05/0.3699, allocations: 23.44 kB / 350.6 MB, free: 1.863 MB / 298.7 MB Notification: Performance of SimCode: time 1.909e-06/0.3699, allocations: 4 kB / 350.6 MB, free: 1.859 MB / 298.7 MB Notification: Performance of Templates: time 0.009994/0.3799, allocations: 5.378 MB / 356 MB, free: 12.48 MB / 314.7 MB