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.001248/0.001248, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001448/0.001448, allocations: 213.5 kB / 22.24 MB, free: 5.242 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.354/1.354, allocations: 230.6 MB / 256 MB, free: 7.797 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.006854/0.006854, allocations: 1.005 MB / 313.4 MB, free: 1.902 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.001899/0.001899, allocations: 63.91 kB / 435.7 MB, free: 16.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08716/0.08906, allocations: 53.58 MB / 489.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002397/0.09146, allocations: 1.373 MB / 490.6 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.09275, allocations: 0.888 MB / 491.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.232e-05/0.09278, allocations: 0 / 491.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.445e-05/0.0928, allocations: 0 / 491.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001934/0.093, allocations: 15.92 kB / 491.5 MB, free: 8.469 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.0001926/0.09319, allocations: 47.89 kB / 491.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.098e-05/0.09325, allocations: 23.92 kB / 491.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.868e-05/0.09329, allocations: 3.938 kB / 491.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.832e-05/0.09332, allocations: 7.984 kB / 491.6 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.573e-05/0.09339, allocations: 19.86 kB / 491.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.0934, allocations: 4 kB / 491.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.237e-05/0.09349, allocations: 27.98 kB / 491.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.233e-05/0.0935, allocations: 3.984 kB / 491.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.022e-05/0.09353, allocations: 15.92 kB / 491.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001528/0.09368, allocations: 56.09 kB / 491.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.09369, allocations: 0 / 491.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.09369, allocations: 4 kB / 491.7 MB, free: 8.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.09369, allocations: 0 / 491.7 MB, free: 8.258 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.0003942/0.09409, allocations: 291.9 kB / 492 MB, free: 7.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.09412, allocations: 8.031 kB / 492 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.79e-05/0.09416, allocations: 34.73 kB / 492.1 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.851e-05/0.09419, allocations: 8.891 kB / 492.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.0943, allocations: 106.5 kB / 492.2 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.09431, allocations: 4.375 kB / 492.2 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.29e-06/0.09432, allocations: 384 / 492.2 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001231/0.09444, allocations: 71.89 kB / 492.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.09445, allocations: 3.938 kB / 492.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.09446, allocations: 0 / 492.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.09446, allocations: 0 / 492.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.024e-05/0.09452, allocations: 15.97 kB / 492.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001473/0.09467, allocations: 120.8 kB / 492.4 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.203e-05/0.09473, allocations: 26.59 kB / 492.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.616e-05/0.09477, allocations: 8.922 kB / 492.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.09478, allocations: 7.938 kB / 492.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001829/0.09496, allocations: 170.1 kB / 492.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.09496, allocations: 0 / 492.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002386/0.0952, allocations: 134.7 kB / 492.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.09526, allocations: 85.09 kB / 492.8 MB, free: 6.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.643e-05/0.09534, allocations: 101.9 kB / 492.9 MB, free: 6.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.09536, allocations: 25.7 kB / 492.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.421e-05/0.0954, allocations: 96.06 kB / 493 MB, free: 6.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.127e-05/0.09543, allocations: 11.83 kB / 493 MB, free: 6.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.917e-05/0.09545, allocations: 13.84 kB / 493 MB, free: 6.695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.09559, allocations: 318.8 kB / 493.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.961e-05/0.09564, allocations: 33.69 kB / 493.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.392e-05/0.09569, allocations: 43.42 kB / 493.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.274e-05/0.09578, allocations: 81.11 kB / 493.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.09578, allocations: 0 / 493.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001483/0.09593, allocations: 113.1 kB / 493.6 MB, free: 6.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.09596, allocations: 37.64 kB / 493.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.09597, allocations: 0 / 493.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.09598, allocations: 0 / 493.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.297e-05/0.09603, allocations: 4 kB / 493.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.09604, allocations: 0 / 493.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.379e-05/0.09607, allocations: 7.984 kB / 493.7 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.09607, allocations: 0 / 493.7 MB, free: 6 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.399e-05/0.09617, allocations: 135.5 kB / 493.8 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.423e-05/0.09618, allocations: 7.938 kB / 493.8 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.81e-05/0.0962, allocations: 15.61 kB / 493.8 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.0962, allocations: 0 / 493.8 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.09621, allocations: 3.984 kB / 493.8 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.09621, allocations: 0 / 493.8 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.09631, allocations: 132.7 kB / 494 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.09632, allocations: 3.984 kB / 494 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.399e-05/0.09634, allocations: 4 kB / 494 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.09635, allocations: 3.938 kB / 494 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-06/0.09635, allocations: 4 kB / 494 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.09635, allocations: 0 / 494 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.09635, allocations: 0 / 494 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000164/0.09652, allocations: 132.5 kB / 494.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.073e-05/0.09653, allocations: 7.938 kB / 494.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.09654, allocations: 0 / 494.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.224e-05/0.09657, allocations: 11.94 kB / 494.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.712e-05/0.0966, allocations: 0 / 494.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.09661, allocations: 7.969 kB / 494.1 MB, free: 5.445 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.059e-05/0.09666, allocations: 87.28 kB / 494.2 MB, free: 5.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.09667, allocations: 0 / 494.2 MB, free: 5.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001958/0.09686, allocations: 12 kB / 494.2 MB, free: 5.348 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.09761, allocations: 0.7642 MB / 495 MB, free: 4.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001774/0.09779, allocations: 130.7 kB / 495.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.09779, allocations: 0 / 495.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.327e-05/0.09787, allocations: 93.03 kB / 495.2 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.09801, allocations: 8 kB / 495.2 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.09925, allocations: 1.337 MB / 496.6 MB, free: 2.852 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.336e-05/0.09931, allocations: 63.36 kB / 496.6 MB, free: 2.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.875e-05/0.09932, allocations: 3.984 kB / 496.6 MB, free: 2.766 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.109e-05/0.09936, allocations: 11.44 kB / 496.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.09936, allocations: 0 / 496.6 MB, free: 2.754 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:793:13-793: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.02825/0.1276, allocations: 2.297 MB / 498.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11, allocations: 0 / 498.9 MB, free: 0.5938 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.394089486915618] Failed to read output from testmodel.py, exit status != 0: 11.103895082138479 11.133038089 11.034483084 Calling exit ...