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_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadModel(Modelica): time 2.404/2.404, allocations: 194.9 MB / 211.2 MB, free: 8.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.202e-05/3.199e-05, allocations: 7.984 kB / 258.8 MB, free: 8.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3078, allocations: 44.51 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01673/0.3246, allocations: 10.52 MB / 313.8 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03199/0.3566, allocations: 15.88 MB / 329.7 MB, free: 3.191 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002512/0.3592, allocations: 31.81 kB / 329.7 MB, free: 3.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003179/0.3624, allocations: 0.7263 MB / 330.4 MB, free: 2.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007902/0.3704, allocations: 1.767 MB / 332.2 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004278/0.3747, allocations: 0.985 MB / 333.2 MB, free: 15.67 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01521/0.39, allocations: 5.526 MB / 338.7 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005022/0.3905, allocations: 118.2 kB / 338.8 MB, free: 10.02 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001447/0.392, allocations: 0.6853 MB / 339.5 MB, free: 9.328 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001735/0.3938, allocations: 0.8516 MB / 340.4 MB, free: 8.473 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005436/0.3992, allocations: 1.21 MB / 341.6 MB, free: 7.262 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007149/0.4, allocations: 76 kB / 341.7 MB, free: 7.188 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004308/0.4005, allocations: 266 kB / 341.9 MB, free: 6.926 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.4015, allocations: 252 kB / 342.2 MB, free: 6.68 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005243/0.4067, allocations: 2.553 MB / 344.7 MB, free: 4.121 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.4068, allocations: 4 kB / 344.7 MB, free: 4.117 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.399e-06/0.4068, allocations: 3.938 kB / 344.7 MB, free: 4.113 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001244/0.407, allocations: 0 / 344.7 MB, free: 4.113 MB / 282.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.006252/0.4132, allocations: 2.509 MB / 347.2 MB, free: 1.543 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.4133, allocations: 12.03 kB / 347.3 MB, free: 1.531 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008387/0.4142, allocations: 383.4 kB / 347.6 MB, free: 1.152 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006222/0.4204, allocations: 2.224 MB / 349.8 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.643e-05/0.4205, allocations: 37 kB / 349.9 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000214/0.4207, allocations: 51.89 kB / 349.9 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002574/0.4233, allocations: 0.785 MB / 350.7 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.73e-05/0.4234, allocations: 0 / 350.7 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/0.4235, allocations: 23.98 kB / 350.7 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-05/0.4236, allocations: 19.98 kB / 350.8 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003304/0.4269, allocations: 0.9178 MB / 351.7 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008992/0.4359, allocations: 2.996 MB / 354.7 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003425/0.4394, allocations: 0.8574 MB / 355.5 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05079/0.4903, allocations: 30.31 MB / 385.8 MB, free: 6.664 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002298/0.4926, allocations: 0.6308 MB / 386.5 MB, free: 6.027 MB / 330.7 MB Notification: Performance of pre-optimization done (n=96): time 5.31e-06/0.4927, allocations: 0 / 386.5 MB, free: 6.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=99): time 0.02305/0.5157, allocations: 6.021 MB / 392.5 MB, free: 15.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.739e-05/0.5159, allocations: 68.39 kB / 392.6 MB, free: 15.6 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005834/0.5217, allocations: 2.26 MB / 394.8 MB, free: 13.33 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002769/0.5221, allocations: 41.7 kB / 394.9 MB, free: 13.28 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002012/0.5241, allocations: 1.054 MB / 395.9 MB, free: 12.22 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007355/0.5249, allocations: 331.2 kB / 396.2 MB, free: 11.89 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001401/0.525, allocations: 20 kB / 396.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.5253, allocations: 350.8 kB / 396.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00317/0.5284, allocations: 0.5293 MB / 397.1 MB, free: 10.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003722/0.5322, allocations: 0.7056 MB / 397.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003739/0.536, allocations: 0.573 MB / 398.4 MB, free: 9.652 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-06/0.5361, allocations: 0 / 398.4 MB, free: 9.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.009392/0.5455, allocations: 1.799 MB / 400.2 MB, free: 7.773 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.316e-05/0.5456, allocations: 9.047 kB / 400.2 MB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004189/0.546, allocations: 120 kB / 400.3 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00162/0.5476, allocations: 264.9 kB / 400.6 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/0.5501, allocations: 231.7 kB / 400.8 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01792/0.5681, allocations: 13.32 MB / 414.1 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003074/0.5712, allocations: 120 kB / 414.3 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003782/0.5717, allocations: 56 kB / 414.3 MB, free: 8.312 MB / 362.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.001553/0.5732, allocations: 425.7 kB / 414.7 MB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009015/0.5742, allocations: 371.5 kB / 415.1 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0283/0.6025, allocations: 2.375 MB / 417.5 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.61e-05/0.6026, allocations: 8 kB / 417.5 MB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.672e-05/0.6026, allocations: 11.88 kB / 417.5 MB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-05/0.6026, allocations: 3.984 kB / 417.5 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004705/0.6074, allocations: 1.543 MB / 419 MB, free: 3.445 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0004243/0.6079, allocations: 116 kB / 419.2 MB, free: 3.332 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002025/0.6099, allocations: 167.8 kB / 419.3 MB, free: 3.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001578/0.6115, allocations: 268.3 kB / 419.6 MB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002998/0.6118, allocations: 43.98 kB / 419.6 MB, free: 2.832 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2976/0.9095, allocations: 13.31 MB / 432.9 MB, free: 100.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.9095, allocations: 4.406 kB / 432.9 MB, free: 100.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009124/0.9186, allocations: 2.737 MB / 435.7 MB, free: 99.6 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/0.9198, allocations: 491 kB / 436.1 MB, free: 99.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000606/0.9204, allocations: 19.53 kB / 436.2 MB, free: 99.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001824/0.9222, allocations: 119.2 kB / 436.3 MB, free: 99.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000502/0.9228, allocations: 148 kB / 436.4 MB, free: 99.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/0.9229, allocations: 46.94 kB / 436.5 MB, free: 99.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003084/0.926, allocations: 1.75 MB / 438.2 MB, free: 98.65 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.926, allocations: 0 / 438.2 MB, free: 98.65 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00221/0.9283, allocations: 0.6558 MB / 438.9 MB, free: 98.61 MB / 362.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.001551/0.9298, allocations: 0.7827 MB / 439.7 MB, free: 98.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006136/0.936, allocations: 2.638 MB / 442.3 MB, free: 96.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.936, allocations: 0 / 442.3 MB, free: 96.87 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003708/0.9397, allocations: 2.013 MB / 444.3 MB, free: 95.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00255/0.9423, allocations: 486.9 kB / 444.8 MB, free: 94.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009897/0.9522, allocations: 5.368 MB / 450.2 MB, free: 89.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.9534, allocations: 1.72 MB / 451.9 MB, free: 87.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006391/0.9541, allocations: 151.4 kB / 452 MB, free: 87.61 MB / 362.7 MB Notification: Performance of SimCode: time 1.292e-06/0.9541, allocations: 0 / 452 MB, free: 87.61 MB / 362.7 MB Notification: Performance of Templates: time 0.4382/1.392, allocations: 143.5 MB / 0.5815 GB, free: 117.3 MB / 394.7 MB