Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 2.008/2.008, allocations: 194.9 MB / 211.2 MB, free: 8.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.778e-05/2.783e-05, allocations: 4 kB / 258.8 MB, free: 8.527 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2955, allocations: 44.5 MB / 303.3 MB, free: 12.74 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002597/0.2982, allocations: 1.472 MB / 304.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.2997, allocations: 0.5849 MB / 305.3 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.2999, allocations: 7.75 kB / 305.3 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.3, allocations: 11.86 kB / 305.4 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001472/0.3001, allocations: 29.94 kB / 305.4 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002717/0.3004, allocations: 65.16 kB / 305.4 MB, free: 10.96 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002041/0.3007, allocations: 84.19 kB / 305.5 MB, free: 10.9 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.3008, allocations: 43.25 kB / 305.6 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001424/0.301, allocations: 48.75 kB / 305.6 MB, free: 10.85 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001642/0.3012, allocations: 66.05 kB / 305.7 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.94e-05/0.3013, allocations: 15.56 kB / 305.7 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.138e-05/0.3013, allocations: 5.969 kB / 305.7 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.132e-05/0.3014, allocations: 34.03 kB / 305.7 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.319e-05/0.3014, allocations: 10.16 kB / 305.7 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.3017, allocations: 118.3 kB / 305.9 MB, free: 10.69 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3017, allocations: 0 / 305.9 MB, free: 10.69 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3017, allocations: 0 / 305.9 MB, free: 10.69 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.649e-06/0.3017, allocations: 1.375 kB / 305.9 MB, free: 10.69 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001038/0.3028, allocations: 469 kB / 306.3 MB, free: 10.25 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.3028, allocations: 9.469 kB / 306.3 MB, free: 10.25 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.721e-05/0.3029, allocations: 22.03 kB / 306.4 MB, free: 10.24 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000367/0.3033, allocations: 240 kB / 306.6 MB, free: 9.988 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/0.3034, allocations: 10.78 kB / 306.6 MB, free: 9.984 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.505e-05/0.3034, allocations: 19.25 kB / 306.6 MB, free: 9.977 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005938/0.304, allocations: 210.3 kB / 306.8 MB, free: 9.828 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.3041, allocations: 0 / 306.8 MB, free: 9.828 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.3041, allocations: 5.875 kB / 306.8 MB, free: 9.824 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.964e-05/0.3041, allocations: 6.156 kB / 306.8 MB, free: 9.824 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005602/0.3047, allocations: 149.8 kB / 307 MB, free: 9.762 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.3063, allocations: 0.7993 MB / 307.8 MB, free: 8.996 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.3074, allocations: 210.6 kB / 308 MB, free: 8.781 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.044e-05/0.3075, allocations: 0 / 308 MB, free: 8.781 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000418/0.3079, allocations: 156.9 kB / 308.1 MB, free: 8.609 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.924e-06/0.308, allocations: 0 / 308.1 MB, free: 8.609 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009666/0.3089, allocations: 249.3 kB / 308.4 MB, free: 8.359 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.426e-05/0.309, allocations: 89.06 kB / 308.5 MB, free: 8.254 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002749/0.3093, allocations: 195.2 kB / 308.7 MB, free: 8.059 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/0.3094, allocations: 29.7 kB / 308.7 MB, free: 8.023 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.3095, allocations: 210.8 kB / 308.9 MB, free: 7.812 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.112e-05/0.3096, allocations: 23.7 kB / 308.9 MB, free: 7.789 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.011e-05/0.3096, allocations: 8 kB / 308.9 MB, free: 7.781 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3097, allocations: 314.8 kB / 309.2 MB, free: 7.465 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002861/0.31, allocations: 75.89 kB / 309.3 MB, free: 7.391 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003254/0.3104, allocations: 140.5 kB / 309.4 MB, free: 7.223 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003053/0.3107, allocations: 87.91 kB / 309.5 MB, free: 7.137 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3107, allocations: 0 / 309.5 MB, free: 7.137 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007671/0.3115, allocations: 253.2 kB / 309.8 MB, free: 6.883 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.3115, allocations: 4 kB / 309.8 MB, free: 6.879 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.3116, allocations: 4 kB / 309.8 MB, free: 6.875 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.3116, allocations: 4.25 kB / 309.8 MB, free: 6.871 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003244/0.3119, allocations: 47.91 kB / 309.8 MB, free: 6.824 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.312, allocations: 4 kB / 309.8 MB, free: 6.82 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003431/0.3123, allocations: 51.61 kB / 309.9 MB, free: 6.77 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.3123, allocations: 8.375 kB / 309.9 MB, free: 6.762 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002016/0.3126, allocations: 148 kB / 310 MB, free: 6.605 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.761e-05/0.3126, allocations: 15.81 kB / 310.1 MB, free: 6.59 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000395/0.313, allocations: 139.2 kB / 310.2 MB, free: 6.441 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.313, allocations: 0 / 310.2 MB, free: 6.441 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3131, allocations: 4 kB / 310.2 MB, free: 6.438 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3131, allocations: 4 kB / 310.2 MB, free: 6.434 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009261/0.314, allocations: 486.2 kB / 310.7 MB, free: 5.902 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.314, allocations: 4 kB / 310.7 MB, free: 5.898 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.3143, allocations: 23.91 kB / 310.7 MB, free: 5.875 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.879e-06/0.3143, allocations: 4 kB / 310.7 MB, free: 5.871 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.3143, allocations: 0 / 310.7 MB, free: 5.871 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/0.3143, allocations: 4 kB / 310.7 MB, free: 5.867 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.3143, allocations: 3.953 kB / 310.7 MB, free: 5.863 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006751/0.315, allocations: 299.3 kB / 311 MB, free: 5.547 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.29e-05/0.3151, allocations: 96.86 kB / 311.1 MB, free: 5.434 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.274e-05/0.3152, allocations: 3.984 kB / 311.1 MB, free: 5.43 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003/0.3155, allocations: 39.86 kB / 311.1 MB, free: 5.391 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.3156, allocations: 19.97 kB / 311.2 MB, free: 5.371 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.368e-05/0.3157, allocations: 11.92 kB / 311.2 MB, free: 5.359 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001837/0.3159, allocations: 147.4 kB / 311.3 MB, free: 5.215 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3159, allocations: 0 / 311.3 MB, free: 5.215 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004176/0.3163, allocations: 39.91 kB / 311.4 MB, free: 5.176 MB / 250.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: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulsStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulsStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002046/0.3165, allocations: 107.2 kB / 311.5 MB, free: 5.059 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006729/0.3172, allocations: 171.8 kB / 311.6 MB, free: 4.891 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3172, allocations: 0 / 311.6 MB, free: 4.891 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003442/0.3176, allocations: 84.41 kB / 311.7 MB, free: 4.809 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003866/0.318, allocations: 32.28 kB / 311.7 MB, free: 4.777 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.319, allocations: 429.2 kB / 312.2 MB, free: 4.328 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.3194, allocations: 0.7403 MB / 312.9 MB, free: 3.559 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.3196, allocations: 23.44 kB / 312.9 MB, free: 3.535 MB / 250.7 MB Notification: Performance of SimCode: time 1.203e-06/0.3196, allocations: 0 / 312.9 MB, free: 3.535 MB / 250.7 MB Notification: Performance of Templates: time 0.006566/0.3261, allocations: 2.374 MB / 315.3 MB, free: 1.164 MB / 250.7 MB