Running command: translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/KeyWordIO 0.9.0/readLineWithoutCache.mo:11:24-11:1688:writable] Warning: Lexer treating \ as \\, since \0 is not a valid Modelica escape sequence. Notification: Performance of loadModel(KeyWordIO): time 2.095/2.095, allocations: 206.8 MB / 218.9 MB, free: 8.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.697e-05/2.701e-05, allocations: 4 kB / 269.6 MB, free: 5.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08312/0.08317, allocations: 47.78 MB / 317.4 MB, free: 5.648 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.328/0.4112, allocations: 75.6 MB / 393 MB, free: 10.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.4114, allocations: 62.38 kB / 393 MB, free: 10.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006656/0.4181, allocations: 1.864 MB / 394.9 MB, free: 9.062 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.833e-06/0.4182, allocations: 7.984 kB / 394.9 MB, free: 9.055 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.4182, allocations: 0 / 394.9 MB, free: 9.055 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003829/0.4186, allocations: 367.1 kB / 395.3 MB, free: 8.648 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.4186, allocations: 8.031 kB / 395.3 MB, free: 8.641 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.112e-05/0.4187, allocations: 0 / 395.3 MB, free: 8.641 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001682/0.4188, allocations: 178 kB / 395.4 MB, free: 8.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.4189, allocations: 7.953 kB / 395.4 MB, free: 8.422 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.4189, allocations: 0 / 395.4 MB, free: 8.422 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001012/0.419, allocations: 36.95 kB / 395.5 MB, free: 8.383 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.419, allocations: 0 / 395.5 MB, free: 8.383 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.4191, allocations: 0 / 395.5 MB, free: 8.383 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.992e-06/0.4191, allocations: 2.188 kB / 395.5 MB, free: 8.383 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.184e-05/0.4191, allocations: 15.98 kB / 395.5 MB, free: 8.367 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002003/0.4193, allocations: 164.3 kB / 395.7 MB, free: 8.164 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.538e-05/0.4194, allocations: 29.53 kB / 395.7 MB, free: 8.129 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.05e-05/0.4195, allocations: 15.77 kB / 395.7 MB, free: 8.113 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.105e-05/0.4195, allocations: 0 / 395.7 MB, free: 8.113 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000183/0.4197, allocations: 138.7 kB / 395.8 MB, free: 7.953 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 2.4e-06/0.4197, allocations: 4 kB / 395.8 MB, free: 7.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.000245/0.42, allocations: 101.6 kB / 395.9 MB, free: 7.848 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.4201, allocations: 132.5 kB / 396.1 MB, free: 7.688 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.891e-05/0.4202, allocations: 96.19 kB / 396.2 MB, free: 7.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.4202, allocations: 33.5 kB / 396.2 MB, free: 7.555 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.334e-05/0.4203, allocations: 80.14 kB / 396.3 MB, free: 7.473 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.233e-05/0.4204, allocations: 14.94 kB / 396.3 MB, free: 7.461 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.475e-06/0.4204, allocations: 3.938 kB / 396.3 MB, free: 7.457 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.4205, allocations: 318.9 kB / 396.6 MB, free: 7.137 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.769e-05/0.4206, allocations: 7.938 kB / 396.6 MB, free: 7.133 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.216e-05/0.4206, allocations: 20.33 kB / 396.6 MB, free: 7.109 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.024e-05/0.4207, allocations: 37.91 kB / 396.7 MB, free: 7.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.551e-06/0.4207, allocations: 0 / 396.7 MB, free: 7.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001719/0.4209, allocations: 94.47 kB / 396.8 MB, free: 6.973 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.785e-05/0.421, allocations: 37.69 kB / 396.8 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.088e-06/0.421, allocations: 48 / 396.8 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.421, allocations: 8.047 kB / 396.8 MB, free: 6.922 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.781e-05/0.4211, allocations: 11.94 kB / 396.8 MB, free: 6.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.767e-06/0.4211, allocations: 3.938 kB / 396.8 MB, free: 6.906 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.363e-05/0.4212, allocations: 4 kB / 396.8 MB, free: 6.902 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.4212, allocations: 7.984 kB / 396.8 MB, free: 6.895 MB / 314.7 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = false ) "End value of step.y right after switching" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.y_end,y_end,$whenCondition1,$whenCondition2,y_start) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.0001536/0.4214, allocations: 134.6 kB / 397 MB, free: 6.754 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.4214, allocations: 15.86 kB / 397 MB, free: 6.738 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.419e-05/0.4215, allocations: 4.094 kB / 397 MB, free: 6.734 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.932e-06/0.4215, allocations: 4 kB / 397 MB, free: 6.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.665e-06/0.4215, allocations: 0 / 397 MB, free: 6.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.31e-06/0.4215, allocations: 3.984 kB / 397 MB, free: 6.727 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/0.4217, allocations: 165.4 kB / 397.2 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.162e-06/0.4217, allocations: 0 / 397.2 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-05/0.4218, allocations: 4 kB / 397.2 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.261e-06/0.4218, allocations: 0 / 397.2 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.4218, allocations: 3.953 kB / 397.2 MB, free: 6.516 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.403e-06/0.4218, allocations: 4 kB / 397.2 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.676e-06/0.4218, allocations: 4 kB / 397.2 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002414/0.4221, allocations: 138.2 kB / 397.3 MB, free: 6.359 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.93e-05/0.4222, allocations: 88.77 kB / 397.4 MB, free: 6.258 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.4222, allocations: 4 kB / 397.4 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.737e-05/0.4223, allocations: 11.94 kB / 397.4 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.688e-05/0.4223, allocations: 4 kB / 397.4 MB, free: 6.238 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.4224, allocations: 8.031 kB / 397.4 MB, free: 6.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.171e-05/0.4224, allocations: 83.22 kB / 397.5 MB, free: 6.152 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.68e-07/0.4224, allocations: 0 / 397.5 MB, free: 6.152 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003069/0.4228, allocations: 31.97 kB / 397.5 MB, free: 6.121 MB / 314.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: 4 ($whenCondition1,$whenCondition2,y_start,y_end) * Number of discrete states: 4 ($whenCondition2,y_end,$whenCondition1,y_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.0004874/0.4233, allocations: 196.3 kB / 397.7 MB, free: 5.953 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001851/0.4235, allocations: 98.52 kB / 397.8 MB, free: 5.855 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4235, allocations: 3.938 kB / 397.8 MB, free: 5.852 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.4236, allocations: 85.47 kB / 397.9 MB, free: 5.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001121/0.4237, allocations: 4.188 kB / 397.9 MB, free: 5.766 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002512/0.424, allocations: 83.53 kB / 398 MB, free: 5.668 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.4244, allocations: 0.6848 MB / 398.7 MB, free: 4.957 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.334e-05/0.4244, allocations: 3.984 kB / 398.7 MB, free: 4.953 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.727e-05/0.4244, allocations: 7.438 kB / 398.7 MB, free: 4.949 MB / 314.7 MB Notification: Performance of SimCode: time 1.397e-06/0.4245, allocations: 0 / 398.7 MB, free: 4.949 MB / 314.7 MB Notification: Performance of Templates: time 0.003856/0.4283, allocations: 0.8064 MB / 399.5 MB, free: 4.152 MB / 314.7 MB