Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadModel(Modelica): time 2.013/2.013, allocations: 225.8 MB / 238.8 MB, free: 11.14 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.158e-05/5.181e-05, allocations: 4 kB / 292.1 MB, free: 8.344 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0968/0.09689, allocations: 50.4 MB / 342.5 MB, free: 5.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.379/0.4759, allocations: 81.86 MB / 424.4 MB, free: 12.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/0.4762, allocations: 81.33 kB / 424.5 MB, free: 12.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03853/0.5148, allocations: 8.819 MB / 433.3 MB, free: 5.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.432e-06/0.5148, allocations: 0 / 433.3 MB, free: 5.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.758e-05/0.5149, allocations: 4 kB / 433.3 MB, free: 5.016 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008406/0.5157, allocations: 0.4888 MB / 433.8 MB, free: 4.492 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.972e-05/0.5158, allocations: 8.031 kB / 433.8 MB, free: 4.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.516, allocations: 43.56 kB / 433.8 MB, free: 4.441 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008522/0.5169, allocations: 273.7 kB / 434.1 MB, free: 4.156 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.139e-05/0.5169, allocations: 15.25 kB / 434.1 MB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.249e-05/0.517, allocations: 11.94 kB / 434.1 MB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.5181, allocations: 283.7 kB / 434.4 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.5181, allocations: 0 / 434.4 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/0.5182, allocations: 6.703 kB / 434.4 MB, free: 3.895 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.5182, allocations: 4 kB / 434.4 MB, free: 3.891 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002929/0.5185, allocations: 56.17 kB / 434.5 MB, free: 3.855 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.5197, allocations: 388.1 kB / 434.9 MB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006346/0.5203, allocations: 172.7 kB / 435 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/0.5207, allocations: 86.2 kB / 435.1 MB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.899e-05/0.5207, allocations: 4 kB / 435.1 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002652/0.521, allocations: 77.2 kB / 435.2 MB, free: 3.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 6.517e-06/0.5211, allocations: 4 kB / 435.2 MB, free: 3.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008042/0.5219, allocations: 177.2 kB / 435.4 MB, free: 3.008 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00017/0.5221, allocations: 139.6 kB / 435.5 MB, free: 2.844 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006341/0.5227, allocations: 245.5 kB / 435.7 MB, free: 2.645 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.022e-05/0.5228, allocations: 33.2 kB / 435.8 MB, free: 2.609 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.523, allocations: 121.8 kB / 435.9 MB, free: 2.508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.839e-05/0.5231, allocations: 27.08 kB / 435.9 MB, free: 2.484 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.676e-05/0.5231, allocations: 3.25 kB / 435.9 MB, free: 2.484 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002508/0.5234, allocations: 341.2 kB / 436.3 MB, free: 2.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.5236, allocations: 37.28 kB / 436.3 MB, free: 2.125 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.524, allocations: 164.2 kB / 436.5 MB, free: 1.926 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002372/0.5242, allocations: 53.52 kB / 436.5 MB, free: 1.887 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/0.5243, allocations: 4 kB / 436.5 MB, free: 1.883 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0008396/0.5251, allocations: 212.6 kB / 436.7 MB, free: 1.699 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/0.5252, allocations: 4 kB / 436.7 MB, free: 1.695 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.5252, allocations: 4.531 kB / 436.7 MB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.277e-05/0.5253, allocations: 8 kB / 436.7 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.5255, allocations: 27.92 kB / 436.8 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.056e-05/0.5256, allocations: 11.92 kB / 436.8 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003379/0.5259, allocations: 15.69 kB / 436.8 MB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.562e-05/0.526, allocations: 15.12 kB / 436.8 MB, free: 1.621 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,sample1.u,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0002277/0.5262, allocations: 136.9 kB / 436.9 MB, free: 1.496 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004758/0.5267, allocations: 126.5 kB / 437.1 MB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004955/0.5273, allocations: 122.1 kB / 437.2 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.481e-05/0.5273, allocations: 4 kB / 437.2 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.5273, allocations: 0 / 437.2 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.5274, allocations: 0 / 437.2 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005183/0.5279, allocations: 253.3 kB / 437.4 MB, free: 1.012 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.288e-06/0.5279, allocations: 0 / 437.4 MB, free: 1.012 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.5281, allocations: 15.06 kB / 437.4 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.035e-05/0.5281, allocations: 7.953 kB / 437.5 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.074e-05/0.5282, allocations: 3.5 kB / 437.5 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.046e-05/0.5282, allocations: 4 kB / 437.5 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.381e-06/0.5282, allocations: 3.984 kB / 437.5 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007753/0.529, allocations: 249.1 kB / 437.7 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002773/0.5293, allocations: 126.6 kB / 437.8 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.642e-05/0.5294, allocations: 3.25 kB / 437.8 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002316/0.5297, allocations: 15.56 kB / 437.9 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.227e-05/0.5298, allocations: 3.984 kB / 437.9 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.845e-05/0.5298, allocations: 11.75 kB / 437.9 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004908/0.5303, allocations: 192.7 kB / 438.1 MB, free: 440 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.322e-06/0.5304, allocations: 0 / 438.1 MB, free: 440 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009005/0.5313, allocations: 59.2 kB / 438.1 MB, free: 388 kB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,sample1.u,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.002363/0.5337, allocations: 437.8 kB / 438.5 MB, free: 72 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007267/0.5344, allocations: 135.7 kB / 438.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.687e-06/0.5345, allocations: 8.125 kB / 438.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.5346, allocations: 26.81 kB / 438.7 MB, free: 15.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009138/0.5356, allocations: 98.31 kB / 438.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.5369, allocations: 284.3 kB / 439.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006557/0.5376, allocations: 0.759 MB / 439.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002473/0.5378, allocations: 37.81 kB / 439.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.538, allocations: 19.44 kB / 439.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of SimCode: time 2.166e-06/0.538, allocations: 3.938 kB / 439.9 MB, free: 14.76 MB / 362.7 MB Notification: Performance of Templates: time 0.01529/0.5533, allocations: 2.832 MB / 442.7 MB, free: 11.96 MB / 362.7 MB