Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.141/2.141, allocations: 218.4 MB / 231.5 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.818e-05/3.821e-05, allocations: 7.984 kB / 284.3 MB, free: 8.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08712/0.08718, allocations: 50.35 MB / 334.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3579/0.4451, allocations: 82.13 MB / 416.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.4454, allocations: 81.81 kB / 416.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02424/0.4697, allocations: 5.863 MB / 422.7 MB, free: 7.141 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.046e-06/0.4697, allocations: 3.938 kB / 422.7 MB, free: 7.137 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.509e-05/0.4698, allocations: 4 kB / 422.8 MB, free: 7.133 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006751/0.4705, allocations: 484.3 kB / 423.2 MB, free: 6.621 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.4705, allocations: 12.03 kB / 423.2 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.529e-05/0.4706, allocations: 19.72 kB / 423.3 MB, free: 6.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004896/0.4711, allocations: 265.1 kB / 423.5 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.4712, allocations: 7.375 kB / 423.5 MB, free: 6.309 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.476e-05/0.4712, allocations: 11.77 kB / 423.5 MB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000378/0.4716, allocations: 174.6 kB / 423.7 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.4716, allocations: 0 / 423.7 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.4716, allocations: 0 / 423.7 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.8e-06/0.4717, allocations: 7.938 kB / 423.7 MB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001124/0.4718, allocations: 34.48 kB / 423.7 MB, free: 6.098 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006317/0.4724, allocations: 386.9 kB / 424.1 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002331/0.4727, allocations: 124.5 kB / 424.2 MB, free: 5.566 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.4728, allocations: 54.06 kB / 424.3 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.4728, allocations: 3.812 kB / 424.3 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/0.473, allocations: 78.08 kB / 424.4 MB, free: 5.434 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 3.123e-06/0.473, allocations: 0 / 424.4 MB, free: 5.434 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003544/0.4734, allocations: 129.4 kB / 424.5 MB, free: 5.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.4735, allocations: 158.2 kB / 424.7 MB, free: 5.129 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003708/0.4739, allocations: 245.9 kB / 424.9 MB, free: 4.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.474, allocations: 29.8 kB / 424.9 MB, free: 4.895 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.4741, allocations: 179.7 kB / 425.1 MB, free: 4.734 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.44e-05/0.4741, allocations: 23.25 kB / 425.1 MB, free: 4.715 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.614e-06/0.4741, allocations: 0 / 425.1 MB, free: 4.715 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.4743, allocations: 326.2 kB / 425.4 MB, free: 4.391 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.467e-05/0.4744, allocations: 21.5 kB / 425.5 MB, free: 4.375 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.4745, allocations: 82.42 kB / 425.5 MB, free: 4.281 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.847e-05/0.4746, allocations: 26.48 kB / 425.6 MB, free: 4.262 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.038e-06/0.4746, allocations: 4 kB / 425.6 MB, free: 4.258 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000263/0.4749, allocations: 108.5 kB / 425.7 MB, free: 4.164 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.4749, allocations: 8 kB / 425.7 MB, free: 4.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.048e-06/0.475, allocations: 0 / 425.7 MB, free: 4.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.889e-05/0.475, allocations: 7.984 kB / 425.7 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.4751, allocations: 16.06 kB / 425.7 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.017e-06/0.4751, allocations: 0 / 425.7 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/0.4753, allocations: 18.92 kB / 425.7 MB, free: 4.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.4753, allocations: 4.188 kB / 425.7 MB, free: 4.113 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001134/0.4754, allocations: 127.3 kB / 425.9 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.4756, allocations: 76.78 kB / 425.9 MB, free: 3.91 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002742/0.4759, allocations: 111.2 kB / 426 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.002e-06/0.4759, allocations: 4 kB / 426 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.434e-06/0.4759, allocations: 0 / 426 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.016e-06/0.4759, allocations: 0 / 426 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002888/0.4762, allocations: 238.2 kB / 426.3 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.603e-06/0.4762, allocations: 11.94 kB / 426.3 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.335e-05/0.4763, allocations: 7.984 kB / 426.3 MB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.442e-06/0.4763, allocations: 4 kB / 426.3 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.4764, allocations: 3.312 kB / 426.3 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.735e-06/0.4764, allocations: 7.938 kB / 426.3 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.41e-06/0.4764, allocations: 0 / 426.3 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003453/0.4767, allocations: 207.4 kB / 426.5 MB, free: 3.309 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.4769, allocations: 112.1 kB / 426.6 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.243e-05/0.477, allocations: 6.688 kB / 426.6 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.4771, allocations: 7.188 kB / 426.6 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.688e-05/0.4771, allocations: 7.984 kB / 426.6 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.4772, allocations: 11.95 kB / 426.7 MB, free: 3.16 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000271/0.4775, allocations: 199.2 kB / 426.9 MB, free: 3 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.47e-07/0.4775, allocations: 0 / 426.9 MB, free: 3 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003803/0.4779, allocations: 35.19 kB / 426.9 MB, free: 2.969 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.001421/0.4793, allocations: 412.1 kB / 427.3 MB, free: 2.621 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00026/0.4796, allocations: 74.73 kB / 427.4 MB, free: 2.566 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.37e-06/0.4796, allocations: 0 / 427.4 MB, free: 2.566 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.987e-05/0.4797, allocations: 30.19 kB / 427.4 MB, free: 2.543 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.4801, allocations: 61.38 kB / 427.5 MB, free: 2.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006372/0.4808, allocations: 287 kB / 427.7 MB, free: 2.215 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004135/0.4812, allocations: 0.7361 MB / 428.5 MB, free: 1.457 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.124e-05/0.4813, allocations: 23.42 kB / 428.5 MB, free: 1.434 MB / 346.7 MB Notification: Performance of SimCode: time 1.548e-06/0.4813, allocations: 0 / 428.5 MB, free: 1.434 MB / 346.7 MB Notification: Performance of Templates: time 0.006336/0.4877, allocations: 2.802 MB / 431.3 MB, free: 14.67 MB / 362.7 MB