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.00166/0.00166, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 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.002153/0.002153, allocations: 211.3 kB / 22.25 MB, free: 5.086 MB / 14.72 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 1.507/1.507, allocations: 230.6 MB / 256 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.007206/0.007206, allocations: 1.008 MB / 313.4 MB, free: 2.102 MB / 238.1 MB " [Timeout remaining time 180] Using package KeyWordIO with version 0.12.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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: KeyWordIO requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 67.89 kB / 435.7 MB, free: 16.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09488/0.09683, allocations: 53.59 MB / 489.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002725/0.09956, allocations: 1.388 MB / 490.7 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00147/0.101, allocations: 0.9114 MB / 491.6 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.329e-05/0.1011, allocations: 0 / 491.6 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.663e-05/0.1011, allocations: 0 / 491.6 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.1013, allocations: 11.88 kB / 491.6 MB, free: 8.645 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.0002855/0.1016, allocations: 39.89 kB / 491.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001278/0.1017, allocations: 31.86 kB / 491.7 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.241e-05/0.1017, allocations: 3.984 kB / 491.7 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.326e-05/0.1018, allocations: 7.984 kB / 491.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.1019, allocations: 19.94 kB / 491.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.056e-05/0.1019, allocations: 0 / 491.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.102, allocations: 43.95 kB / 491.8 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.44e-05/0.102, allocations: 11.92 kB / 491.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.424e-05/0.1021, allocations: 15.88 kB / 491.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.1022, allocations: 60.09 kB / 491.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1022, allocations: 0 / 491.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1022, allocations: 0 / 491.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.228e-06/0.1022, allocations: 0 / 491.9 MB, free: 8.414 MB / 350.1 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.000465/0.1027, allocations: 303.8 kB / 492.1 MB, free: 8.078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1028, allocations: 16.03 kB / 492.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.465e-05/0.1028, allocations: 30.75 kB / 492.2 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.1028, allocations: 8.938 kB / 492.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/0.1029, allocations: 122.5 kB / 492.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.103, allocations: 384 / 492.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.103, allocations: 384 / 492.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.1031, allocations: 46.19 kB / 492.4 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.1031, allocations: 3.938 kB / 492.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/0.1031, allocations: 4 kB / 492.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.1031, allocations: 4 kB / 492.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.215e-05/0.1032, allocations: 19.92 kB / 492.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001691/0.1034, allocations: 128.8 kB / 492.5 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.033e-05/0.1035, allocations: 26.58 kB / 492.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.157e-05/0.1035, allocations: 20.92 kB / 492.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.1035, allocations: 0 / 492.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002584/0.1038, allocations: 152.4 kB / 492.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.232e-06/0.1038, allocations: 0 / 492.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003509/0.1041, allocations: 123.4 kB / 492.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.036e-05/0.1042, allocations: 132.5 kB / 493 MB, free: 7.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.374e-05/0.1043, allocations: 113.8 kB / 493.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.1043, allocations: 25.7 kB / 493.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.721e-05/0.1044, allocations: 88.17 kB / 493.2 MB, free: 6.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.674e-05/0.1044, allocations: 11.94 kB / 493.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.662e-05/0.1045, allocations: 17.72 kB / 493.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1046, allocations: 310.8 kB / 493.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.775e-05/0.1046, allocations: 19.92 kB / 493.5 MB, free: 6.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.821e-05/0.1047, allocations: 25.7 kB / 493.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000159/0.1049, allocations: 97.11 kB / 493.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1049, allocations: 0 / 493.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001818/0.105, allocations: 107.3 kB / 493.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.066e-05/0.1051, allocations: 37.64 kB / 493.8 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.1051, allocations: 0 / 493.8 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.1051, allocations: 0 / 493.8 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.547e-05/0.1052, allocations: 11.98 kB / 493.8 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.1052, allocations: 0 / 493.8 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.259e-05/0.1052, allocations: 12 kB / 493.8 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.1052, allocations: 4 kB / 493.8 MB, free: 6.148 MB / 350.1 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 0.0001634/0.1054, allocations: 153.5 kB / 494 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.518e-05/0.1054, allocations: 3.938 kB / 494 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.688e-05/0.1054, allocations: 16 kB / 494 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.1054, allocations: 0 / 494 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1054, allocations: 256 / 494 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1054, allocations: 4.031 kB / 494 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.1056, allocations: 144.7 kB / 494.1 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1056, allocations: 0 / 494.1 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.031e-05/0.1056, allocations: 7.984 kB / 494.2 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.1056, allocations: 3.938 kB / 494.2 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.1056, allocations: 4 kB / 494.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1056, allocations: 0 / 494.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1056, allocations: 0 / 494.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002399/0.1059, allocations: 146.8 kB / 494.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.903e-05/0.1059, allocations: 15.88 kB / 494.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.1059, allocations: 3.938 kB / 494.3 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.565e-05/0.1059, allocations: 4 kB / 494.3 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.782e-05/0.106, allocations: 7.938 kB / 494.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.106, allocations: 3.984 kB / 494.3 MB, free: 5.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.683e-05/0.106, allocations: 87.28 kB / 494.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.106, allocations: 3.938 kB / 494.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002452/0.1063, allocations: 23.94 kB / 494.5 MB, free: 5.441 MB / 350.1 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.001108/0.1074, allocations: 0.7635 MB / 495.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002519/0.1077, allocations: 99.31 kB / 495.3 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1077, allocations: 0 / 495.3 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.1078, allocations: 79.38 kB / 495.4 MB, free: 4.477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001663/0.1079, allocations: 4 kB / 495.4 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.1095, allocations: 1.301 MB / 496.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.1099, allocations: 0.6845 MB / 497.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.238e-05/0.1099, allocations: 4 kB / 497.4 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.827e-05/0.1099, allocations: 11.44 kB / 497.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1099, allocations: 0 / 497.4 MB, free: 2.352 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:791:13-791:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/../output.txt to 652.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03076/0.1407, allocations: 2.092 MB / 499.5 MB, free: 400 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.53, allocations: 10 kB / 499.5 MB, free: 396 kB / 350.1 MB " [Timeout remaining time 648] (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: 14.182028964998608] Failed to read output from testmodel.py, exit status != 0: 11.628896362999512 11.652206293 11.543901445 Calling exit ...