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_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadModel(Modelica): time 1.904/1.904, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.818e-05/2.836e-05, allocations: 8 kB / 255.4 MB, free: 2.688 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07603/0.07608, allocations: 44.49 MB / 299.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3314/0.4075, allocations: 76.64 MB / 376.5 MB, free: 22.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.4078, allocations: 67.5 kB / 376.6 MB, free: 22.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0591/0.4669, allocations: 13.86 MB / 390.5 MB, free: 20.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.686e-06/0.467, allocations: 1.203 kB / 390.5 MB, free: 20.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.655e-05/0.467, allocations: 15.62 kB / 390.5 MB, free: 20.77 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.003956/0.471, allocations: 1.32 MB / 391.8 MB, free: 20.13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.471, allocations: 11.72 kB / 391.8 MB, free: 20.13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003133/0.4714, allocations: 89.89 kB / 391.9 MB, free: 20.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001663/0.473, allocations: 0.5709 MB / 392.5 MB, free: 19.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.739e-05/0.4731, allocations: 52.53 kB / 392.5 MB, free: 19.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/0.4733, allocations: 67.28 kB / 392.6 MB, free: 19.78 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.4747, allocations: 0.6181 MB / 393.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.4747, allocations: 0 / 393.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.677e-05/0.4748, allocations: 30.7 kB / 393.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.4748, allocations: 15.62 kB / 393.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001475/0.4763, allocations: 0.6189 MB / 393.9 MB, free: 19.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005023/0.4814, allocations: 2.349 MB / 396.2 MB, free: 19 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.4825, allocations: 0.4912 MB / 396.7 MB, free: 18.97 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006294/0.4831, allocations: 298.7 kB / 397 MB, free: 18.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.183e-05/0.4832, allocations: 4.375 kB / 397 MB, free: 18.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008161/0.484, allocations: 399 kB / 397.4 MB, free: 18.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 4.041e-06/0.4841, allocations: 0 / 397.4 MB, free: 18.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.0564/0.5405, allocations: 10.53 MB / 407.9 MB, free: 17.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.405e-05/0.5406, allocations: 152.5 kB / 408.1 MB, free: 17.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006731/0.5413, allocations: 442.1 kB / 408.5 MB, free: 16.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002205/0.5415, allocations: 52.62 kB / 408.5 MB, free: 16.9 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002383/0.5418, allocations: 371.8 kB / 408.9 MB, free: 16.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002874/0.5421, allocations: 313.9 kB / 409.2 MB, free: 16.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.5422, allocations: 18.09 kB / 409.2 MB, free: 16.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.5423, allocations: 381.8 kB / 409.6 MB, free: 16.1 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/0.5438, allocations: 0.5458 MB / 410.2 MB, free: 16.08 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.5452, allocations: 0.7508 MB / 410.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.5465, allocations: 0.6242 MB / 411.5 MB, free: 15.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.846e-06/0.5465, allocations: 0 / 411.5 MB, free: 15.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03305/0.5796, allocations: 6.162 MB / 417.7 MB, free: 13.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.661e-05/0.5797, allocations: 66.95 kB / 417.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.5797, allocations: 11.94 kB / 417.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03638/0.6161, allocations: 6.058 MB / 423.8 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009667/0.6171, allocations: 183 kB / 424 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006395/0.6235, allocations: 2.913 MB / 426.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002675/0.6263, allocations: 292.7 kB / 427.2 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/0.6265, allocations: 46.06 kB / 427.2 MB, free: 10.07 MB / 314.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.0003586/0.6268, allocations: 159.2 kB / 427.4 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002089/0.6271, allocations: 81.94 kB / 427.5 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02411/0.6512, allocations: 4.745 MB / 432.2 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.909e-05/0.6513, allocations: 8 kB / 432.2 MB, free: 6.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.012e-06/0.6513, allocations: 256 / 432.2 MB, free: 6.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.208e-05/0.6513, allocations: 7.984 kB / 432.2 MB, free: 6.562 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001929/0.6532, allocations: 1.264 MB / 433.5 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/0.6533, allocations: 3.953 kB / 433.5 MB, free: 5.598 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006713/0.654, allocations: 122.3 kB / 433.6 MB, free: 5.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03351/0.6875, allocations: 6.035 MB / 439.7 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002871/0.6878, allocations: 20.98 kB / 439.7 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0317/0.7195, allocations: 8.644 MB / 448.3 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.068e-06/0.7196, allocations: 4 kB / 448.3 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02812/0.7477, allocations: 5.466 MB / 453.8 MB, free: 1.863 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008058/0.7486, allocations: 280 kB / 454.1 MB, free: 1.57 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002326/0.7488, allocations: 23.95 kB / 454.1 MB, free: 1.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002296/0.7511, allocations: 283.8 kB / 454.4 MB, free: 1.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006395/0.7518, allocations: 144.6 kB / 454.5 MB, free: 1.125 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001686/0.752, allocations: 27.92 kB / 454.5 MB, free: 1.098 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006239/0.7526, allocations: 341.6 kB / 454.9 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.7527, allocations: 0 / 454.9 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001403/0.7541, allocations: 331.9 kB / 455.2 MB, free: 448 kB / 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.0003474/0.7544, allocations: 135.2 kB / 455.3 MB, free: 304 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005266/0.7597, allocations: 1.653 MB / 457 MB, free: 14.62 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.386e-06/0.7598, allocations: 0 / 457 MB, free: 14.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005021/0.7648, allocations: 1.271 MB / 458.3 MB, free: 13.34 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008683/0.7657, allocations: 106 kB / 458.4 MB, free: 13.24 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00813/0.7738, allocations: 1.882 MB / 460.2 MB, free: 11.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001141/0.775, allocations: 0.9665 MB / 461.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008327/0.7759, allocations: 62.22 kB / 461.3 MB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002856/0.7762, allocations: 31.44 kB / 461.3 MB, free: 10.24 MB / 346.7 MB Notification: Performance of SimCode: time 2.746e-06/0.7763, allocations: 0 / 461.3 MB, free: 10.24 MB / 346.7 MB Notification: Performance of Templates: time 0.1002/0.8764, allocations: 28.96 MB / 490.3 MB, free: 13.3 MB / 378.7 MB