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_cpp_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadModel(Modelica): time 2.154/2.154, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.028e-05/3.043e-05, allocations: 1.406 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 50.41 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01607/0.1273, allocations: 10.94 MB / 355.9 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03169/0.1591, allocations: 16.64 MB / 372.6 MB, free: 13.29 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002519/0.1616, allocations: 35.81 kB / 372.6 MB, free: 13.25 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00323/0.1649, allocations: 0.7263 MB / 373.3 MB, free: 12.52 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007846/0.1728, allocations: 1.783 MB / 375.1 MB, free: 10.73 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004516/0.1773, allocations: 0.9889 MB / 376.1 MB, free: 9.742 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01526/0.1927, allocations: 5.612 MB / 381.7 MB, free: 4.117 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005045/0.1932, allocations: 126 kB / 381.8 MB, free: 3.988 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001892/0.1951, allocations: 0.81 MB / 382.6 MB, free: 3.176 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002087/0.1972, allocations: 0.875 MB / 383.5 MB, free: 2.297 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005998/0.2033, allocations: 1.433 MB / 384.9 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000723/0.204, allocations: 79.94 kB / 385 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004772/0.2045, allocations: 258 kB / 385.3 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.2056, allocations: 252 kB / 385.5 MB, free: 292 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005036/0.2107, allocations: 2.528 MB / 388 MB, free: 13.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.2107, allocations: 4 kB / 388 MB, free: 13.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.77e-06/0.2108, allocations: 8 kB / 388.1 MB, free: 13.74 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001473/0.2109, allocations: 3.938 kB / 388.1 MB, free: 13.73 MB / 330.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.006071/0.217, allocations: 2.489 MB / 390.6 MB, free: 11.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.2171, allocations: 8.031 kB / 390.6 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000886/0.218, allocations: 375.5 kB / 390.9 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006015/0.224, allocations: 2.216 MB / 393.1 MB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.774e-05/0.2241, allocations: 37 kB / 393.2 MB, free: 8.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002414/0.2243, allocations: 51.98 kB / 393.2 MB, free: 8.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002575/0.2269, allocations: 0.7772 MB / 394 MB, free: 7.648 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.349e-05/0.227, allocations: 0 / 394 MB, free: 7.648 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.2271, allocations: 27.95 kB / 394 MB, free: 7.621 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.272e-05/0.2272, allocations: 19.98 kB / 394.1 MB, free: 7.602 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00331/0.2305, allocations: 0.9139 MB / 395 MB, free: 6.688 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008092/0.2386, allocations: 2.994 MB / 398 MB, free: 3.621 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00325/0.2419, allocations: 0.8574 MB / 398.8 MB, free: 2.758 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3177/0.5596, allocations: 30.24 MB / 429.1 MB, free: 29.03 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001958/0.5617, allocations: 0.6174 MB / 429.7 MB, free: 28.69 MB / 330.7 MB Notification: Performance of pre-optimization done (n=96): time 5.341e-06/0.5617, allocations: 0 / 429.7 MB, free: 28.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=99): time 0.02154/0.5833, allocations: 6.013 MB / 435.7 MB, free: 24.99 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.5834, allocations: 72.75 kB / 435.8 MB, free: 24.92 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004439/0.5878, allocations: 2.239 MB / 438 MB, free: 23.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002301/0.5881, allocations: 41.7 kB / 438 MB, free: 22.97 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001161/0.5893, allocations: 1.06 MB / 439.1 MB, free: 21.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004949/0.5898, allocations: 335.6 kB / 439.4 MB, free: 21.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.5899, allocations: 20 kB / 439.4 MB, free: 21.57 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.17e-05/0.59, allocations: 346.8 kB / 439.8 MB, free: 21.22 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00222/0.5922, allocations: 0.5332 MB / 440.3 MB, free: 20.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00235/0.5947, allocations: 0.7016 MB / 441 MB, free: 19.92 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00231/0.597, allocations: 0.5807 MB / 441.6 MB, free: 19.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.5971, allocations: 0 / 441.6 MB, free: 19.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.006144/0.6032, allocations: 1.795 MB / 443.4 MB, free: 17.47 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.6033, allocations: 8 kB / 443.4 MB, free: 17.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002523/0.6036, allocations: 123.9 kB / 443.5 MB, free: 17.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.6046, allocations: 266 kB / 443.8 MB, free: 17.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001682/0.6063, allocations: 227.7 kB / 444 MB, free: 16.83 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009399/0.6158, allocations: 13.32 MB / 457.3 MB, free: 2.219 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002341/0.6181, allocations: 124 kB / 457.4 MB, free: 2.098 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002556/0.6184, allocations: 56 kB / 457.5 MB, free: 2.043 MB / 330.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.001141/0.6196, allocations: 421.5 kB / 457.9 MB, free: 1.621 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007396/0.6204, allocations: 372.7 kB / 458.3 MB, free: 1.254 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009292/0.6297, allocations: 2.364 MB / 460.6 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-05/0.6297, allocations: 11.98 kB / 460.7 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.6298, allocations: 4 kB / 460.7 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.881e-05/0.6298, allocations: 3.984 kB / 460.7 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00348/0.6333, allocations: 1.544 MB / 462.2 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003153/0.6336, allocations: 116 kB / 462.3 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001494/0.6352, allocations: 167.8 kB / 462.5 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.6364, allocations: 268.3 kB / 462.7 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002526/0.6367, allocations: 47.92 kB / 462.8 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01379/0.6505, allocations: 13.31 MB / 476.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.6505, allocations: 0 / 476.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01032/0.6608, allocations: 2.725 MB / 478.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/0.6623, allocations: 488.5 kB / 479.3 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007045/0.6631, allocations: 27.92 kB / 479.3 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002258/0.6653, allocations: 111.9 kB / 479.4 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006486/0.666, allocations: 140.8 kB / 479.6 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001851/0.6662, allocations: 55.98 kB / 479.6 MB, free: 10.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004279/0.6705, allocations: 1.742 MB / 481.4 MB, free: 8.562 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.6706, allocations: 0 / 481.4 MB, free: 8.562 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002864/0.6735, allocations: 0.6522 MB / 482 MB, free: 7.91 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.00199/0.6755, allocations: 0.7706 MB / 482.8 MB, free: 7.281 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007513/0.683, allocations: 2.635 MB / 485.4 MB, free: 4.488 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.6831, allocations: 4.188 kB / 485.4 MB, free: 4.484 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004772/0.6879, allocations: 2.008 MB / 487.4 MB, free: 2.328 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004583/0.6925, allocations: 0.574 MB / 488 MB, free: 1.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01281/0.7054, allocations: 5.366 MB / 493.4 MB, free: 12.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00199/0.7074, allocations: 1.715 MB / 495.1 MB, free: 10.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007434/0.7082, allocations: 155.4 kB / 495.3 MB, free: 10.45 MB / 378.7 MB Notification: Performance of SimCode: time 1.513e-06/0.7082, allocations: 0 / 495.3 MB, free: 10.45 MB / 378.7 MB Notification: Performance of Templates: time 0.4895/1.198, allocations: 142.5 MB / 0.6228 GB, free: 98.2 MB / 442.7 MB