Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariables.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007563/0.0007563, allocations: 84.44 kB / 19.17 MB, free: 0.7305 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008031/0.0008031, allocations: 169.9 kB / 22.45 MB, free: 2.094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8616/0.8616, allocations: 177.2 MB / 202.8 MB, free: 5.766 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo): time 0.003572/0.003572, allocations: 0.7939 MB / 260.1 MB, free: 12.49 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/readLineWithoutCache.mo:2:1-87:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/writeLine.mo:2:1-61:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] Using package KeyWordIO with version 0.12.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariables,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariables",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariables,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariables",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 382.3 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.467e-05/1.592e-05, allocations: 2.281 kB / 382.3 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001591/0.001607, allocations: 1.395 MB / 383.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008065/0.002413, allocations: 0.8998 MB / 384.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.395e-05/0.002437, allocations: 0 / 384.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.13e-05/0.002458, allocations: 7.938 kB / 384.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001722/0.002631, allocations: 11.91 kB / 384.6 MB, free: 13.38 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/writeRealVariables.mo:2:1-21:23:writable] Warning: Pure function 'KeyWordIO.writeRealVariables' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0001872/0.002818, allocations: 43.83 kB / 384.7 MB, free: 13.33 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.421e-05/0.002882, allocations: 27.86 kB / 384.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.355e-05/0.002915, allocations: 8 kB / 384.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.926e-05/0.002955, allocations: 11.98 kB / 384.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.728e-05/0.003012, allocations: 15.92 kB / 384.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.003024, allocations: 4 kB / 384.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.363e-05/0.003108, allocations: 43.91 kB / 384.8 MB, free: 13.22 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.299e-05/0.003121, allocations: 7.922 kB / 384.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.391e-05/0.003145, allocations: 7.984 kB / 384.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001197/0.003264, allocations: 71.73 kB / 384.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.543e-06/0.003266, allocations: 0 / 384.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.003267, allocations: 4 kB / 384.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.003273, allocations: 0 / 384.9 MB, free: 13.13 MB / 362.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.000307/0.00358, allocations: 302.6 kB / 385.2 MB, free: 12.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.003615, allocations: 12.03 kB / 385.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.225e-05/0.003638, allocations: 34.75 kB / 385.2 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.136e-05/0.003659, allocations: 0.9375 kB / 385.2 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.763e-05/0.003737, allocations: 121.6 kB / 385.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.003747, allocations: 4.375 kB / 385.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.375e-06/0.003756, allocations: 384 / 385.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.814e-05/0.003854, allocations: 75.94 kB / 385.4 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.00386, allocations: 192 / 385.4 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-06/0.003867, allocations: 384 / 385.4 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.003872, allocations: 4.125 kB / 385.4 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.577e-05/0.003918, allocations: 49.69 kB / 385.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.862e-05/0.004016, allocations: 124.8 kB / 385.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.608e-05/0.004072, allocations: 68.2 kB / 385.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.317e-05/0.004105, allocations: 38.62 kB / 385.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.645e-06/0.004113, allocations: 4 kB / 385.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001309/0.004244, allocations: 170.2 kB / 385.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 6.21e-07/0.004245, allocations: 0 / 385.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003478/0.004592, allocations: 186.7 kB / 386.1 MB, free: 11.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.004639, allocations: 140.5 kB / 386.2 MB, free: 11.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.571e-05/0.004695, allocations: 105.8 kB / 386.3 MB, free: 11.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.004706, allocations: 29.7 kB / 386.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.446e-05/0.00473, allocations: 84.14 kB / 386.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.004751, allocations: 15.88 kB / 386.4 MB, free: 11.33 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.299e-05/0.004774, allocations: 17.72 kB / 386.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.25e-05/0.004836, allocations: 310.8 kB / 386.7 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.161e-05/0.004868, allocations: 41.69 kB / 386.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.672e-05/0.004905, allocations: 59.41 kB / 386.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.432e-05/0.004999, allocations: 113.1 kB / 386.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.005001, allocations: 0 / 386.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.54e-05/0.005096, allocations: 129.3 kB / 387.1 MB, free: 10.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.005119, allocations: 33.7 kB / 387.1 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.005123, allocations: 0 / 387.1 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.005133, allocations: 7.938 kB / 387.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.548e-05/0.005179, allocations: 4 kB / 387.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.005184, allocations: 3.938 kB / 387.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.291e-05/0.005206, allocations: 12.05 kB / 387.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.005213, allocations: 4 kB / 387.1 MB, free: 10.53 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = true ) \"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,y_start,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.521e-05/0.005308, allocations: 155.8 kB / 387.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.166e-06/0.005316, allocations: 3.953 kB / 387.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.529e-05/0.005331, allocations: 12.12 kB / 387.3 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.005334, allocations: 3.938 kB / 387.3 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.005337, allocations: 0 / 387.3 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.00534, allocations: 0 / 387.3 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.414e-05/0.005404, allocations: 136.7 kB / 387.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.005405, allocations: 4 kB / 387.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.276e-05/0.005418, allocations: 7.984 kB / 387.5 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.31e-07/0.005418, allocations: 0 / 387.5 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.005426, allocations: 4 kB / 387.5 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.005427, allocations: 3.938 kB / 387.5 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-07/0.005428, allocations: 0 / 387.5 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.005563, allocations: 176.4 kB / 387.6 MB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.514e-06/0.00557, allocations: 3.953 kB / 387.6 MB, free: 9.938 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.005583, allocations: 8 kB / 387.6 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.655e-05/0.0056, allocations: 7.938 kB / 387.7 MB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.155e-05/0.005631, allocations: 8.016 kB / 387.7 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.005641, allocations: 4 kB / 387.7 MB, free: 9.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.715e-05/0.005668, allocations: 87.28 kB / 387.8 MB, free: 9.824 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005668, allocations: 0 / 387.8 MB, free: 9.824 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001516/0.005819, allocations: 23.92 kB / 387.8 MB, free: 9.801 MB / 362.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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004559/0.006275, allocations: 0.7955 MB / 388.6 MB, free: 9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001336/0.006409, allocations: 154.7 kB / 388.7 MB, free: 8.824 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.00641, allocations: 0 / 388.7 MB, free: 8.824 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.152e-05/0.006472, allocations: 109.2 kB / 388.8 MB, free: 8.699 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001017/0.006573, allocations: 15.22 kB / 388.8 MB, free: 8.688 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.007637, allocations: 1.426 MB / 390.3 MB, free: 7.133 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.271e-05/0.00767, allocations: 63.34 kB / 390.3 MB, free: 7.051 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.518e-05/0.007685, allocations: 3.984 kB / 390.3 MB, free: 7.047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.688e-05/0.007712, allocations: 16.5 kB / 390.4 MB, free: 7.031 MB / 362.7 MB Notification: Performance of SimCode: time 4.5e-07/0.007712, allocations: 0 / 390.4 MB, free: 7.031 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:802:13-802:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/../output.txt to 652.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01376/0.02148, allocations: 2.652 MB / 393 MB, free: 4.492 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.525/6.547, allocations: 10.56 kB / 393 MB, free: 4.488 MB / 362.7 MB " [Timeout remaining time 653] (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariables.sim & python3 -m fmpy simulate --output-file KeyWordIO_KeyWordIO.Examples.WriteRealVariables_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 KeyWordIO_KeyWordIO_Examples_WriteRealVariables.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.236919329036027] Failed to read output from testmodel.py, exit status != 0: 6.624761592131108 6.634423128 6.629182987 Calling exit ...