Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadModel(Modelica): time 1.916/1.916, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.653e-05/3.661e-05, allocations: 6.5 kB / 292.7 MB, free: 8.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1055, allocations: 50.41 MB / 343.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3857/0.4913, allocations: 104.5 MB / 447.5 MB, free: 5.992 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.4916, allocations: 70.22 kB / 447.6 MB, free: 5.957 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.71/1.202, allocations: 139.3 MB / 0.5731 GB, free: 102 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.018e-06/1.202, allocations: 0 / 0.5731 GB, free: 102 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.935e-05/1.202, allocations: 49.64 kB / 0.5732 GB, free: 102 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.004116/1.206, allocations: 2.632 MB / 0.5757 GB, free: 100.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/1.206, allocations: 15.19 kB / 0.5758 GB, free: 100.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004577/1.206, allocations: 380.9 kB / 0.5761 GB, free: 100.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003685/1.21, allocations: 2.227 MB / 0.5783 GB, free: 99.21 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.445e-05/1.21, allocations: 31.5 kB / 0.5783 GB, free: 99.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/1.21, allocations: 58.8 kB / 0.5784 GB, free: 99.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/1.212, allocations: 0.7853 MB / 0.5792 GB, free: 98.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/1.212, allocations: 0 / 0.5792 GB, free: 98.82 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/1.212, allocations: 23.05 kB / 0.5792 GB, free: 98.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/1.212, allocations: 18.5 kB / 0.5792 GB, free: 98.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/1.213, allocations: 0.7051 MB / 0.5799 GB, free: 98.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005564/1.219, allocations: 3.038 MB / 0.5828 GB, free: 97.14 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/1.22, allocations: 0.6354 MB / 0.5835 GB, free: 96.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/1.222, allocations: 0.8788 MB / 0.5843 GB, free: 96.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03612/1.258, allocations: 35.88 MB / 0.6194 GB, free: 64.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009512/1.259, allocations: 0.5081 MB / 0.6199 GB, free: 64.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 4.781e-06/1.259, allocations: 3.938 kB / 0.6199 GB, free: 64.13 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.007324/1.266, allocations: 3.464 MB / 0.6233 GB, free: 60.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.172e-05/1.266, allocations: 285.7 kB / 0.6235 GB, free: 60.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003236/1.269, allocations: 2.201 MB / 0.6257 GB, free: 57.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/1.27, allocations: 49.69 kB / 0.6257 GB, free: 57.93 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/1.271, allocations: 1.303 MB / 0.627 GB, free: 56.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002619/1.271, allocations: 337 kB / 0.6273 GB, free: 56.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.609e-05/1.271, allocations: 20 kB / 0.6273 GB, free: 56.28 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.792e-05/1.271, allocations: 341.9 kB / 0.6277 GB, free: 55.94 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007159/1.272, allocations: 326.3 kB / 0.628 GB, free: 55.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008289/1.273, allocations: 0.5463 MB / 0.6285 GB, free: 54.98 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007881/1.273, allocations: 383.5 kB / 0.6289 GB, free: 54.61 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.313e-06/1.273, allocations: 7.938 kB / 0.6289 GB, free: 54.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003108/1.277, allocations: 1.666 MB / 0.6305 GB, free: 52.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/1.277, allocations: 11.94 kB / 0.6305 GB, free: 52.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001748/1.277, allocations: 120 kB / 0.6306 GB, free: 52.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008337/1.278, allocations: 268 kB / 0.6309 GB, free: 52.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/1.279, allocations: 223.7 kB / 0.6311 GB, free: 52.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008125/1.287, allocations: 13.21 MB / 0.644 GB, free: 37.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001995/1.289, allocations: 131.9 kB / 0.6441 GB, free: 37.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/1.289, allocations: 59.98 kB / 0.6442 GB, free: 37.51 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002916/1.289, allocations: 168.7 kB / 0.6443 GB, free: 37.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004164/1.29, allocations: 367.6 kB / 0.6447 GB, free: 36.97 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005117/1.295, allocations: 1.966 MB / 0.6466 GB, free: 34.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/1.295, allocations: 8 kB / 0.6466 GB, free: 34.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/1.295, allocations: 4 kB / 0.6466 GB, free: 34.92 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/1.295, allocations: 3.984 kB / 0.6466 GB, free: 34.92 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002482/1.298, allocations: 1.536 MB / 0.6481 GB, free: 33.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001726/1.298, allocations: 116 kB / 0.6482 GB, free: 33.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009915/1.299, allocations: 171.8 kB / 0.6484 GB, free: 33.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/1.3, allocations: 255.6 kB / 0.6487 GB, free: 32.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001177/1.3, allocations: 47.97 kB / 0.6487 GB, free: 32.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008389/1.308, allocations: 13.21 MB / 0.6616 GB, free: 18.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.921e-06/1.309, allocations: 0 / 0.6616 GB, free: 18.23 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00433/1.313, allocations: 2.116 MB / 0.6637 GB, free: 16.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/1.314, allocations: 0.4887 MB / 0.6641 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004787/1.314, allocations: 31.89 kB / 0.6642 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00152/1.316, allocations: 115.9 kB / 0.6643 GB, free: 15.37 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003737/1.316, allocations: 151.9 kB / 0.6644 GB, free: 15.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/1.317, allocations: 47.97 kB / 0.6645 GB, free: 15.18 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002919/1.319, allocations: 1.705 MB / 0.6661 GB, free: 13.46 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.319, allocations: 0 / 0.6661 GB, free: 13.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00195/1.321, allocations: 0.7105 MB / 0.6668 GB, free: 12.75 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001425/1.323, allocations: 0.8898 MB / 0.6677 GB, free: 12.03 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002739/1.326, allocations: 2.133 MB / 0.6698 GB, free: 9.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.99e-06/1.326, allocations: 4 kB / 0.6698 GB, free: 9.766 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001809/1.327, allocations: 1.733 MB / 0.6715 GB, free: 7.914 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/1.33, allocations: 0.5673 MB / 0.672 GB, free: 7.355 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006216/1.336, allocations: 3.529 MB / 0.6755 GB, free: 3.793 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00125/1.338, allocations: 1.719 MB / 0.6772 GB, free: 2.043 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001689/1.339, allocations: 344.4 kB / 0.6775 GB, free: 1.703 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003515/1.34, allocations: 143.4 kB / 0.6776 GB, free: 1.562 MB / 442.7 MB Notification: Performance of SimCode: time 1.637e-06/1.34, allocations: 0 / 0.6776 GB, free: 1.562 MB / 442.7 MB Notification: Performance of Templates: time 0.3449/1.685, allocations: 36.38 MB / 0.7132 GB, free: 107.4 MB / 458.7 MB