Running command: "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariables,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariables",fmuType="me",version="2.0",platforms={"static"}) [/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.052/2.052, allocations: 206.8 MB / 218.9 MB, free: 8.738 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.029e-05/5.045e-05, allocations: 9.25 kB / 269.7 MB, free: 5.426 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 47.78 MB / 317.5 MB, free: 5.562 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4065/0.5105, allocations: 75.61 MB / 393.1 MB, free: 10.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.5108, allocations: 64.47 kB / 393.1 MB, free: 10.32 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007171/0.518, allocations: 1.859 MB / 395 MB, free: 8.953 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.518, allocations: 0 / 395 MB, free: 8.953 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.5181, allocations: 4 kB / 395 MB, free: 8.949 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.0004061/0.5185, allocations: 371.9 kB / 395.4 MB, free: 8.539 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.5185, allocations: 16.02 kB / 395.4 MB, free: 8.523 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.031e-05/0.5186, allocations: 34.5 kB / 395.4 MB, free: 8.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.403e-05/0.5186, allocations: 8 kB / 395.4 MB, free: 8.473 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.5188, allocations: 167 kB / 395.6 MB, free: 8.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.5188, allocations: 8.531 kB / 395.6 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.233e-05/0.5189, allocations: 0 / 395.6 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.519, allocations: 45.56 kB / 395.6 MB, free: 8.215 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.519, allocations: 0 / 395.6 MB, free: 8.215 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.519, allocations: 0 / 395.6 MB, free: 8.215 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.5191, allocations: 6.625 kB / 395.6 MB, free: 8.211 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.79e-05/0.5191, allocations: 7.875 kB / 395.6 MB, free: 8.207 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001976/0.5193, allocations: 157.5 kB / 395.8 MB, free: 8.008 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.519e-05/0.5194, allocations: 38.44 kB / 395.8 MB, free: 7.965 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.226e-05/0.5195, allocations: 16.7 kB / 395.9 MB, free: 7.949 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.24e-05/0.5195, allocations: 4 kB / 395.9 MB, free: 7.945 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002028/0.5197, allocations: 132.5 kB / 396 MB, free: 7.789 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 2.104e-06/0.5198, allocations: 0 / 396 MB, free: 7.789 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002979/0.5201, allocations: 94.83 kB / 396.1 MB, free: 7.695 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.628e-05/0.5202, allocations: 140.4 kB / 396.2 MB, free: 7.527 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.5203, allocations: 100.8 kB / 396.3 MB, free: 7.426 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.5203, allocations: 25.7 kB / 396.3 MB, free: 7.395 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.861e-05/0.5204, allocations: 91.73 kB / 396.4 MB, free: 7.305 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.733e-05/0.5204, allocations: 11.8 kB / 396.4 MB, free: 7.293 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-06/0.5205, allocations: 0 / 396.4 MB, free: 7.293 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.5206, allocations: 322.3 kB / 396.8 MB, free: 6.973 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.259e-05/0.5207, allocations: 7.875 kB / 396.8 MB, free: 6.969 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.066e-05/0.5207, allocations: 13.72 kB / 396.8 MB, free: 6.949 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.195e-05/0.5208, allocations: 41.56 kB / 396.8 MB, free: 6.906 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.5208, allocations: 4 kB / 396.8 MB, free: 6.902 MB / 314.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001846/0.521, allocations: 94.91 kB / 396.9 MB, free: 6.805 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/0.5211, allocations: 33.7 kB / 396.9 MB, free: 6.766 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.5211, allocations: 3.938 kB / 396.9 MB, free: 6.762 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.5211, allocations: 0 / 396.9 MB, free: 6.762 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/0.5213, allocations: 11.98 kB / 397 MB, free: 6.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.5213, allocations: 0 / 397 MB, free: 6.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.282e-05/0.5214, allocations: 4 kB / 397 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.5214, allocations: 4.062 kB / 397 MB, free: 6.742 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.0001949/0.5216, allocations: 142.5 kB / 397.1 MB, free: 6.594 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.5216, allocations: 11.86 kB / 397.1 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.011e-05/0.5217, allocations: 8.094 kB / 397.1 MB, free: 6.574 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.5217, allocations: 0 / 397.1 MB, free: 6.574 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.5217, allocations: 0 / 397.1 MB, free: 6.574 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.5217, allocations: 0 / 397.1 MB, free: 6.574 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/0.5219, allocations: 165.5 kB / 397.3 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.5219, allocations: 0 / 397.3 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.988e-05/0.522, allocations: 8.062 kB / 397.3 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.522, allocations: 7.953 kB / 397.3 MB, free: 6.355 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/0.522, allocations: 7.984 kB / 397.3 MB, free: 6.348 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.5221, allocations: 0 / 397.3 MB, free: 6.348 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5221, allocations: 0 / 397.3 MB, free: 6.348 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002752/0.5223, allocations: 137.6 kB / 397.4 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.144e-05/0.5224, allocations: 89.08 kB / 397.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.133e-05/0.5225, allocations: 7.938 kB / 397.5 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.734e-05/0.5226, allocations: 12.03 kB / 397.6 MB, free: 6.078 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.355e-05/0.5226, allocations: 3.984 kB / 397.6 MB, free: 6.074 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-05/0.5227, allocations: 4 kB / 397.6 MB, free: 6.07 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.269e-05/0.5227, allocations: 87.28 kB / 397.6 MB, free: 5.988 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5228, allocations: 0 / 397.6 MB, free: 5.988 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003479/0.5231, allocations: 23.88 kB / 397.7 MB, free: 5.969 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.001002/0.5241, allocations: 0.7766 MB / 398.4 MB, free: 5.199 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002112/0.5244, allocations: 90.64 kB / 398.5 MB, free: 5.109 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5244, allocations: 3.938 kB / 398.5 MB, free: 5.105 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.5245, allocations: 82.47 kB / 398.6 MB, free: 5.027 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001467/0.5247, allocations: 7.953 kB / 398.6 MB, free: 5.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004663/0.5252, allocations: 126.3 kB / 398.7 MB, free: 4.867 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.5254, allocations: 0.6889 MB / 399.4 MB, free: 4.152 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.722e-05/0.5255, allocations: 3.984 kB / 399.4 MB, free: 4.148 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.035e-05/0.5255, allocations: 15.19 kB / 399.5 MB, free: 4.141 MB / 314.7 MB Notification: Performance of SimCode: time 7.71e-07/0.5255, allocations: 0 / 399.5 MB, free: 4.141 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:718:13-718:124:writable] Error: Internal error Failed to copy path /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/KeyWordIO 0.9.0/../output.txt to KeyWordIO_KeyWordIO_Examples_WriteRealVariables.fmutmp/resources//var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/KeyWordIO 0.9.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02264/0.5482, allocations: 1.608 MB / 401.1 MB, free: 2.574 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002755/0.5485, allocations: 179.3 kB / 401.2 MB, free: 2.344 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.371/2.92, allocations: 3.938 kB / 401.2 MB, free: 2.34 MB / 314.7 MB