Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadModel(Modelica): time 1.886/1.886, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.087e-05/3.107e-05, allocations: 4 kB / 292.1 MB, free: 8.848 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1151, allocations: 50.42 MB / 342.5 MB, free: 6.414 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3913/0.5065, allocations: 104.5 MB / 447.1 MB, free: 5.891 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.5068, allocations: 72.41 kB / 447.1 MB, free: 5.855 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7003/1.207, allocations: 139.3 MB / 0.5727 GB, free: 102.2 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.389e-06/1.207, allocations: 0 / 0.5727 GB, free: 102.2 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.412e-05/1.207, allocations: 42.95 kB / 0.5727 GB, free: 102.2 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.004359/1.212, allocations: 2.623 MB / 0.5753 GB, free: 100.6 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/1.212, allocations: 14.28 kB / 0.5753 GB, free: 100.6 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005287/1.212, allocations: 382.5 kB / 0.5757 GB, free: 100.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004355/1.217, allocations: 2.237 MB / 0.5778 GB, free: 99.4 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.213e-05/1.217, allocations: 35.56 kB / 0.5779 GB, free: 99.39 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001668/1.217, allocations: 62.38 kB / 0.5779 GB, free: 99.36 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/1.218, allocations: 0.7875 MB / 0.5787 GB, free: 99 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/1.218, allocations: 0 / 0.5787 GB, free: 99 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/1.219, allocations: 19.97 kB / 0.5787 GB, free: 98.99 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.969e-05/1.219, allocations: 22.94 kB / 0.5787 GB, free: 98.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/1.22, allocations: 0.6942 MB / 0.5794 GB, free: 98.78 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006702/1.227, allocations: 3.035 MB / 0.5824 GB, free: 97.34 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/1.228, allocations: 0.6432 MB / 0.583 GB, free: 97.01 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/1.229, allocations: 0.8779 MB / 0.5839 GB, free: 96.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03525/1.265, allocations: 35.87 MB / 0.6189 GB, free: 64.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009557/1.266, allocations: 0.5198 MB / 0.6194 GB, free: 64.42 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 4.057e-06/1.266, allocations: 3.938 kB / 0.6194 GB, free: 64.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.007354/1.273, allocations: 3.46 MB / 0.6228 GB, free: 60.84 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/1.273, allocations: 277.8 kB / 0.623 GB, free: 60.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00331/1.276, allocations: 2.205 MB / 0.6252 GB, free: 58.28 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001204/1.276, allocations: 53.69 kB / 0.6253 GB, free: 58.22 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008361/1.277, allocations: 1.062 MB / 0.6263 GB, free: 57.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002607/1.278, allocations: 331.4 kB / 0.6266 GB, free: 56.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.803e-05/1.278, allocations: 23.98 kB / 0.6266 GB, free: 56.82 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.945e-05/1.278, allocations: 346.8 kB / 0.627 GB, free: 56.47 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007205/1.279, allocations: 330.2 kB / 0.6273 GB, free: 56.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008276/1.279, allocations: 0.5425 MB / 0.6278 GB, free: 55.51 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008003/1.28, allocations: 380.5 kB / 0.6282 GB, free: 55.14 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.162e-06/1.28, allocations: 7.938 kB / 0.6282 GB, free: 55.13 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002726/1.283, allocations: 1.366 MB / 0.6295 GB, free: 53.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/1.283, allocations: 8.031 kB / 0.6295 GB, free: 53.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001726/1.283, allocations: 120 kB / 0.6296 GB, free: 53.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008409/1.284, allocations: 256.4 kB / 0.6299 GB, free: 53.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/1.285, allocations: 235.6 kB / 0.6301 GB, free: 53.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008463/1.294, allocations: 13.22 MB / 0.643 GB, free: 38.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002189/1.296, allocations: 123.9 kB / 0.6431 GB, free: 38.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000161/1.296, allocations: 60 kB / 0.6432 GB, free: 38.34 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.0002917/1.296, allocations: 172.7 kB / 0.6434 GB, free: 38.17 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004182/1.297, allocations: 375.5 kB / 0.6437 GB, free: 37.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005182/1.302, allocations: 1.949 MB / 0.6456 GB, free: 35.78 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/1.302, allocations: 12 kB / 0.6456 GB, free: 35.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/1.302, allocations: 7.938 kB / 0.6456 GB, free: 35.76 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/1.302, allocations: 7.984 kB / 0.6456 GB, free: 35.75 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002802/1.305, allocations: 1.54 MB / 0.6471 GB, free: 34.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001741/1.305, allocations: 116 kB / 0.6473 GB, free: 34.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008857/1.306, allocations: 163.8 kB / 0.6474 GB, free: 33.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008357/1.307, allocations: 256.4 kB / 0.6477 GB, free: 33.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/1.307, allocations: 43.98 kB / 0.6477 GB, free: 33.58 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008353/1.315, allocations: 13.22 MB / 0.6606 GB, free: 19.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.872e-06/1.315, allocations: 0 / 0.6606 GB, free: 19.05 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004428/1.32, allocations: 2.111 MB / 0.6627 GB, free: 16.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/1.321, allocations: 0.4965 MB / 0.6632 GB, free: 16.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004477/1.321, allocations: 23.95 kB / 0.6632 GB, free: 16.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/1.323, allocations: 115.9 kB / 0.6633 GB, free: 16.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003769/1.323, allocations: 140.6 kB / 0.6634 GB, free: 16.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/1.323, allocations: 55.97 kB / 0.6635 GB, free: 16.01 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002857/1.326, allocations: 1.701 MB / 0.6651 GB, free: 14.29 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.37e-07/1.326, allocations: 0 / 0.6651 GB, free: 14.29 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002148/1.328, allocations: 0.7066 MB / 0.6658 GB, free: 13.59 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.001432/1.33, allocations: 0.8943 MB / 0.6667 GB, free: 12.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002905/1.333, allocations: 2.137 MB / 0.6688 GB, free: 10.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.474e-06/1.333, allocations: 0 / 0.6688 GB, free: 10.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001876/1.335, allocations: 1.728 MB / 0.6705 GB, free: 8.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003193/1.338, allocations: 0.5686 MB / 0.671 GB, free: 8.191 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006978/1.345, allocations: 3.599 MB / 0.6745 GB, free: 4.562 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001202/1.346, allocations: 1.723 MB / 0.6762 GB, free: 2.809 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005114/1.347, allocations: 147.4 kB / 0.6764 GB, free: 2.664 MB / 442.7 MB Notification: Performance of SimCode: time 1.921e-06/1.347, allocations: 0 / 0.6764 GB, free: 2.664 MB / 442.7 MB Notification: Performance of Templates: time 0.3976/1.744, allocations: 142.1 MB / 0.8151 GB, free: 30.47 MB / 458.7 MB