Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariable.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.001315/0.001315, 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.001473/0.001473, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.547/1.547, allocations: 230.6 MB / 256 MB, free: 8.02 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.007082/0.007082, allocations: 1.007 MB / 313.4 MB, free: 2.121 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.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",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.002011/0.002011, allocations: 68.17 kB / 435.7 MB, free: 16.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09415/0.09616, allocations: 53.58 MB / 489.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002425/0.09859, allocations: 1.384 MB / 490.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.09991, allocations: 0.8919 MB / 491.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.389e-05/0.09994, allocations: 0 / 491.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.366e-05/0.09996, allocations: 4 kB / 491.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001626/0.1001, allocations: 11.92 kB / 491.6 MB, free: 8.691 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/writeRealVariable.mo:2:1-14:22:writable] Warning: Pure function 'KeyWordIO.writeRealVariable' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0001855/0.1003, allocations: 39.84 kB / 491.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.199e-05/0.1004, allocations: 31.91 kB / 491.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.748e-05/0.1004, allocations: 8 kB / 491.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.187e-05/0.1005, allocations: 7.938 kB / 491.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.1006, allocations: 15.92 kB / 491.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.452e-05/0.1006, allocations: 4 kB / 491.7 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.916e-05/0.1007, allocations: 35.97 kB / 491.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.201e-05/0.1007, allocations: 3.984 kB / 491.7 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.005e-05/0.1008, allocations: 11.94 kB / 491.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.1009, allocations: 56.09 kB / 491.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1009, allocations: 0 / 491.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1009, allocations: 0 / 491.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.126e-06/0.1009, allocations: 0 / 491.8 MB, free: 8.48 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004074/0.1013, allocations: 295.9 kB / 492.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.1013, allocations: 8.031 kB / 492.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.402e-05/0.1014, allocations: 38.67 kB / 492.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.1014, allocations: 8.891 kB / 492.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.1015, allocations: 110.5 kB / 492.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.507e-06/0.1015, allocations: 384 / 492.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.1015, allocations: 4.375 kB / 492.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.1017, allocations: 34.25 kB / 492.3 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1017, allocations: 7.938 kB / 492.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.445e-06/0.1017, allocations: 4 kB / 492.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.1017, allocations: 0 / 492.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.241e-05/0.1017, allocations: 15.92 kB / 492.3 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001667/0.1019, allocations: 124.8 kB / 492.4 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.976e-05/0.102, allocations: 26.52 kB / 492.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.9e-05/0.102, allocations: 16.84 kB / 492.5 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.468e-06/0.102, allocations: 4 kB / 492.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001912/0.1022, allocations: 114.7 kB / 492.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.1022, allocations: 0 / 492.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002282/0.1025, allocations: 87.31 kB / 492.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.1025, allocations: 77.11 kB / 492.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.687e-05/0.1026, allocations: 110 kB / 492.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.1026, allocations: 25.7 kB / 492.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.772e-05/0.1027, allocations: 84.14 kB / 493 MB, free: 7.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.1027, allocations: 11.89 kB / 493 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/0.1027, allocations: 13.72 kB / 493 MB, free: 7.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1028, allocations: 314.8 kB / 493.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.116e-05/0.1029, allocations: 8 kB / 493.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.569e-05/0.1029, allocations: 21.7 kB / 493.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.103, allocations: 85.05 kB / 493.4 MB, free: 6.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.103, allocations: 0 / 493.4 MB, free: 6.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001349/0.1032, allocations: 75.39 kB / 493.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.517e-05/0.1032, allocations: 33.64 kB / 493.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.586e-06/0.1032, allocations: 4.125 kB / 493.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.1032, allocations: 0 / 493.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.338e-05/0.1033, allocations: 4 kB / 493.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.1033, allocations: 7.922 kB / 493.5 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.688e-05/0.1033, allocations: 8 kB / 493.6 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.1033, allocations: 0 / 493.6 MB, free: 6.469 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 9.541e-05/0.1034, allocations: 135.5 kB / 493.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.1034, allocations: 7.938 kB / 493.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.029e-05/0.1035, allocations: 7.578 kB / 493.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.1035, allocations: 7.984 kB / 493.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.1035, allocations: 0 / 493.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.1035, allocations: 0 / 493.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.1036, allocations: 136.7 kB / 493.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1036, allocations: 0 / 493.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.759e-05/0.1036, allocations: 4 kB / 493.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.1036, allocations: 3.938 kB / 493.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.1036, allocations: 8 kB / 493.9 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.1036, allocations: 3.984 kB / 493.9 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1036, allocations: 4.25 kB / 493.9 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001599/0.1038, allocations: 102.8 kB / 494 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.032e-05/0.1038, allocations: 7.875 kB / 494 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.1038, allocations: 7.938 kB / 494 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.989e-05/0.1039, allocations: 7.984 kB / 494 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.122e-05/0.1039, allocations: 0 / 494 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.1039, allocations: 0 / 494 MB, free: 5.945 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.169e-05/0.104, allocations: 99.28 kB / 494.1 MB, free: 5.848 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.104, allocations: 0 / 494.1 MB, free: 5.848 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002252/0.1042, allocations: 16 kB / 494.1 MB, free: 5.832 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: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * 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.0007488/0.1049, allocations: 0.7169 MB / 494.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001616/0.1051, allocations: 75.33 kB / 494.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1051, allocations: 4.125 kB / 494.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.571e-05/0.1052, allocations: 67.39 kB / 495 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000157/0.1053, allocations: 4 kB / 495 MB, free: 4.941 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.1066, allocations: 1.207 MB / 496.2 MB, free: 3.641 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002879/0.1069, allocations: 0.6807 MB / 496.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.979e-05/0.1069, allocations: 4 kB / 496.9 MB, free: 2.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.481e-05/0.107, allocations: 15.42 kB / 496.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of SimCode: time 6.42e-07/0.107, allocations: 0 / 496.9 MB, free: 2.914 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 539.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02938/0.1363, allocations: 1.868 MB / 498.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.69, allocations: 7.109 kB / 498.7 MB, free: 1.176 MB / 350.1 MB " [Timeout remaining time 648] (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariable.sim & python3 -m fmpy simulate --output-file KeyWordIO_KeyWordIO.Examples.WriteRealVariable_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_WriteRealVariable.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.388041539998085] Failed to read output from testmodel.py, exit status != 0: 11.793674630000169 11.818313143 11.712796484 Calling exit ...