Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.958/1.958, allocations: 171.1 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.08e-05/3.085e-05, allocations: 2.188 kB / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08587/0.08593, allocations: 38.77 MB / 266.9 MB, free: 1.141 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005739/0.09173, allocations: 3.663 MB / 270.5 MB, free: 13.44 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003048/0.09483, allocations: 1.136 MB / 271.7 MB, free: 12.3 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000462/0.09534, allocations: 19.94 kB / 271.7 MB, free: 12.29 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.09556, allocations: 75.38 kB / 271.8 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006792/0.09625, allocations: 231.2 kB / 272 MB, free: 11.98 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00089/0.09715, allocations: 267.5 kB / 272.3 MB, free: 11.72 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001476/0.09865, allocations: 0.5785 MB / 272.8 MB, free: 11.14 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003463/0.09903, allocations: 121.6 kB / 273 MB, free: 11.02 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007069/0.09975, allocations: 403 kB / 273.4 MB, free: 10.62 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009195/0.1007, allocations: 482.6 kB / 273.8 MB, free: 10.15 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002492/0.101, allocations: 52 kB / 273.9 MB, free: 10.1 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001806/0.1012, allocations: 48 kB / 273.9 MB, free: 10.05 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.1014, allocations: 175.3 kB / 274.1 MB, free: 9.883 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002419/0.1016, allocations: 72 kB / 274.2 MB, free: 9.812 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.1028, allocations: 0.8065 MB / 275 MB, free: 9.004 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1028, allocations: 3.938 kB / 275 MB, free: 9 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1028, allocations: 0 / 275 MB, free: 9 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.906e-05/0.1029, allocations: 0 / 275 MB, free: 9 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.005084/0.108, allocations: 1.248 MB / 276.2 MB, free: 7.688 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.108, allocations: 15.97 kB / 276.2 MB, free: 7.672 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002847/0.1083, allocations: 86.97 kB / 276.3 MB, free: 7.586 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009318/0.1093, allocations: 456.5 kB / 276.8 MB, free: 7.098 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.962e-05/0.1094, allocations: 57.25 kB / 276.8 MB, free: 7.043 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001815/0.1095, allocations: 60 kB / 276.9 MB, free: 6.984 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003484/0.113, allocations: 0.8574 MB / 277.7 MB, free: 6.117 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.216e-05/0.1131, allocations: 4 kB / 277.7 MB, free: 6.113 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.1132, allocations: 24 kB / 277.8 MB, free: 6.09 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.488e-05/0.1133, allocations: 19.98 kB / 277.8 MB, free: 6.07 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005279/0.1186, allocations: 1.102 MB / 278.9 MB, free: 4.969 MB / 234.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007198/0.1258, allocations: 2.543 MB / 281.4 MB, free: 2.285 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004229/0.1301, allocations: 0.8676 MB / 282.3 MB, free: 1.406 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.659e-05/0.1302, allocations: 12.42 kB / 282.3 MB, free: 1.395 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002819/0.1331, allocations: 0.6262 MB / 282.9 MB, free: 0.7422 MB / 234.7 MB Notification: Performance of pre-optimization done (n=54): time 4.117e-06/0.1331, allocations: 0 / 282.9 MB, free: 0.7422 MB / 234.7 MB Notification: Performance of matching and sorting (n=94): time 0.1321/0.2653, allocations: 16.48 MB / 299.4 MB, free: 172 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2217/0.4871, allocations: 149.5 kB / 299.6 MB, free: 30.88 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.4884, allocations: 447.6 kB / 300 MB, free: 30.77 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004114/0.4888, allocations: 44.11 kB / 300 MB, free: 30.73 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004392/0.4893, allocations: 407.6 kB / 300.4 MB, free: 30.58 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005463/0.4898, allocations: 314.6 kB / 300.7 MB, free: 30.38 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.49, allocations: 21.12 kB / 300.8 MB, free: 30.38 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.4902, allocations: 348.8 kB / 301.1 MB, free: 30.07 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00547/0.4956, allocations: 1.018 MB / 302.1 MB, free: 30.03 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00589/0.5016, allocations: 1.224 MB / 303.4 MB, free: 29.54 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005401/0.507, allocations: 1.088 MB / 304.4 MB, free: 29.18 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-05/0.5071, allocations: 2.625 kB / 304.4 MB, free: 29.18 MB / 250.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.06044/0.5676, allocations: 7.289 MB / 311.7 MB, free: 27.71 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.358e-05/0.5677, allocations: 60.81 kB / 311.8 MB, free: 27.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.621e-05/0.5678, allocations: 5.906 kB / 311.8 MB, free: 27.64 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05813/0.6259, allocations: 6.633 MB / 318.4 MB, free: 22.95 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.6273, allocations: 175.8 kB / 318.6 MB, free: 22.78 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01539/0.6428, allocations: 3.875 MB / 322.5 MB, free: 18.85 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003917/0.6467, allocations: 299.7 kB / 322.8 MB, free: 18.55 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002938/0.6471, allocations: 43.97 kB / 322.8 MB, free: 18.51 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * 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: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0006366/0.6477, allocations: 230 kB / 323 MB, free: 18.28 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002705/0.648, allocations: 79.06 kB / 323.1 MB, free: 18.2 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0536/0.7016, allocations: 6.75 MB / 329.9 MB, free: 11.44 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.951e-05/0.7017, allocations: 9.594 kB / 329.9 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.7017, allocations: 4 kB / 329.9 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.903e-05/0.7018, allocations: 7.969 kB / 329.9 MB, free: 11.42 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002234/0.704, allocations: 1.266 MB / 331.1 MB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.7041, allocations: 0 / 331.1 MB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.7052, allocations: 131.8 kB / 331.3 MB, free: 10.01 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05899/0.7642, allocations: 6.576 MB / 337.9 MB, free: 3.426 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003981/0.7646, allocations: 19.98 kB / 337.9 MB, free: 3.406 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06962/0.8343, allocations: 10.56 MB / 348.4 MB, free: 8.691 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.8343, allocations: 4 kB / 348.4 MB, free: 8.688 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0626/0.897, allocations: 7.934 MB / 356.4 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002973/0.8973, allocations: 152.1 kB / 356.5 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004004/0.8977, allocations: 29.14 kB / 356.5 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003358/0.9011, allocations: 279.7 kB / 356.8 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007041/0.9018, allocations: 140.7 kB / 357 MB, free: 128 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/0.902, allocations: 37.34 kB / 357 MB, free: 92 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006481/0.9027, allocations: 341.4 kB / 357.3 MB, free: 15.76 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.9027, allocations: 5.969 kB / 357.3 MB, free: 15.76 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001402/0.9041, allocations: 320 kB / 357.6 MB, free: 15.45 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003928/0.9045, allocations: 131.9 kB / 357.8 MB, free: 15.31 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.01587/0.9204, allocations: 2.767 MB / 360.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/0.9205, allocations: 0 / 360.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01473/0.9353, allocations: 1.621 MB / 362.2 MB, free: 10.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.9365, allocations: 112.8 kB / 362.3 MB, free: 10.78 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01707/0.9536, allocations: 2.922 MB / 365.2 MB, free: 7.828 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001968/0.9556, allocations: 0.9665 MB / 366.2 MB, free: 6.836 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007436/0.9564, allocations: 39.44 kB / 366.2 MB, free: 6.797 MB / 282.7 MB Notification: Performance of SimCode: time 2.325e-06/0.9565, allocations: 4 kB / 366.2 MB, free: 6.793 MB / 282.7 MB Notification: Performance of Templates: time 0.03876/0.9953, allocations: 18.16 MB / 384.4 MB, free: 4.629 MB / 298.7 MB