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.1_cpp_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadModel(Modelica): time 1.899/1.899, allocations: 171.1 MB / 186.3 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.554e-05/3.554e-05, allocations: 8 kB / 228.1 MB, free: 7.98 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0846/0.08466, allocations: 38.76 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01676/0.1015, allocations: 10.53 MB / 277.4 MB, free: 6.562 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.03082/0.1324, allocations: 15.89 MB / 293.3 MB, free: 6.637 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002448/0.1349, allocations: 31.88 kB / 293.3 MB, free: 6.605 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003312/0.1382, allocations: 0.7263 MB / 294 MB, free: 5.875 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008048/0.1463, allocations: 1.767 MB / 295.8 MB, free: 4.102 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004309/0.1507, allocations: 0.985 MB / 296.8 MB, free: 3.113 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.2373/0.3881, allocations: 5.51 MB / 302.3 MB, free: 6.812 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005442/0.3887, allocations: 120.7 kB / 302.4 MB, free: 6.805 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002178/0.3909, allocations: 0.6869 MB / 303.1 MB, free: 6.805 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002358/0.3933, allocations: 0.8558 MB / 304 MB, free: 6.801 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005982/0.3993, allocations: 1.206 MB / 305.2 MB, free: 6.801 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008849/0.4003, allocations: 75 kB / 305.3 MB, free: 6.801 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004276/0.4007, allocations: 267.8 kB / 305.5 MB, free: 6.801 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00159/0.4023, allocations: 252.2 kB / 305.8 MB, free: 6.801 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005701/0.408, allocations: 2.551 MB / 308.3 MB, free: 6.492 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.4081, allocations: 0 / 308.3 MB, free: 6.492 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.707e-06/0.4081, allocations: 0 / 308.3 MB, free: 6.492 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001603/0.4083, allocations: 1.375 kB / 308.3 MB, free: 6.492 MB / 250.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.006675/0.415, allocations: 2.511 MB / 310.8 MB, free: 5.117 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.415, allocations: 8.25 kB / 310.8 MB, free: 5.117 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001259/0.4163, allocations: 382.7 kB / 311.2 MB, free: 4.926 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006681/0.423, allocations: 2.232 MB / 313.4 MB, free: 4.305 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.023e-05/0.4231, allocations: 33 kB / 313.5 MB, free: 4.301 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/0.4234, allocations: 51.66 kB / 313.5 MB, free: 4.297 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002538/0.4259, allocations: 0.7854 MB / 314.3 MB, free: 4.25 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.426, allocations: 0 / 314.3 MB, free: 4.25 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001104/0.4261, allocations: 17.84 kB / 314.3 MB, free: 4.25 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.533e-05/0.4261, allocations: 28.73 kB / 314.3 MB, free: 4.246 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003057/0.4292, allocations: 0.9119 MB / 315.3 MB, free: 4.23 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008692/0.4379, allocations: 2.996 MB / 318.3 MB, free: 3.625 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003037/0.441, allocations: 0.8503 MB / 319.1 MB, free: 3.488 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05072/0.4918, allocations: 30.33 MB / 349.4 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002236/0.4941, allocations: 0.6285 MB / 350.1 MB, free: 4.918 MB / 282.7 MB Notification: Performance of pre-optimization done (n=96): time 6.182e-06/0.4942, allocations: 0 / 350.1 MB, free: 4.918 MB / 282.7 MB Notification: Performance of matching and sorting (n=99): time 0.02526/0.5194, allocations: 6.015 MB / 356.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.016e-05/0.5196, allocations: 72.25 kB / 356.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005689/0.5253, allocations: 2.257 MB / 358.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003499/0.5257, allocations: 46.89 kB / 358.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001372/0.5271, allocations: 1.054 MB / 359.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006979/0.5278, allocations: 336.8 kB / 359.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.5279, allocations: 19.44 kB / 359.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.5281, allocations: 353 kB / 360.2 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002568/0.5307, allocations: 0.5248 MB / 360.7 MB, free: 12.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00281/0.5335, allocations: 0.7042 MB / 361.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002684/0.5363, allocations: 0.5728 MB / 362 MB, free: 11.28 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/0.5363, allocations: 4 kB / 362 MB, free: 11.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.007334/0.5437, allocations: 1.796 MB / 363.8 MB, free: 9.746 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.5438, allocations: 13.81 kB / 363.8 MB, free: 9.734 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003707/0.5442, allocations: 120 kB / 363.9 MB, free: 9.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/0.5454, allocations: 270.1 kB / 364.2 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001859/0.5473, allocations: 225.5 kB / 364.4 MB, free: 9.121 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01896/0.5663, allocations: 13.32 MB / 377.7 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004505/0.5708, allocations: 123.9 kB / 377.9 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005736/0.5715, allocations: 60 kB / 377.9 MB, free: 10.38 MB / 314.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.002667/0.5742, allocations: 424.9 kB / 378.3 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001568/0.5758, allocations: 371.5 kB / 378.7 MB, free: 9.602 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01541/0.5912, allocations: 2.365 MB / 381.1 MB, free: 7.172 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.323e-05/0.5913, allocations: 12 kB / 381.1 MB, free: 7.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-05/0.5914, allocations: 8 kB / 381.1 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.744e-05/0.5914, allocations: 3.984 kB / 381.1 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005958/0.5974, allocations: 1.554 MB / 382.6 MB, free: 5.566 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0004913/0.598, allocations: 115.9 kB / 382.7 MB, free: 5.453 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002165/0.6001, allocations: 169.4 kB / 382.9 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001877/0.6021, allocations: 263.1 kB / 383.2 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005055/0.6026, allocations: 47.98 kB / 383.2 MB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01731/0.62, allocations: 13.31 MB / 396.5 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.62, allocations: 0 / 396.5 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01088/0.6309, allocations: 2.731 MB / 399.3 MB, free: 3.586 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002176/0.6331, allocations: 492.4 kB / 399.7 MB, free: 3.082 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001252/0.6344, allocations: 23.95 kB / 399.8 MB, free: 3.059 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002749/0.6372, allocations: 115.9 kB / 399.9 MB, free: 2.945 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007329/0.638, allocations: 148.2 kB / 400 MB, free: 2.805 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/0.6382, allocations: 47.98 kB / 400.1 MB, free: 2.758 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.004417/0.6426, allocations: 1.751 MB / 401.8 MB, free: 1 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.172e-06/0.6427, allocations: 0 / 401.8 MB, free: 1 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003426/0.6461, allocations: 0.6523 MB / 402.5 MB, free: 356 kB / 330.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.00217/0.6483, allocations: 0.7766 MB / 403.2 MB, free: 15.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009968/0.6583, allocations: 2.639 MB / 405.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/0.6584, allocations: 0 / 405.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006769/0.6652, allocations: 2.018 MB / 407.9 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004424/0.6697, allocations: 477.3 kB / 408.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01763/0.6873, allocations: 5.369 MB / 413.7 MB, free: 4.918 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002936/0.6903, allocations: 1.723 MB / 415.5 MB, free: 3.164 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/0.6914, allocations: 151.4 kB / 415.6 MB, free: 3.02 MB / 346.7 MB Notification: Performance of SimCode: time 1.603e-06/0.6915, allocations: 3.938 kB / 415.6 MB, free: 3.016 MB / 346.7 MB Notification: Performance of Templates: time 0.4499/1.141, allocations: 143.4 MB / 0.546 GB, free: 15.48 MB / 362.7 MB