Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 2.074/2.074, allocations: 224.7 MB / 241.1 MB, free: 1.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.335e-05/3.342e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 50.41 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00271/0.1123, allocations: 1.485 MB / 346.5 MB, free: 7.434 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.1138, allocations: 0.5495 MB / 347 MB, free: 6.883 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.114, allocations: 4 kB / 347 MB, free: 6.879 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.1141, allocations: 19.86 kB / 347 MB, free: 6.859 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.1143, allocations: 27.89 kB / 347.1 MB, free: 6.832 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002861/0.1146, allocations: 59.8 kB / 347.1 MB, free: 6.773 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002148/0.1148, allocations: 91.77 kB / 347.2 MB, free: 6.684 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.115, allocations: 51.67 kB / 347.3 MB, free: 6.633 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.1152, allocations: 47.84 kB / 347.3 MB, free: 6.586 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001703/0.1154, allocations: 63.75 kB / 347.4 MB, free: 6.523 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.584e-05/0.1155, allocations: 12 kB / 347.4 MB, free: 6.512 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.1155, allocations: 4 kB / 347.4 MB, free: 6.508 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.521e-05/0.1156, allocations: 39.83 kB / 347.4 MB, free: 6.469 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.388e-05/0.1157, allocations: 8 kB / 347.4 MB, free: 6.461 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002443/0.1159, allocations: 119.9 kB / 347.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.1159, allocations: 0 / 347.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.1159, allocations: 0 / 347.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.116, allocations: 0 / 347.5 MB, free: 6.344 MB / 282.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.001095/0.1171, allocations: 466.9 kB / 348 MB, free: 5.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.1171, allocations: 12.03 kB / 348 MB, free: 5.828 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.707e-05/0.1172, allocations: 23.67 kB / 348 MB, free: 5.805 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003814/0.1176, allocations: 234.7 kB / 348.3 MB, free: 5.535 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.492e-05/0.1177, allocations: 11.98 kB / 348.3 MB, free: 5.523 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.574e-05/0.1177, allocations: 16 kB / 348.3 MB, free: 5.508 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000605/0.1183, allocations: 201.6 kB / 348.5 MB, free: 5.289 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.1184, allocations: 7.922 kB / 348.5 MB, free: 5.281 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.884e-05/0.1184, allocations: 15.94 kB / 348.5 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.174e-05/0.1185, allocations: 11.94 kB / 348.5 MB, free: 5.254 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005716/0.119, allocations: 147.8 kB / 348.7 MB, free: 5.109 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.1207, allocations: 0.7935 MB / 349.5 MB, free: 4.254 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.1219, allocations: 206.6 kB / 349.7 MB, free: 4.043 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.112e-05/0.122, allocations: 4.219 kB / 349.7 MB, free: 4.039 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004555/0.1224, allocations: 160.9 kB / 349.8 MB, free: 3.863 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.585e-06/0.1224, allocations: 0 / 349.8 MB, free: 3.863 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.001042/0.1235, allocations: 261.2 kB / 350.1 MB, free: 3.602 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.133e-05/0.1236, allocations: 77.11 kB / 350.2 MB, free: 3.508 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002897/0.1239, allocations: 198 kB / 350.3 MB, free: 3.309 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.633e-05/0.124, allocations: 33.7 kB / 350.4 MB, free: 3.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.1241, allocations: 190.7 kB / 350.6 MB, free: 3.082 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.124e-05/0.1242, allocations: 39.53 kB / 350.6 MB, free: 3.043 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.529e-05/0.1243, allocations: 4 kB / 350.6 MB, free: 3.039 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.1245, allocations: 326.8 kB / 350.9 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/0.125, allocations: 67.95 kB / 351 MB, free: 2.645 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005776/0.1256, allocations: 148.4 kB / 351.1 MB, free: 2.469 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005376/0.1262, allocations: 83.97 kB / 351.2 MB, free: 2.387 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1262, allocations: 0 / 351.2 MB, free: 2.387 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001275/0.1275, allocations: 237.8 kB / 351.5 MB, free: 2.148 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.1276, allocations: 12.03 kB / 351.5 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.64e-05/0.1276, allocations: 7.953 kB / 351.5 MB, free: 2.129 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.815e-05/0.1277, allocations: 4 kB / 351.5 MB, free: 2.125 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005342/0.1282, allocations: 47.91 kB / 351.5 MB, free: 2.078 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.053e-05/0.1282, allocations: 4 kB / 351.5 MB, free: 2.074 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005391/0.1288, allocations: 31.83 kB / 351.6 MB, free: 2.043 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.264e-05/0.1289, allocations: 12 kB / 351.6 MB, free: 2.031 MB / 282.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.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,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.0003432/0.1292, allocations: 144 kB / 351.7 MB, free: 1.883 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.272e-05/0.1293, allocations: 19.81 kB / 351.7 MB, free: 1.863 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007421/0.1301, allocations: 143.1 kB / 351.9 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.981e-05/0.1302, allocations: 7.953 kB / 351.9 MB, free: 1.703 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.1302, allocations: 0 / 351.9 MB, free: 1.703 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.407e-06/0.1302, allocations: 0 / 351.9 MB, free: 1.703 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001808/0.132, allocations: 486.3 kB / 352.4 MB, free: 1.172 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.1321, allocations: 0 / 352.4 MB, free: 1.172 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003321/0.1324, allocations: 19.98 kB / 352.4 MB, free: 1.152 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-05/0.1325, allocations: 3.953 kB / 352.4 MB, free: 1.148 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.109e-05/0.1325, allocations: 4 kB / 352.4 MB, free: 1.145 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.119e-05/0.1326, allocations: 3.938 kB / 352.4 MB, free: 1.141 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.1326, allocations: 4 kB / 352.4 MB, free: 1.137 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.1336, allocations: 305.8 kB / 352.7 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.1338, allocations: 100.8 kB / 352.8 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.101e-05/0.1338, allocations: 8 kB / 352.8 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003878/0.1342, allocations: 27.97 kB / 352.8 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.1344, allocations: 19.97 kB / 352.8 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.412e-05/0.1345, allocations: 4 kB / 352.8 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002773/0.1348, allocations: 144.6 kB / 353 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.1348, allocations: 0 / 353 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000609/0.1354, allocations: 36 kB / 353 MB, free: 472 kB / 282.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.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,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.0002415/0.1357, allocations: 123.6 kB / 353.1 MB, free: 340 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007366/0.1364, allocations: 172.3 kB / 353.3 MB, free: 168 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.1364, allocations: 0 / 353.3 MB, free: 168 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000323/0.1368, allocations: 84.02 kB / 353.4 MB, free: 84 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003876/0.1372, allocations: 24.64 kB / 353.4 MB, free: 60 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.1383, allocations: 441.2 kB / 353.8 MB, free: 15.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.1387, allocations: 0.7403 MB / 354.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.1388, allocations: 23.42 kB / 354.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of SimCode: time 1.293e-06/0.1389, allocations: 4 kB / 354.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of Templates: time 0.006716/0.1456, allocations: 2.369 MB / 357 MB, free: 12.44 MB / 298.7 MB