Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadModel(Modelica_Synchronous): time 2.177/2.177, allocations: 218.4 MB / 234.2 MB, free: 352 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.36e-05/3.352e-05, allocations: 4.078 kB / 287.6 MB, free: 8.449 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 50.38 MB / 338 MB, free: 10.58 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.002848/0.1049, allocations: 1.52 MB / 339.5 MB, free: 9.043 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.1065, allocations: 0.5896 MB / 340.1 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002266/0.1068, allocations: 11.94 kB / 340.1 MB, free: 8.438 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.718e-05/0.1069, allocations: 3.938 kB / 340.1 MB, free: 8.434 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002166/0.1071, allocations: 19.91 kB / 340.1 MB, free: 8.414 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005511/0.1077, allocations: 95.73 kB / 340.2 MB, free: 8.32 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002199/0.1079, allocations: 79.73 kB / 340.3 MB, free: 8.242 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.1081, allocations: 32.11 kB / 340.3 MB, free: 8.211 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.1082, allocations: 39.83 kB / 340.4 MB, free: 8.172 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.878e-05/0.1083, allocations: 31.86 kB / 340.4 MB, free: 8.141 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.665e-05/0.1084, allocations: 4 kB / 340.4 MB, free: 8.137 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.026e-05/0.1084, allocations: 4 kB / 340.4 MB, free: 8.133 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.398e-05/0.1085, allocations: 19.86 kB / 340.4 MB, free: 8.113 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3e-05/0.1085, allocations: 8 kB / 340.4 MB, free: 8.105 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001764/0.1087, allocations: 87.81 kB / 340.5 MB, free: 8.02 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.1087, allocations: 0 / 340.5 MB, free: 8.02 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.756e-06/0.1087, allocations: 0 / 340.5 MB, free: 8.02 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.1087, allocations: 4 kB / 340.5 MB, free: 8.016 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0007377/0.1095, allocations: 415.5 kB / 340.9 MB, free: 7.562 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.1096, allocations: 8.031 kB / 340.9 MB, free: 7.555 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.575e-05/0.1096, allocations: 19.72 kB / 340.9 MB, free: 7.535 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004195/0.1101, allocations: 231.7 kB / 341.2 MB, free: 7.27 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.1101, allocations: 8.188 kB / 341.2 MB, free: 7.262 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.877e-05/0.1102, allocations: 15.98 kB / 341.2 MB, free: 7.246 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009424/0.1111, allocations: 281.5 kB / 341.5 MB, free: 6.941 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.1112, allocations: 0 / 341.5 MB, free: 6.941 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.752e-05/0.1112, allocations: 4 kB / 341.5 MB, free: 6.938 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.158e-06/0.1112, allocations: 7.938 kB / 341.5 MB, free: 6.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004182/0.1117, allocations: 91.81 kB / 341.6 MB, free: 6.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006957/0.1124, allocations: 423.5 kB / 342 MB, free: 6.363 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007957/0.1132, allocations: 310.5 kB / 342.3 MB, free: 5.996 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.294e-05/0.1133, allocations: 4 kB / 342.3 MB, free: 5.992 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.1133, allocations: 46.44 kB / 342.3 MB, free: 5.938 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 2.955e-06/0.1133, allocations: 0 / 342.3 MB, free: 5.938 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009683/0.1143, allocations: 237.2 kB / 342.6 MB, free: 5.699 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/0.1145, allocations: 188.3 kB / 342.8 MB, free: 5.473 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.1147, allocations: 162.1 kB / 342.9 MB, free: 5.309 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.1148, allocations: 29.7 kB / 342.9 MB, free: 5.273 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.1149, allocations: 162.6 kB / 343.1 MB, free: 5.113 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.678e-05/0.115, allocations: 19.83 kB / 343.1 MB, free: 5.094 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.264e-06/0.115, allocations: 0 / 343.1 MB, free: 5.094 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1151, allocations: 326.8 kB / 343.4 MB, free: 4.766 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.1153, allocations: 19.98 kB / 343.5 MB, free: 4.746 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.1155, allocations: 132.2 kB / 343.6 MB, free: 4.566 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/0.1157, allocations: 51.95 kB / 343.6 MB, free: 4.516 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1157, allocations: 0 / 343.6 MB, free: 4.516 MB / 282.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004359/0.1162, allocations: 161.5 kB / 343.8 MB, free: 4.352 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.1162, allocations: 4 kB / 343.8 MB, free: 4.348 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.1162, allocations: 4 kB / 343.8 MB, free: 4.344 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.611e-05/0.1163, allocations: 4 kB / 343.8 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002372/0.1165, allocations: 40.3 kB / 343.8 MB, free: 4.301 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.434e-05/0.1165, allocations: 4 kB / 343.9 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.1167, allocations: 19.83 kB / 343.9 MB, free: 4.277 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.1167, allocations: 8.25 kB / 343.9 MB, free: 4.27 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001847/0.1169, allocations: 145.7 kB / 344 MB, free: 4.117 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004956/0.1174, allocations: 149.5 kB / 344.2 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.553e-05/0.1175, allocations: 25.39 kB / 344.2 MB, free: 3.938 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.1176, allocations: 4 kB / 344.2 MB, free: 3.934 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1176, allocations: 4.031 kB / 344.2 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.1176, allocations: 4 kB / 344.2 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003971/0.118, allocations: 217.5 kB / 344.4 MB, free: 3.664 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.118, allocations: 4 kB / 344.4 MB, free: 3.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002809/0.1183, allocations: 35.97 kB / 344.5 MB, free: 3.625 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.07e-05/0.1183, allocations: 7.938 kB / 344.5 MB, free: 3.617 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.1184, allocations: 8 kB / 344.5 MB, free: 3.609 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.1184, allocations: 0 / 344.5 MB, free: 3.609 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1184, allocations: 0 / 344.5 MB, free: 3.609 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007445/0.1191, allocations: 423.9 kB / 344.9 MB, free: 3.145 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.1193, allocations: 112.7 kB / 345 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.624e-05/0.1194, allocations: 15.94 kB / 345 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.1196, allocations: 12 kB / 345 MB, free: 2.988 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.647e-05/0.1197, allocations: 7.984 kB / 345 MB, free: 2.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.1197, allocations: 8 kB / 345 MB, free: 2.973 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001733/0.1199, allocations: 133.2 kB / 345.2 MB, free: 2.844 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1199, allocations: 0 / 345.2 MB, free: 2.844 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004257/0.1203, allocations: 20 kB / 345.2 MB, free: 2.824 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.0001465/0.1205, allocations: 99.23 kB / 345.3 MB, free: 2.715 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004911/0.121, allocations: 122.9 kB / 345.4 MB, free: 2.598 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.121, allocations: 1 kB / 345.4 MB, free: 2.598 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.279e-05/0.1211, allocations: 23.98 kB / 345.4 MB, free: 2.574 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007643/0.1219, allocations: 104.2 kB / 345.5 MB, free: 2.473 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/0.1243, allocations: 0.5448 MB / 346.1 MB, free: 1.883 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003999/0.1247, allocations: 0.728 MB / 346.8 MB, free: 1.129 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.149e-05/0.1248, allocations: 19.44 kB / 346.8 MB, free: 1.109 MB / 282.7 MB Notification: Performance of SimCode: time 1.172e-06/0.1248, allocations: 0 / 346.8 MB, free: 1.109 MB / 282.7 MB Notification: Performance of Templates: time 0.005226/0.13, allocations: 1.715 MB / 348.5 MB, free: 15.4 MB / 298.7 MB