Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadModel(Modelica): time 2.183/2.183, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.668e-05/2.676e-05, allocations: 0 / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1121, allocations: 50.41 MB / 345 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003955/0.1162, allocations: 2.349 MB / 347.3 MB, free: 6.605 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.1178, allocations: 0.5924 MB / 347.9 MB, free: 6.008 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000225/0.1181, allocations: 7.938 kB / 347.9 MB, free: 6 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.972e-05/0.1182, allocations: 35.73 kB / 348 MB, free: 5.965 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004/0.1186, allocations: 123.6 kB / 348.1 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.1189, allocations: 59.92 kB / 348.1 MB, free: 5.785 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004218/0.1193, allocations: 211.5 kB / 348.3 MB, free: 5.578 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001858/0.1195, allocations: 60.94 kB / 348.4 MB, free: 5.52 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002456/0.1198, allocations: 107.8 kB / 348.5 MB, free: 5.414 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002437/0.12, allocations: 131.5 kB / 348.6 MB, free: 5.285 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.383e-05/0.1201, allocations: 12 kB / 348.6 MB, free: 5.273 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.57e-05/0.1202, allocations: 16 kB / 348.7 MB, free: 5.258 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.108e-05/0.1203, allocations: 51.75 kB / 348.7 MB, free: 5.207 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.867e-05/0.1204, allocations: 32 kB / 348.7 MB, free: 5.176 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003887/0.1208, allocations: 283.5 kB / 349 MB, free: 4.898 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1208, allocations: 0 / 349 MB, free: 4.898 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1208, allocations: 0 / 349 MB, free: 4.898 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.1208, allocations: 0 / 349 MB, free: 4.898 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.001279/0.1221, allocations: 0.5654 MB / 349.6 MB, free: 4.281 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.1222, allocations: 8.031 kB / 349.6 MB, free: 4.273 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.1223, allocations: 43.48 kB / 349.6 MB, free: 4.23 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004877/0.1228, allocations: 270.4 kB / 349.9 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.1229, allocations: 24.56 kB / 349.9 MB, free: 3.902 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.613e-05/0.1229, allocations: 24 kB / 349.9 MB, free: 3.879 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008378/0.1238, allocations: 256.9 kB / 350.2 MB, free: 3.625 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.1238, allocations: 3.938 kB / 350.2 MB, free: 3.621 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.714e-05/0.1239, allocations: 12 kB / 350.2 MB, free: 3.609 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.1239, allocations: 8 kB / 350.2 MB, free: 3.602 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008575/0.1248, allocations: 238 kB / 350.5 MB, free: 3.371 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00376/0.1285, allocations: 0.9875 MB / 351.4 MB, free: 2.312 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.13, allocations: 308.4 kB / 351.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.415e-05/0.1301, allocations: 4.188 kB / 351.7 MB, free: 1.98 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.46e-05/0.1302, allocations: 30.75 kB / 351.8 MB, free: 1.941 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 4.469e-06/0.1302, allocations: 4 kB / 351.8 MB, free: 1.938 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.003276/0.1335, allocations: 0.5882 MB / 352.4 MB, free: 1.305 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/0.1336, allocations: 55.41 kB / 352.4 MB, free: 1.238 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000544/0.1342, allocations: 229.7 kB / 352.6 MB, free: 1.016 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.78e-05/0.1342, allocations: 29.7 kB / 352.7 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000264/0.1345, allocations: 238.3 kB / 352.9 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.1347, allocations: 78.89 kB / 353 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.738e-05/0.1347, allocations: 4 kB / 353 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.1349, allocations: 318.8 kB / 353.3 MB, free: 348 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005467/0.1355, allocations: 84.42 kB / 353.4 MB, free: 256 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005491/0.136, allocations: 116.1 kB / 353.5 MB, free: 132 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005609/0.1366, allocations: 99.91 kB / 353.6 MB, free: 32 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.1366, allocations: 0 / 353.6 MB, free: 32 kB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001683/0.1383, allocations: 318.1 kB / 353.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.498e-05/0.1384, allocations: 4 kB / 353.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.1385, allocations: 0 / 353.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00059/0.1391, allocations: 81.66 kB / 354 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005441/0.1396, allocations: 43.92 kB / 354 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004571/0.1442, allocations: 2.859 MB / 356.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003972/0.1447, allocations: 35.88 kB / 356.9 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.1447, allocations: 11.98 kB / 356.9 MB, free: 12.41 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.0002294/0.145, allocations: 136.8 kB / 357.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.884e-05/0.1451, allocations: 23.72 kB / 357.1 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.724e-05/0.1452, allocations: 34.17 kB / 357.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.1452, allocations: 4 kB / 357.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/0.1452, allocations: 11.89 kB / 357.1 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.1452, allocations: 0 / 357.1 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/0.147, allocations: 0.7027 MB / 357.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.147, allocations: 0 / 357.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.1473, allocations: 23.98 kB / 357.9 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003644/0.1477, allocations: 85.56 kB / 358 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.1477, allocations: 0 / 358 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003336/0.151, allocations: 2.855 MB / 360.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.706e-06/0.1511, allocations: 0 / 360.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.1522, allocations: 394.4 kB / 361.2 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/0.1524, allocations: 108.7 kB / 361.3 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.372e-05/0.1525, allocations: 4 kB / 361.3 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004734/0.153, allocations: 47.97 kB / 361.3 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.1531, allocations: 15.97 kB / 361.4 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.1531, allocations: 8 kB / 361.4 MB, free: 7.586 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002888/0.1534, allocations: 182 kB / 361.5 MB, free: 7.406 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1534, allocations: 0 / 361.5 MB, free: 7.406 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005557/0.154, allocations: 91.84 kB / 361.6 MB, free: 7.316 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.0001889/0.1542, allocations: 111.2 kB / 361.7 MB, free: 7.199 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.1555, allocations: 467.9 kB / 362.2 MB, free: 6.719 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.1556, allocations: 0 / 362.2 MB, free: 6.719 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007346/0.1563, allocations: 357.2 kB / 362.6 MB, free: 6.344 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005157/0.1568, allocations: 48.39 kB / 362.6 MB, free: 6.297 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.1582, allocations: 0.6275 MB / 363.2 MB, free: 5.641 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004731/0.1587, allocations: 0.7755 MB / 364 MB, free: 4.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.1589, allocations: 19.44 kB / 364 MB, free: 4.82 MB / 298.7 MB Notification: Performance of SimCode: time 1.212e-06/0.1589, allocations: 0 / 364 MB, free: 4.82 MB / 298.7 MB Notification: Performance of Templates: time 0.01234/0.1712, allocations: 5.383 MB / 369.4 MB, free: 15.43 MB / 314.7 MB