Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 2.342/2.342, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.961e-05/3.977e-05, allocations: 7.906 kB / 258.8 MB, free: 8.723 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3166, allocations: 44.51 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.009801/0.3265, allocations: 3.668 MB / 307 MB, free: 9.844 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004922/0.3315, allocations: 1.149 MB / 308.1 MB, free: 8.871 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009719/0.3326, allocations: 16 kB / 308.1 MB, free: 8.855 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003805/0.333, allocations: 79.3 kB / 308.2 MB, free: 8.777 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001582/0.3346, allocations: 235.2 kB / 308.4 MB, free: 8.547 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00152/0.3361, allocations: 263.5 kB / 308.7 MB, free: 8.289 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002495/0.3387, allocations: 0.5824 MB / 309.3 MB, free: 7.707 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005658/0.3393, allocations: 133.6 kB / 309.4 MB, free: 7.574 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001181/0.3405, allocations: 411 kB / 309.8 MB, free: 7.172 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001571/0.3421, allocations: 474.5 kB / 310.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004207/0.3426, allocations: 56 kB / 310.3 MB, free: 6.652 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003253/0.3429, allocations: 52 kB / 310.4 MB, free: 6.602 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003099/0.3433, allocations: 163.3 kB / 310.5 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003783/0.3437, allocations: 76 kB / 310.6 MB, free: 6.367 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00195/0.3456, allocations: 0.812 MB / 311.4 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3457, allocations: 0 / 311.4 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.3457, allocations: 0 / 311.4 MB, free: 5.555 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.307e-05/0.3458, allocations: 0 / 311.4 MB, free: 5.555 MB / 250.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.007913/0.3537, allocations: 1.24 MB / 312.7 MB, free: 4.246 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.228e-05/0.3538, allocations: 8.031 kB / 312.7 MB, free: 4.238 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005252/0.3544, allocations: 86.97 kB / 312.7 MB, free: 4.152 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001553/0.3559, allocations: 460.4 kB / 313.2 MB, free: 3.664 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.3561, allocations: 49.31 kB / 313.2 MB, free: 3.617 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003221/0.3564, allocations: 64 kB / 313.3 MB, free: 3.555 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00574/0.3622, allocations: 0.8535 MB / 314.2 MB, free: 2.691 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.769e-05/0.3623, allocations: 4 kB / 314.2 MB, free: 2.688 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001976/0.3625, allocations: 28 kB / 314.2 MB, free: 2.66 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.871e-05/0.3626, allocations: 12 kB / 314.2 MB, free: 2.648 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008679/0.3713, allocations: 1.102 MB / 315.3 MB, free: 1.547 MB / 250.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.01165/0.383, allocations: 2.531 MB / 317.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006835/0.3899, allocations: 0.8725 MB / 318.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001326/0.3901, allocations: 8.422 kB / 318.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004723/0.3948, allocations: 0.6301 MB / 319.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 7.444e-06/0.3949, allocations: 0 / 319.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1779/0.5728, allocations: 16.4 MB / 335.7 MB, free: 12.83 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.573, allocations: 141.5 kB / 335.9 MB, free: 12.66 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008482/0.5738, allocations: 450.1 kB / 336.3 MB, free: 12.21 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002967/0.5741, allocations: 41.7 kB / 336.4 MB, free: 12.16 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003765/0.5745, allocations: 418.2 kB / 336.8 MB, free: 11.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005054/0.5751, allocations: 315.4 kB / 337.1 MB, free: 11.44 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.5752, allocations: 20 kB / 337.1 MB, free: 11.42 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.5754, allocations: 346.8 kB / 337.4 MB, free: 11.07 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005276/0.5807, allocations: 1.021 MB / 338.5 MB, free: 10.05 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007038/0.5878, allocations: 1.217 MB / 339.7 MB, free: 8.754 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008224/0.5961, allocations: 1.092 MB / 340.8 MB, free: 7.652 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.297e-05/0.5962, allocations: 3.938 kB / 340.8 MB, free: 7.648 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0727/0.6689, allocations: 7.263 MB / 348 MB, free: 352 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.413e-05/0.669, allocations: 63.41 kB / 348.1 MB, free: 276 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/0.669, allocations: 4 kB / 348.1 MB, free: 272 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05933/0.7284, allocations: 6.599 MB / 354.7 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/0.7298, allocations: 179.8 kB / 354.9 MB, free: 9.477 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0162/0.746, allocations: 3.867 MB / 358.7 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003676/0.7498, allocations: 295.8 kB / 359 MB, free: 5.266 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002638/0.7501, allocations: 43.97 kB / 359.1 MB, free: 5.223 MB / 298.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.0006284/0.7507, allocations: 217.7 kB / 359.3 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002743/0.751, allocations: 79.06 kB / 359.4 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05534/0.8064, allocations: 6.734 MB / 366.1 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.686e-05/0.8064, allocations: 16 kB / 366.1 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.8065, allocations: 0 / 366.1 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.578e-05/0.8065, allocations: 3.984 kB / 366.1 MB, free: 14.15 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002496/0.809, allocations: 1.249 MB / 367.4 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.809, allocations: 0 / 367.4 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.8102, allocations: 131.8 kB / 367.5 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05843/0.8686, allocations: 6.568 MB / 374.1 MB, free: 6.141 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002943/0.869, allocations: 20.28 kB / 374.1 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06022/0.9292, allocations: 10.51 MB / 384.6 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.9293, allocations: 0 / 384.6 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07698/1.006, allocations: 7.93 MB / 392.5 MB, free: 3.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008752/1.007, allocations: 280 kB / 392.8 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000335/1.008, allocations: 20 kB / 392.8 MB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003568/1.011, allocations: 279.8 kB / 393.1 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007614/1.012, allocations: 148.7 kB / 393.2 MB, free: 2.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001934/1.012, allocations: 27.97 kB / 393.3 MB, free: 2.723 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006702/1.013, allocations: 342.9 kB / 393.6 MB, free: 2.391 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/1.013, allocations: 0 / 393.6 MB, free: 2.391 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001542/1.014, allocations: 324 kB / 393.9 MB, free: 2.074 MB / 330.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.0004122/1.015, allocations: 127.2 kB / 394 MB, free: 1.938 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01587/1.031, allocations: 2.762 MB / 396.8 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.535e-06/1.031, allocations: 0 / 396.8 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008826/1.04, allocations: 1.616 MB / 398.4 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/1.041, allocations: 118.5 kB / 398.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/1.055, allocations: 2.922 MB / 401.5 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007228/1.055, allocations: 0.9704 MB / 402.4 MB, free: 9.453 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003282/1.056, allocations: 31.44 kB / 402.5 MB, free: 9.426 MB / 346.7 MB Notification: Performance of SimCode: time 1.233e-06/1.056, allocations: 0 / 402.5 MB, free: 9.426 MB / 346.7 MB Notification: Performance of Templates: time 0.04068/1.096, allocations: 18.03 MB / 420.5 MB, free: 7.375 MB / 362.7 MB