Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 1.823/1.823, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.09e-05/3.085e-05, allocations: 7.938 kB / 228.1 MB, free: 8 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09443/0.09449, allocations: 38.78 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002691/0.09724, allocations: 1.453 MB / 268.3 MB, free: 15.66 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.09873, allocations: 0.5656 MB / 268.9 MB, free: 15.09 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.09894, allocations: 8 kB / 268.9 MB, free: 15.08 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.09906, allocations: 23.78 kB / 268.9 MB, free: 15.05 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000154/0.09924, allocations: 31.89 kB / 269 MB, free: 15.02 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002884/0.09954, allocations: 59.86 kB / 269 MB, free: 14.96 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002088/0.09976, allocations: 87.77 kB / 269.1 MB, free: 14.88 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/0.09995, allocations: 44.72 kB / 269.2 MB, free: 14.83 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.1001, allocations: 55.83 kB / 269.2 MB, free: 14.78 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.1003, allocations: 63.75 kB / 269.3 MB, free: 14.71 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.14e-05/0.1004, allocations: 8 kB / 269.3 MB, free: 14.71 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.282e-05/0.1004, allocations: 4 kB / 269.3 MB, free: 14.7 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.807e-05/0.1005, allocations: 35.84 kB / 269.3 MB, free: 14.67 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.361e-05/0.1006, allocations: 8 kB / 269.3 MB, free: 14.66 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002481/0.1008, allocations: 124 kB / 269.5 MB, free: 14.54 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1008, allocations: 0 / 269.5 MB, free: 14.54 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.11e-06/0.1009, allocations: 4 kB / 269.5 MB, free: 14.54 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.1009, allocations: 0 / 269.5 MB, free: 14.54 MB / 234.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.00106/0.1019, allocations: 466.8 kB / 269.9 MB, free: 14.03 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.102, allocations: 12.03 kB / 269.9 MB, free: 14.02 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.488e-05/0.1021, allocations: 19.72 kB / 269.9 MB, free: 14 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003807/0.1025, allocations: 247.4 kB / 270.2 MB, free: 13.71 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.1025, allocations: 15.95 kB / 270.2 MB, free: 13.7 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.426e-05/0.1026, allocations: 16 kB / 270.2 MB, free: 13.68 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006509/0.1033, allocations: 213 kB / 270.4 MB, free: 13.46 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.1033, allocations: 0 / 270.4 MB, free: 13.46 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.463e-05/0.1033, allocations: 8 kB / 270.4 MB, free: 13.45 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.858e-05/0.1034, allocations: 8 kB / 270.4 MB, free: 13.44 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005645/0.1039, allocations: 143.8 kB / 270.6 MB, free: 13.3 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.1056, allocations: 0.801 MB / 271.4 MB, free: 12.44 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/0.1068, allocations: 218.6 kB / 271.6 MB, free: 12.21 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-05/0.1069, allocations: 4 kB / 271.6 MB, free: 12.21 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004366/0.1074, allocations: 145 kB / 271.7 MB, free: 12.05 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 3.326e-06/0.1074, allocations: 0 / 271.7 MB, free: 12.05 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009971/0.1084, allocations: 265.2 kB / 272 MB, free: 11.79 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.1085, allocations: 77.11 kB / 272.1 MB, free: 11.69 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002949/0.1088, allocations: 206.1 kB / 272.3 MB, free: 11.48 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.438e-05/0.1088, allocations: 29.7 kB / 272.3 MB, free: 11.45 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.109, allocations: 202.9 kB / 272.5 MB, free: 11.25 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.187e-05/0.109, allocations: 31.55 kB / 272.5 MB, free: 11.22 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.68e-05/0.1091, allocations: 4 kB / 272.5 MB, free: 11.21 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1092, allocations: 334.8 kB / 272.9 MB, free: 10.88 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002919/0.1095, allocations: 67.95 kB / 272.9 MB, free: 10.81 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/0.1099, allocations: 140.5 kB / 273.1 MB, free: 10.64 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004668/0.1104, allocations: 83.91 kB / 273.2 MB, free: 10.56 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.1104, allocations: 0 / 273.2 MB, free: 10.56 MB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001168/0.1116, allocations: 245.2 kB / 273.4 MB, free: 10.32 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.429e-05/0.1117, allocations: 5.812 kB / 273.4 MB, free: 10.31 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.1117, allocations: 8 kB / 273.4 MB, free: 10.3 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.689e-05/0.1117, allocations: 4 kB / 273.4 MB, free: 10.3 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004526/0.1122, allocations: 43.91 kB / 273.5 MB, free: 10.26 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.765e-05/0.1122, allocations: 4.312 kB / 273.5 MB, free: 10.25 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004612/0.1127, allocations: 43.72 kB / 273.5 MB, free: 10.21 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.19e-05/0.1128, allocations: 12 kB / 273.5 MB, free: 10.2 MB / 234.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.0002325/0.113, allocations: 156 kB / 273.7 MB, free: 10.04 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.236e-05/0.1131, allocations: 15.81 kB / 273.7 MB, free: 10.02 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004232/0.1135, allocations: 138.9 kB / 273.8 MB, free: 9.879 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.1135, allocations: 0 / 273.8 MB, free: 9.879 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.1136, allocations: 0 / 273.8 MB, free: 9.879 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1136, allocations: 4 kB / 273.8 MB, free: 9.875 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009962/0.1146, allocations: 486.6 kB / 274.3 MB, free: 9.344 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.1146, allocations: 4 kB / 274.3 MB, free: 9.34 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.1149, allocations: 15.98 kB / 274.3 MB, free: 9.324 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.094e-06/0.1149, allocations: 4 kB / 274.3 MB, free: 9.32 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.1149, allocations: 3.984 kB / 274.3 MB, free: 9.316 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.205e-06/0.115, allocations: 7.938 kB / 274.3 MB, free: 9.309 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.115, allocations: 0 / 274.3 MB, free: 9.309 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007199/0.1157, allocations: 313.7 kB / 274.6 MB, free: 8.977 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.1158, allocations: 104.9 kB / 274.7 MB, free: 8.855 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.926e-05/0.1159, allocations: 4 kB / 274.7 MB, free: 8.852 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/0.1162, allocations: 23.98 kB / 274.8 MB, free: 8.828 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.1163, allocations: 19.97 kB / 274.8 MB, free: 8.809 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.691e-05/0.1164, allocations: 11.94 kB / 274.8 MB, free: 8.797 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0002064/0.1166, allocations: 148.6 kB / 274.9 MB, free: 8.652 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.1166, allocations: 0 / 274.9 MB, free: 8.652 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0004241/0.1171, allocations: 43.84 kB / 275 MB, free: 8.609 MB / 234.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.0002184/0.1173, allocations: 123.2 kB / 275.1 MB, free: 8.48 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0007006/0.118, allocations: 176.3 kB / 275.3 MB, free: 8.309 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.118, allocations: 4 kB / 275.3 MB, free: 8.305 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003251/0.1184, allocations: 83.89 kB / 275.4 MB, free: 8.223 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003671/0.1187, allocations: 19.98 kB / 275.4 MB, free: 8.203 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.1198, allocations: 425.4 kB / 275.8 MB, free: 7.758 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.1203, allocations: 0.7364 MB / 276.5 MB, free: 6.996 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.1204, allocations: 23.44 kB / 276.6 MB, free: 6.973 MB / 234.7 MB Notification: Performance of SimCode: time 1.493e-06/0.1204, allocations: 0 / 276.6 MB, free: 6.973 MB / 234.7 MB Notification: Performance of Templates: time 0.00674/0.1272, allocations: 2.372 MB / 278.9 MB, free: 4.602 MB / 234.7 MB