Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 1.99/1.99, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.119e-05/3.134e-05, allocations: 4 kB / 269.3 MB, free: 6.41 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08441/0.08447, allocations: 47.58 MB / 316.9 MB, free: 6.746 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3938/0.4783, allocations: 76.79 MB / 393.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000377/0.4788, allocations: 63.28 kB / 393.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02175/0.5006, allocations: 2.632 MB / 396.4 MB, free: 8.965 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.089e-06/0.5007, allocations: 0 / 396.4 MB, free: 8.965 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.611e-05/0.5007, allocations: 4 kB / 396.4 MB, free: 8.961 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001595/0.5023, allocations: 476.6 kB / 396.9 MB, free: 8.461 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.042e-05/0.5024, allocations: 8.031 kB / 396.9 MB, free: 8.453 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.5026, allocations: 23.72 kB / 396.9 MB, free: 8.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006688/0.5033, allocations: 233.6 kB / 397.1 MB, free: 8.168 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.23e-05/0.5034, allocations: 15.42 kB / 397.2 MB, free: 8.16 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.399e-05/0.5035, allocations: 19.12 kB / 397.2 MB, free: 8.145 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007954/0.5043, allocations: 182.4 kB / 397.3 MB, free: 7.988 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.5044, allocations: 0 / 397.3 MB, free: 7.988 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.231e-05/0.5044, allocations: 7.812 kB / 397.4 MB, free: 7.984 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.705e-05/0.5045, allocations: 7.984 kB / 397.4 MB, free: 7.977 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006464/0.5052, allocations: 113.2 kB / 397.5 MB, free: 7.898 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002879/0.5081, allocations: 0.793 MB / 398.3 MB, free: 7.117 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007701/0.5089, allocations: 151.7 kB / 398.4 MB, free: 6.984 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003254/0.5093, allocations: 66.97 kB / 398.5 MB, free: 6.934 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.868e-05/0.5094, allocations: 0.625 kB / 398.5 MB, free: 6.934 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005711/0.5099, allocations: 135 kB / 398.6 MB, free: 6.805 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 4.885e-06/0.51, allocations: 0 / 398.6 MB, free: 6.805 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.000921/0.5109, allocations: 167.7 kB / 398.8 MB, free: 6.668 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.5111, allocations: 85.05 kB / 398.9 MB, free: 6.566 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004695/0.5116, allocations: 176.7 kB / 399 MB, free: 6.406 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.509e-05/0.5117, allocations: 29.64 kB / 399.1 MB, free: 6.375 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/0.5119, allocations: 143.2 kB / 399.2 MB, free: 6.254 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.512, allocations: 39.14 kB / 399.2 MB, free: 6.223 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.722e-05/0.5121, allocations: 0 / 399.2 MB, free: 6.223 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003209/0.5124, allocations: 338.4 kB / 399.6 MB, free: 5.891 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003151/0.5128, allocations: 55.17 kB / 399.6 MB, free: 5.855 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004051/0.5132, allocations: 113.9 kB / 399.7 MB, free: 5.742 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003662/0.5136, allocations: 71.42 kB / 399.8 MB, free: 5.688 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.5136, allocations: 0 / 399.8 MB, free: 5.688 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001035/0.5147, allocations: 209.7 kB / 400 MB, free: 5.516 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.128e-05/0.5148, allocations: 11.98 kB / 400 MB, free: 5.504 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.5148, allocations: 0 / 400 MB, free: 5.504 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.969e-05/0.5148, allocations: 4 kB / 400 MB, free: 5.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004975/0.5154, allocations: 36.02 kB / 400.1 MB, free: 5.465 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.12e-05/0.5154, allocations: 12.12 kB / 400.1 MB, free: 5.453 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004725/0.5159, allocations: 31.47 kB / 400.1 MB, free: 5.426 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.872e-05/0.516, allocations: 11.31 kB / 400.1 MB, free: 5.418 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002322/0.5163, allocations: 118.4 kB / 400.2 MB, free: 5.301 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.858e-05/0.5164, allocations: 19.83 kB / 400.2 MB, free: 5.281 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009873/0.5174, allocations: 203.3 kB / 400.4 MB, free: 5.117 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.5175, allocations: 4 kB / 400.5 MB, free: 5.113 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.955e-06/0.5175, allocations: 0 / 400.5 MB, free: 5.113 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.5175, allocations: 0 / 400.5 MB, free: 5.113 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007285/0.5183, allocations: 267 kB / 400.7 MB, free: 4.836 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.5183, allocations: 0 / 400.7 MB, free: 4.836 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000341/0.5187, allocations: 27.23 kB / 400.7 MB, free: 4.812 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.451e-06/0.5187, allocations: 0 / 400.7 MB, free: 4.812 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-05/0.5187, allocations: 0 / 400.7 MB, free: 4.812 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.721e-05/0.5188, allocations: 4 kB / 400.7 MB, free: 4.809 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.782e-06/0.5188, allocations: 7.938 kB / 400.8 MB, free: 4.801 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008641/0.5197, allocations: 215.5 kB / 401 MB, free: 4.598 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.5199, allocations: 95.86 kB / 401.1 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.458e-05/0.52, allocations: 0 / 401.1 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004191/0.5204, allocations: 35.34 kB / 401.1 MB, free: 4.457 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.5206, allocations: 18.66 kB / 401.1 MB, free: 4.441 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.53e-05/0.5207, allocations: 4 kB / 401.1 MB, free: 4.438 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003419/0.521, allocations: 138.5 kB / 401.2 MB, free: 4.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.334e-06/0.521, allocations: 0 / 401.2 MB, free: 4.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008776/0.5219, allocations: 46.27 kB / 401.3 MB, free: 4.281 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003237/0.5223, allocations: 112 kB / 401.4 MB, free: 4.164 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008108/0.5231, allocations: 146.6 kB / 401.5 MB, free: 4.055 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.485e-06/0.5232, allocations: 0 / 401.5 MB, free: 4.055 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003883/0.5236, allocations: 70.73 kB / 401.6 MB, free: 4.004 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007004/0.5243, allocations: 37.17 kB / 401.6 MB, free: 3.977 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001346/0.5257, allocations: 264.5 kB / 401.9 MB, free: 3.727 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008157/0.5265, allocations: 0.7439 MB / 402.7 MB, free: 2.953 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003867/0.527, allocations: 41.5 kB / 402.7 MB, free: 2.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.5271, allocations: 19.38 kB / 402.7 MB, free: 2.891 MB / 314.7 MB Notification: Performance of SimCode: time 2.725e-06/0.5271, allocations: 0 / 402.7 MB, free: 2.891 MB / 314.7 MB Notification: Performance of Templates: time 0.0129/0.5401, allocations: 1.815 MB / 404.5 MB, free: 1.102 MB / 314.7 MB