Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.99/1.99, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.73e-05/2.747e-05, allocations: 4 kB / 292.1 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09318/0.09323, allocations: 50.41 MB / 342.6 MB, free: 5.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3695/0.4628, allocations: 80.58 MB / 423.1 MB, free: 13.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.463, allocations: 68.41 kB / 423.2 MB, free: 13.58 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03847/0.5015, allocations: 9.196 MB / 432.4 MB, free: 5.824 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.76e-06/0.5016, allocations: 0 / 432.4 MB, free: 5.824 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.621e-05/0.5016, allocations: 4 kB / 432.4 MB, free: 5.82 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009186/0.5025, allocations: 0.5752 MB / 433 MB, free: 5.203 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.5026, allocations: 12.03 kB / 433 MB, free: 5.191 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.5027, allocations: 39.48 kB / 433 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006948/0.5034, allocations: 333.4 kB / 433.4 MB, free: 4.824 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/0.5035, allocations: 7.438 kB / 433.4 MB, free: 4.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.534e-05/0.5035, allocations: 11.69 kB / 433.4 MB, free: 4.812 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003282/0.5039, allocations: 152.1 kB / 433.5 MB, free: 4.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.5039, allocations: 0 / 433.5 MB, free: 4.68 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.5039, allocations: 3.625 kB / 433.5 MB, free: 4.68 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.504, allocations: 11.94 kB / 433.5 MB, free: 4.668 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001947/0.5042, allocations: 68.42 kB / 433.6 MB, free: 4.621 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009687/0.5051, allocations: 0.5066 MB / 434.1 MB, free: 4.156 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003081/0.5055, allocations: 122.5 kB / 434.2 MB, free: 4.062 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.5056, allocations: 57.41 kB / 434.3 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.5056, allocations: 0 / 434.3 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002463/0.5059, allocations: 116.9 kB / 434.4 MB, free: 3.914 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.698e-06/0.5059, allocations: 0 / 434.4 MB, free: 3.914 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004404/0.5064, allocations: 161.7 kB / 434.6 MB, free: 3.777 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.704e-05/0.5065, allocations: 106.8 kB / 434.7 MB, free: 3.648 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006727/0.5072, allocations: 388.4 kB / 435 MB, free: 3.352 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.5072, allocations: 40.33 kB / 435.1 MB, free: 3.312 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.5074, allocations: 172.3 kB / 435.2 MB, free: 3.188 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.773e-05/0.5075, allocations: 35.12 kB / 435.3 MB, free: 3.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.091e-05/0.5075, allocations: 3.625 kB / 435.3 MB, free: 3.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.5077, allocations: 348.7 kB / 435.6 MB, free: 2.824 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.5078, allocations: 38.75 kB / 435.7 MB, free: 2.801 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.508, allocations: 106.9 kB / 435.8 MB, free: 2.695 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.5082, allocations: 43.06 kB / 435.8 MB, free: 2.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.558e-06/0.5082, allocations: 0 / 435.8 MB, free: 2.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003974/0.5086, allocations: 183.4 kB / 436 MB, free: 2.516 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.5086, allocations: 4 kB / 436 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.812e-06/0.5086, allocations: 0 / 436 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.5087, allocations: 4 kB / 436 MB, free: 2.508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.5088, allocations: 27.98 kB / 436 MB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.5089, allocations: 4 kB / 436 MB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.5091, allocations: 22.58 kB / 436 MB, free: 2.457 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.5091, allocations: 4 kB / 436.1 MB, free: 2.453 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001302/0.5092, allocations: 126.2 kB / 436.2 MB, free: 2.332 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.669e-05/0.5093, allocations: 31.62 kB / 436.2 MB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004582/0.5098, allocations: 190.6 kB / 436.4 MB, free: 2.141 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.5098, allocations: 7.984 kB / 436.4 MB, free: 2.133 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.311e-06/0.5098, allocations: 0 / 436.4 MB, free: 2.133 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.776e-06/0.5098, allocations: 0 / 436.4 MB, free: 2.133 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004113/0.5103, allocations: 323.2 kB / 436.7 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.659e-06/0.5103, allocations: 0 / 436.7 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.766e-05/0.5104, allocations: 11.98 kB / 436.7 MB, free: 1.809 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.595e-06/0.5104, allocations: 4 kB / 436.7 MB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.5104, allocations: 3.125 kB / 436.7 MB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.131e-06/0.5104, allocations: 3.938 kB / 436.7 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.214e-06/0.5104, allocations: 4 kB / 436.7 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000436/0.5109, allocations: 218.2 kB / 437 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001533/0.5111, allocations: 119.7 kB / 437.1 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.5111, allocations: 7.625 kB / 437.1 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.5113, allocations: 11.3 kB / 437.1 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.911e-05/0.5114, allocations: 15.55 kB / 437.1 MB, free: 1.449 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.5114, allocations: 7.984 kB / 437.1 MB, free: 1.441 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004865/0.5119, allocations: 314.9 kB / 437.4 MB, free: 1.207 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.28e-07/0.5119, allocations: 0 / 437.4 MB, free: 1.207 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004424/0.5124, allocations: 66.86 kB / 437.5 MB, free: 1.148 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001476/0.5139, allocations: 429.6 kB / 437.9 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000363/0.5143, allocations: 122.2 kB / 438 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.313e-06/0.5143, allocations: 0 / 438 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.5144, allocations: 65.42 kB / 438.1 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004546/0.5149, allocations: 65.89 kB / 438.2 MB, free: 0.668 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009324/0.5159, allocations: 391.6 kB / 438.5 MB, free: 328 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005329/0.5164, allocations: 0.7828 MB / 439.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001996/0.5166, allocations: 49.3 kB / 439.4 MB, free: 15.47 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.5167, allocations: 23.44 kB / 439.4 MB, free: 15.45 MB / 362.7 MB Notification: Performance of SimCode: time 1.53e-06/0.5168, allocations: 0 / 439.4 MB, free: 15.45 MB / 362.7 MB Notification: Performance of Templates: time 0.0117/0.5285, allocations: 3.794 MB / 443.2 MB, free: 11.7 MB / 362.7 MB