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.2_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadModel(Modelica): time 1.973/1.973, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.108e-05/3.126e-05, allocations: 3.219 kB / 255.3 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07777/0.07783, allocations: 44.51 MB / 299.8 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.327/0.4048, allocations: 73.1 MB / 372.9 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.4051, allocations: 71.23 kB / 373 MB, free: 22.53 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01851/0.4236, allocations: 4.844 MB / 377.9 MB, free: 21.85 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4237, allocations: 1.406 kB / 377.9 MB, free: 21.85 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.689e-05/0.4237, allocations: 9.188 kB / 377.9 MB, free: 21.85 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008519/0.4246, allocations: 0.5627 MB / 378.4 MB, free: 21.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.4246, allocations: 9.438 kB / 378.4 MB, free: 21.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.454e-05/0.4247, allocations: 38.72 kB / 378.5 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003298/0.4251, allocations: 264.6 kB / 378.7 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.4251, allocations: 19.47 kB / 378.8 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.847e-05/0.4252, allocations: 27.69 kB / 378.8 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005358/0.4257, allocations: 231.2 kB / 379 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.4258, allocations: 0 / 379 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.4258, allocations: 10.47 kB / 379 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.4258, allocations: 9.969 kB / 379 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000446/0.4263, allocations: 177.4 kB / 379.2 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001974/0.4283, allocations: 0.9981 MB / 380.2 MB, free: 20.69 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004849/0.4288, allocations: 202 kB / 380.4 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002608/0.4291, allocations: 104.1 kB / 380.5 MB, free: 20.65 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.4291, allocations: 2.219 kB / 380.5 MB, free: 20.65 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.4292, allocations: 35.56 kB / 380.5 MB, free: 20.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 3.188e-06/0.4292, allocations: 0 / 380.5 MB, free: 20.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006626/0.4298, allocations: 251.3 kB / 380.8 MB, free: 20.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.463e-05/0.4299, allocations: 57.06 kB / 380.8 MB, free: 20.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.4302, allocations: 227.3 kB / 381.1 MB, free: 20.37 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.4302, allocations: 31.8 kB / 381.1 MB, free: 20.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.654e-05/0.4303, allocations: 235 kB / 381.3 MB, free: 20.15 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.354e-05/0.4304, allocations: 72.33 kB / 381.4 MB, free: 20.1 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.572e-05/0.4304, allocations: 5 kB / 381.4 MB, free: 20.1 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.697e-05/0.4305, allocations: 324.4 kB / 381.7 MB, free: 19.79 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.4307, allocations: 60.38 kB / 381.8 MB, free: 19.78 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.4309, allocations: 88.11 kB / 381.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001776/0.431, allocations: 67.7 kB / 381.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.4311, allocations: 0 / 381.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006481/0.4317, allocations: 276.7 kB / 382.2 MB, free: 19.67 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.4318, allocations: 4.562 kB / 382.2 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.815e-06/0.4318, allocations: 0.9375 kB / 382.2 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003353/0.4321, allocations: 71.89 kB / 382.3 MB, free: 19.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.4324, allocations: 43.34 kB / 382.3 MB, free: 19.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002192/0.4346, allocations: 2.823 MB / 385.1 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003114/0.435, allocations: 41.61 kB / 385.2 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.758e-05/0.435, allocations: 10.39 kB / 385.2 MB, free: 17.08 MB / 314.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.0001055/0.4351, allocations: 118.3 kB / 385.3 MB, free: 16.97 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.898e-05/0.4352, allocations: 30.28 kB / 385.3 MB, free: 16.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.29e-05/0.4353, allocations: 30.75 kB / 385.4 MB, free: 16.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.4353, allocations: 7.234 kB / 385.4 MB, free: 16.95 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.973e-06/0.4353, allocations: 1.781 kB / 385.4 MB, free: 16.95 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.024e-06/0.4353, allocations: 4 kB / 385.4 MB, free: 16.94 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.4364, allocations: 0.643 MB / 386 MB, free: 16.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.635e-06/0.4364, allocations: 1.531 kB / 386 MB, free: 16.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001822/0.4366, allocations: 29.39 kB / 386 MB, free: 16.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002645/0.4369, allocations: 70.75 kB / 386.1 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.4369, allocations: 5.344 kB / 386.1 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002872/0.4398, allocations: 2.834 MB / 389 MB, free: 30.03 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.778e-06/0.4398, allocations: 0 / 389 MB, free: 30.03 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006534/0.4405, allocations: 344.8 kB / 389.3 MB, free: 29.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.4406, allocations: 100 kB / 389.4 MB, free: 29.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.642e-05/0.4407, allocations: 4.688 kB / 389.4 MB, free: 29.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/0.441, allocations: 34.48 kB / 389.4 MB, free: 29.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.339e-05/0.4411, allocations: 31.59 kB / 389.5 MB, free: 29.74 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.4412, allocations: 10.25 kB / 389.5 MB, free: 29.74 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002474/0.4414, allocations: 181.8 kB / 389.6 MB, free: 29.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.33e-07/0.4415, allocations: 0 / 389.6 MB, free: 29.66 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005593/0.442, allocations: 99.25 kB / 389.7 MB, free: 29.65 MB / 330.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.0001555/0.4422, allocations: 99.59 kB / 389.8 MB, free: 29.56 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007443/0.443, allocations: 414.5 kB / 390.2 MB, free: 29.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.283e-06/0.443, allocations: 1.469 kB / 390.2 MB, free: 29.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004361/0.4434, allocations: 328 kB / 390.6 MB, free: 29.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004172/0.4439, allocations: 51.28 kB / 390.6 MB, free: 29.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007492/0.4446, allocations: 344.1 kB / 390.9 MB, free: 28.91 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.4451, allocations: 0.778 MB / 391.7 MB, free: 28.21 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.62e-05/0.4452, allocations: 20.88 kB / 391.7 MB, free: 28.2 MB / 330.7 MB Notification: Performance of SimCode: time 1.904e-06/0.4452, allocations: 5.312 kB / 391.8 MB, free: 28.2 MB / 330.7 MB Notification: Performance of Templates: time 0.00825/0.4535, allocations: 5.408 MB / 397.2 MB, free: 27.94 MB / 330.7 MB