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.957/1.957, allocations: 171.1 MB / 186.3 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.654e-05/4.649e-05, allocations: 11.98 kB / 228.1 MB, free: 7.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1137, allocations: 38.76 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.005645/0.1195, allocations: 2.357 MB / 269.2 MB, free: 14.75 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.1217, allocations: 0.6277 MB / 269.9 MB, free: 14.12 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003859/0.1222, allocations: 8 kB / 269.9 MB, free: 14.12 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.1224, allocations: 43.67 kB / 269.9 MB, free: 14.07 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005465/0.123, allocations: 119.6 kB / 270 MB, free: 13.96 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003885/0.1234, allocations: 67.86 kB / 270.1 MB, free: 13.89 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006667/0.1241, allocations: 211.5 kB / 270.3 MB, free: 13.68 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002494/0.1243, allocations: 56.91 kB / 270.4 MB, free: 13.62 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003855/0.1248, allocations: 111.8 kB / 270.5 MB, free: 13.52 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000348/0.1251, allocations: 131.5 kB / 270.6 MB, free: 13.39 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.1253, allocations: 16 kB / 270.6 MB, free: 13.37 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.745e-05/0.1254, allocations: 12 kB / 270.6 MB, free: 13.36 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.908e-05/0.1255, allocations: 47.77 kB / 270.7 MB, free: 13.31 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001409/0.1256, allocations: 36 kB / 270.7 MB, free: 13.28 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005963/0.1263, allocations: 271.5 kB / 271 MB, free: 13.01 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1263, allocations: 0 / 271 MB, free: 13.01 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.657e-06/0.1263, allocations: 0 / 271 MB, free: 13.01 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.829e-05/0.1263, allocations: 0 / 271 MB, free: 13.01 MB / 234.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.001853/0.1282, allocations: 0.5732 MB / 271.6 MB, free: 12.39 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.291e-05/0.1283, allocations: 11.97 kB / 271.6 MB, free: 12.38 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002238/0.1286, allocations: 35.62 kB / 271.6 MB, free: 12.34 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000698/0.1293, allocations: 274.4 kB / 271.9 MB, free: 12.04 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.321e-05/0.1294, allocations: 24.52 kB / 271.9 MB, free: 12.01 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.561e-05/0.1295, allocations: 28 kB / 271.9 MB, free: 11.98 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.1308, allocations: 256.9 kB / 272.2 MB, free: 11.73 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.1309, allocations: 0 / 272.2 MB, free: 11.73 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-05/0.131, allocations: 12 kB / 272.2 MB, free: 11.72 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.875e-05/0.131, allocations: 8 kB / 272.2 MB, free: 11.71 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.1324, allocations: 230.1 kB / 272.4 MB, free: 11.48 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004162/0.1366, allocations: 0.9914 MB / 273.4 MB, free: 10.42 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.1379, allocations: 316.3 kB / 273.7 MB, free: 10.09 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.54e-05/0.138, allocations: 192 / 273.7 MB, free: 10.09 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.747e-05/0.1381, allocations: 42.75 kB / 273.8 MB, free: 10.04 MB / 234.7 MB Notification: Performance of pre-optimization done (n=21): time 3.417e-06/0.1381, allocations: 0 / 273.8 MB, free: 10.04 MB / 234.7 MB Notification: Performance of matching and sorting (n=21): time 0.003145/0.1413, allocations: 0.5806 MB / 274.3 MB, free: 9.41 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.286e-05/0.1414, allocations: 55.41 kB / 274.4 MB, free: 9.344 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005993/0.142, allocations: 233.6 kB / 274.6 MB, free: 9.109 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.472e-05/0.1421, allocations: 33.7 kB / 274.7 MB, free: 9.07 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002276/0.1424, allocations: 238.7 kB / 274.9 MB, free: 8.836 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.1425, allocations: 74.98 kB / 275 MB, free: 8.762 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-05/0.1426, allocations: 4 kB / 275 MB, free: 8.758 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.1428, allocations: 318.8 kB / 275.3 MB, free: 8.438 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005547/0.1433, allocations: 84.42 kB / 275.4 MB, free: 8.355 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005514/0.1439, allocations: 111.5 kB / 275.5 MB, free: 8.238 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000552/0.1445, allocations: 99.91 kB / 275.6 MB, free: 8.141 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.1445, allocations: 0 / 275.6 MB, free: 8.141 MB / 234.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001668/0.1462, allocations: 319 kB / 275.9 MB, free: 7.816 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.564e-05/0.1463, allocations: 4 kB / 275.9 MB, free: 7.812 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.1463, allocations: 0 / 275.9 MB, free: 7.812 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005929/0.1469, allocations: 77.66 kB / 276 MB, free: 7.73 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005407/0.1475, allocations: 39.98 kB / 276 MB, free: 7.691 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00497/0.1525, allocations: 2.858 MB / 278.8 MB, free: 4.566 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00057/0.1531, allocations: 36.34 kB / 278.9 MB, free: 4.531 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.887e-05/0.1532, allocations: 7.984 kB / 278.9 MB, free: 4.523 MB / 234.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.0003228/0.1535, allocations: 141.7 kB / 279 MB, free: 4.375 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.1537, allocations: 23.72 kB / 279.1 MB, free: 4.352 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.1538, allocations: 34.17 kB / 279.1 MB, free: 4.316 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.1539, allocations: 8.062 kB / 279.1 MB, free: 4.309 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/0.1539, allocations: 0 / 279.1 MB, free: 4.309 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.1539, allocations: 3.938 kB / 279.1 MB, free: 4.305 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.1565, allocations: 0.7066 MB / 279.8 MB, free: 3.535 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/0.1566, allocations: 0 / 279.8 MB, free: 3.535 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003714/0.157, allocations: 23.98 kB / 279.8 MB, free: 3.512 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005256/0.1575, allocations: 77.67 kB / 279.9 MB, free: 3.43 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.1576, allocations: 7.922 kB / 279.9 MB, free: 3.422 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004902/0.1625, allocations: 2.851 MB / 282.8 MB, free: 316 kB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.1626, allocations: 0 / 282.8 MB, free: 316 kB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.1642, allocations: 392.7 kB / 283.1 MB, free: 15.9 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002851/0.1645, allocations: 124.6 kB / 283.3 MB, free: 15.76 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.867e-05/0.1646, allocations: 4 kB / 283.3 MB, free: 15.75 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006842/0.1653, allocations: 35.97 kB / 283.3 MB, free: 15.72 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.1655, allocations: 23.97 kB / 283.3 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.07e-05/0.1656, allocations: 8 kB / 283.3 MB, free: 15.69 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000443/0.166, allocations: 182 kB / 283.5 MB, free: 15.52 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.1661, allocations: 0 / 283.5 MB, free: 15.52 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000965/0.167, allocations: 95.84 kB / 283.6 MB, free: 15.42 MB / 250.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.0002763/0.1674, allocations: 115.1 kB / 283.7 MB, free: 15.3 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001837/0.1692, allocations: 467.9 kB / 284.2 MB, free: 14.82 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.1693, allocations: 0 / 284.2 MB, free: 14.82 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00107/0.1704, allocations: 353.4 kB / 284.5 MB, free: 14.45 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007643/0.1712, allocations: 40.55 kB / 284.6 MB, free: 14.41 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/0.1731, allocations: 0.6204 MB / 285.2 MB, free: 13.75 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005949/0.1738, allocations: 0.7793 MB / 286 MB, free: 12.94 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.174, allocations: 19.44 kB / 286 MB, free: 12.92 MB / 250.7 MB Notification: Performance of SimCode: time 1.733e-06/0.174, allocations: 0 / 286 MB, free: 12.92 MB / 250.7 MB Notification: Performance of Templates: time 0.01739/0.1914, allocations: 5.401 MB / 291.4 MB, free: 7.52 MB / 250.7 MB