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_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.528e-05/2.532e-05, allocations: 4 kB / 292.1 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08797/0.08801, allocations: 50.41 MB / 342.6 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3838/0.4718, allocations: 104.5 MB / 447 MB, free: 5.988 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/0.4721, allocations: 71.03 kB / 447.1 MB, free: 5.953 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6472/1.119, allocations: 139.3 MB / 0.5726 GB, free: 101.8 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.115e-06/1.119, allocations: 6.625 kB / 0.5726 GB, free: 101.8 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.02e-05/1.119, allocations: 39.59 kB / 0.5727 GB, free: 101.8 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.004202/1.124, allocations: 2.63 MB / 0.5752 GB, free: 100.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/1.124, allocations: 7.594 kB / 0.5752 GB, free: 100.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004271/1.124, allocations: 380.4 kB / 0.5756 GB, free: 100 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00378/1.128, allocations: 2.237 MB / 0.5778 GB, free: 98.98 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.124e-05/1.128, allocations: 37.36 kB / 0.5778 GB, free: 98.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/1.128, allocations: 58.77 kB / 0.5779 GB, free: 98.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/1.13, allocations: 0.788 MB / 0.5786 GB, free: 98.58 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/1.13, allocations: 0 / 0.5786 GB, free: 98.58 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/1.13, allocations: 19.81 kB / 0.5787 GB, free: 98.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/1.13, allocations: 21.75 kB / 0.5787 GB, free: 98.56 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/1.131, allocations: 0.698 MB / 0.5794 GB, free: 98.35 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00584/1.137, allocations: 3.037 MB / 0.5823 GB, free: 96.9 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/1.138, allocations: 0.6415 MB / 0.583 GB, free: 96.59 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/1.139, allocations: 0.8816 MB / 0.5838 GB, free: 96.26 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03501/1.175, allocations: 35.88 MB / 0.6189 GB, free: 64.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009599/1.176, allocations: 0.512 MB / 0.6194 GB, free: 63.94 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 4.229e-06/1.176, allocations: 0 / 0.6194 GB, free: 63.94 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.007014/1.183, allocations: 3.472 MB / 0.6227 GB, free: 60.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.046e-05/1.183, allocations: 277.6 kB / 0.623 GB, free: 60.01 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003308/1.186, allocations: 2.209 MB / 0.6252 GB, free: 57.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001456/1.186, allocations: 45.7 kB / 0.6252 GB, free: 57.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/1.187, allocations: 1.299 MB / 0.6265 GB, free: 56.43 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002897/1.188, allocations: 338.4 kB / 0.6268 GB, free: 56.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.599e-05/1.188, allocations: 19.94 kB / 0.6268 GB, free: 56.08 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.802e-05/1.188, allocations: 345.9 kB / 0.6271 GB, free: 55.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007367/1.189, allocations: 330.3 kB / 0.6275 GB, free: 55.42 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008406/1.189, allocations: 0.5347 MB / 0.628 GB, free: 54.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008157/1.19, allocations: 391.5 kB / 0.6284 GB, free: 54.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/1.19, allocations: 4 kB / 0.6284 GB, free: 54.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003205/1.193, allocations: 1.666 MB / 0.63 GB, free: 52.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/1.194, allocations: 11.94 kB / 0.63 GB, free: 52.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/1.194, allocations: 115.9 kB / 0.6301 GB, free: 52.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008244/1.195, allocations: 260.9 kB / 0.6304 GB, free: 52.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/1.196, allocations: 231.7 kB / 0.6306 GB, free: 52.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00812/1.204, allocations: 13.22 MB / 0.6435 GB, free: 37.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002017/1.206, allocations: 131.9 kB / 0.6436 GB, free: 37.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001517/1.206, allocations: 56 kB / 0.6437 GB, free: 37.32 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.0002907/1.206, allocations: 172.5 kB / 0.6438 GB, free: 37.14 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004079/1.207, allocations: 375.5 kB / 0.6442 GB, free: 36.77 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005177/1.212, allocations: 1.958 MB / 0.6461 GB, free: 34.75 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/1.212, allocations: 8 kB / 0.6461 GB, free: 34.74 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.737e-06/1.212, allocations: 4 kB / 0.6461 GB, free: 34.74 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/1.212, allocations: 3.984 kB / 0.6461 GB, free: 34.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002659/1.215, allocations: 1.536 MB / 0.6476 GB, free: 33.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000179/1.215, allocations: 116 kB / 0.6477 GB, free: 33.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000896/1.216, allocations: 171.8 kB / 0.6479 GB, free: 32.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001309/1.217, allocations: 255.5 kB / 0.6481 GB, free: 32.61 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000172/1.217, allocations: 39.98 kB / 0.6482 GB, free: 32.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008116/1.225, allocations: 13.22 MB / 0.6611 GB, free: 18.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.496e-06/1.225, allocations: 0 / 0.6611 GB, free: 18.04 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004117/1.23, allocations: 2.111 MB / 0.6631 GB, free: 15.83 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/1.231, allocations: 0.4887 MB / 0.6636 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000447/1.231, allocations: 23.95 kB / 0.6636 GB, free: 15.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/1.232, allocations: 115.9 kB / 0.6638 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003714/1.233, allocations: 144.6 kB / 0.6639 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001313/1.233, allocations: 51.98 kB / 0.6639 GB, free: 14.99 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002853/1.236, allocations: 1.701 MB / 0.6656 GB, free: 13.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.236, allocations: 3.938 kB / 0.6656 GB, free: 13.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002117/1.238, allocations: 0.7067 MB / 0.6663 GB, free: 12.57 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.001441/1.239, allocations: 0.8947 MB / 0.6672 GB, free: 11.84 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002837/1.242, allocations: 2.144 MB / 0.6693 GB, free: 9.574 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.12e-06/1.242, allocations: 0 / 0.6693 GB, free: 9.574 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001862/1.244, allocations: 1.726 MB / 0.671 GB, free: 7.727 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002976/1.247, allocations: 0.5654 MB / 0.6715 GB, free: 7.168 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006336/1.254, allocations: 3.535 MB / 0.675 GB, free: 3.594 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00126/1.255, allocations: 1.715 MB / 0.6766 GB, free: 1.852 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001738/1.257, allocations: 344.4 kB / 0.677 GB, free: 1.512 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003565/1.257, allocations: 147.4 kB / 0.6771 GB, free: 1.367 MB / 442.7 MB Notification: Performance of SimCode: time 2.489e-06/1.257, allocations: 0 / 0.6771 GB, free: 1.367 MB / 442.7 MB Notification: Performance of Templates: time 0.3458/1.603, allocations: 36.39 MB / 0.7126 GB, free: 107.6 MB / 458.7 MB