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 2.051/2.051, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.396e-05/2.404e-05, allocations: 7.938 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2494, allocations: 44.5 MB / 294.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1121/0.3615, allocations: 72.45 MB / 366.6 MB, free: 9.555 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.3618, allocations: 75.91 kB / 366.6 MB, free: 9.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01877/0.3806, allocations: 4.803 MB / 371.4 MB, free: 4.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.871e-06/0.3806, allocations: 0 / 371.4 MB, free: 4.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.284e-05/0.3807, allocations: 8 kB / 371.4 MB, free: 4.652 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.0009767/0.3817, allocations: 0.5567 MB / 372 MB, free: 4.051 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.3817, allocations: 12.03 kB / 372 MB, free: 4.039 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.3818, allocations: 35.53 kB / 372 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.3823, allocations: 271.4 kB / 372.3 MB, free: 3.699 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.3823, allocations: 8 kB / 372.3 MB, free: 3.691 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.317e-05/0.3824, allocations: 16 kB / 372.3 MB, free: 3.676 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004688/0.3829, allocations: 165.1 kB / 372.5 MB, free: 3.516 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004949/0.3834, allocations: 195.8 kB / 372.7 MB, free: 3.316 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.3834, allocations: 0 / 372.7 MB, free: 3.316 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.301e-05/0.3835, allocations: 0 / 372.7 MB, free: 3.316 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.3835, allocations: 8 kB / 372.7 MB, free: 3.309 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002158/0.3857, allocations: 0.926 MB / 373.6 MB, free: 2.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000513/0.3862, allocations: 195 kB / 373.8 MB, free: 2.121 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002571/0.3865, allocations: 97.22 kB / 373.9 MB, free: 2.023 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.3865, allocations: 192 / 373.9 MB, free: 2.023 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/0.3866, allocations: 38.75 kB / 373.9 MB, free: 1.977 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 5.088e-06/0.3866, allocations: 0 / 373.9 MB, free: 1.977 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.000688/0.3873, allocations: 229.8 kB / 374.2 MB, free: 1.742 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.3873, allocations: 55.41 kB / 374.2 MB, free: 1.676 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003/0.3877, allocations: 200.5 kB / 374.4 MB, free: 1.477 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.379e-05/0.3877, allocations: 29.7 kB / 374.4 MB, free: 1.441 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001741/0.3879, allocations: 246.3 kB / 374.7 MB, free: 1.199 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.441e-05/0.388, allocations: 71 kB / 374.7 MB, free: 1.129 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.332e-05/0.388, allocations: 0 / 374.7 MB, free: 1.129 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.3882, allocations: 322.8 kB / 375.1 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.3884, allocations: 60.41 kB / 375.1 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.3885, allocations: 75.28 kB / 375.2 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.3887, allocations: 63.91 kB / 375.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.245e-06/0.3887, allocations: 0 / 375.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006472/0.3894, allocations: 255 kB / 375.5 MB, free: 344 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.3894, allocations: 6.031 kB / 375.5 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.829e-06/0.3895, allocations: 0 / 375.5 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003528/0.3898, allocations: 73.73 kB / 375.6 MB, free: 260 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002939/0.3901, allocations: 43.92 kB / 375.6 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003144/0.3933, allocations: 2.716 MB / 378.3 MB, free: 13.26 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002888/0.3936, allocations: 23.88 kB / 378.4 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.955e-05/0.3937, allocations: 8 kB / 378.4 MB, free: 13.23 MB / 330.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.0001438/0.3938, allocations: 116.7 kB / 378.5 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.978e-05/0.3939, allocations: 23.78 kB / 378.5 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.244e-05/0.394, allocations: 25.97 kB / 378.5 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.471e-06/0.394, allocations: 11.92 kB / 378.6 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.31e-06/0.3941, allocations: 0 / 378.6 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.039e-06/0.3941, allocations: 3.984 kB / 378.6 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.3952, allocations: 0.5822 MB / 379.1 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.383e-06/0.3952, allocations: 8 kB / 379.1 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001912/0.3954, allocations: 27.97 kB / 379.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002875/0.3958, allocations: 69.62 kB / 379.2 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.3958, allocations: 0 / 379.2 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003027/0.3988, allocations: 2.708 MB / 381.9 MB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.858e-06/0.3989, allocations: 0 / 381.9 MB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006671/0.3996, allocations: 329.2 kB / 382.3 MB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.3997, allocations: 96.86 kB / 382.4 MB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.119e-05/0.3997, allocations: 0 / 382.4 MB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003376/0.4001, allocations: 43.91 kB / 382.4 MB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.481e-05/0.4002, allocations: 15.97 kB / 382.4 MB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.443e-05/0.4002, allocations: 8 kB / 382.4 MB, free: 8.844 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002229/0.4005, allocations: 164.5 kB / 382.6 MB, free: 8.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.283e-06/0.4005, allocations: 0 / 382.6 MB, free: 8.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000546/0.401, allocations: 87.69 kB / 382.7 MB, free: 8.594 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.0001653/0.4012, allocations: 103.2 kB / 382.8 MB, free: 8.484 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007616/0.402, allocations: 375.6 kB / 383.1 MB, free: 8.098 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.633e-06/0.402, allocations: 4 kB / 383.1 MB, free: 8.094 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004723/0.4025, allocations: 307.5 kB / 383.4 MB, free: 7.773 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003789/0.4029, allocations: 44.33 kB / 383.5 MB, free: 7.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00083/0.4037, allocations: 335.9 kB / 383.8 MB, free: 7.375 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.4042, allocations: 0.7717 MB / 384.6 MB, free: 6.578 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.572e-05/0.4043, allocations: 15.44 kB / 384.6 MB, free: 6.562 MB / 330.7 MB Notification: Performance of SimCode: time 1.812e-06/0.4044, allocations: 4 kB / 384.6 MB, free: 6.559 MB / 330.7 MB Notification: Performance of Templates: time 0.009668/0.414, allocations: 5.202 MB / 389.8 MB, free: 1.355 MB / 330.7 MB