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.001008/0.001008, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0009195/0.0009195, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9899/0.9899, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.005099/0.005099, allocations: 0.8022 MB / 260 MB, free: 12.46 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.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: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 382.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.899e-05/2.06e-05, allocations: 5.094 kB / 382.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001735/0.001756, allocations: 1.384 MB / 383.6 MB, free: 14.28 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008229/0.002578, allocations: 0.8959 MB / 384.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.707e-05/0.002615, allocations: 0 / 384.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.532e-05/0.002641, allocations: 0 / 384.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002208/0.002862, allocations: 19.86 kB / 384.6 MB, free: 13.36 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/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.0001443/0.003006, allocations: 35.84 kB / 384.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.574e-05/0.003072, allocations: 27.91 kB / 384.6 MB, free: 13.3 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.966e-05/0.003111, allocations: 4 kB / 384.6 MB, free: 13.29 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.77e-05/0.003159, allocations: 11.98 kB / 384.6 MB, free: 13.28 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.367e-05/0.003233, allocations: 7.938 kB / 384.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.334e-05/0.003246, allocations: 4 kB / 384.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.062e-05/0.003317, allocations: 39.89 kB / 384.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.323e-05/0.00333, allocations: 8 kB / 384.7 MB, free: 13.22 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.324e-05/0.003353, allocations: 15.81 kB / 384.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.003482, allocations: 59.86 kB / 384.8 MB, free: 13.15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.003484, allocations: 0 / 384.8 MB, free: 13.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.003485, allocations: 0 / 384.8 MB, free: 13.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.003489, allocations: 0 / 384.8 MB, free: 13.15 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003329/0.003822, allocations: 302.6 kB / 385.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.003862, allocations: 12.03 kB / 385.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.39e-05/0.003886, allocations: 30.75 kB / 385.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.414e-05/0.00391, allocations: 4.875 kB / 385.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.251e-05/0.004003, allocations: 117.7 kB / 385.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.004012, allocations: 384 / 385.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-06/0.004018, allocations: 384 / 385.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.899e-05/0.004117, allocations: 67.95 kB / 385.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.004124, allocations: 192 / 385.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.186e-06/0.004133, allocations: 384 / 385.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.004138, allocations: 4.125 kB / 385.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.036e-05/0.004169, allocations: 11.94 kB / 385.3 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001154/0.004284, allocations: 128.8 kB / 385.4 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.581e-05/0.00433, allocations: 26.56 kB / 385.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.279e-05/0.004353, allocations: 8.922 kB / 385.5 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.246e-06/0.004361, allocations: 0 / 385.5 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001408/0.004502, allocations: 158.2 kB / 385.6 MB, free: 12.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 8.11e-07/0.004503, allocations: 0 / 385.6 MB, free: 12.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001759/0.004678, allocations: 142.7 kB / 385.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.004712, allocations: 77.11 kB / 385.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.03e-05/0.004772, allocations: 113.8 kB / 386 MB, free: 11.74 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.448e-06/0.004781, allocations: 29.83 kB / 386 MB, free: 11.71 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.602e-05/0.004807, allocations: 84.14 kB / 386.1 MB, free: 11.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.169e-05/0.004829, allocations: 7.938 kB / 386.1 MB, free: 11.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.148e-05/0.00485, allocations: 17.72 kB / 386.1 MB, free: 11.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.926e-05/0.00492, allocations: 310.8 kB / 386.4 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.295e-05/0.004953, allocations: 37.69 kB / 386.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.041e-05/0.004983, allocations: 43.42 kB / 386.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.704e-05/0.00504, allocations: 89.11 kB / 386.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.005042, allocations: 0 / 386.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.381e-05/0.005126, allocations: 109 kB / 386.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.005148, allocations: 29.7 kB / 386.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.005152, allocations: 0 / 386.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.005163, allocations: 3.938 kB / 386.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.496e-05/0.005208, allocations: 4 kB / 386.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.005213, allocations: 0 / 386.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.365e-05/0.005237, allocations: 11.98 kB / 386.7 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-06/0.005243, allocations: 12 kB / 386.7 MB, free: 10.88 MB / 362.7 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 5.904e-05/0.005302, allocations: 131.5 kB / 386.9 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.343e-06/0.005309, allocations: 11.89 kB / 386.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.707e-05/0.005326, allocations: 7.578 kB / 386.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.005329, allocations: 3.938 kB / 386.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.005334, allocations: 4 kB / 386.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.005337, allocations: 0 / 386.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.574e-05/0.005403, allocations: 124.8 kB / 387 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-07/0.005404, allocations: 0 / 387 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.205e-05/0.005416, allocations: 7.984 kB / 387 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.005417, allocations: 4 kB / 387 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.005423, allocations: 4 kB / 387 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.005425, allocations: 3.938 kB / 387 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.005426, allocations: 3.984 kB / 387 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.482e-05/0.005521, allocations: 136.5 kB / 387.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.167e-06/0.00553, allocations: 4 kB / 387.2 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.989e-06/0.00554, allocations: 3.984 kB / 387.2 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.815e-05/0.005559, allocations: 7.938 kB / 387.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.005592, allocations: 0 / 387.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.005597, allocations: 8.031 kB / 387.2 MB, free: 10.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.966e-05/0.005627, allocations: 91.56 kB / 387.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005627, allocations: 4 kB / 387.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000141/0.005768, allocations: 11.94 kB / 387.3 MB, free: 10.23 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: 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.0004932/0.006261, allocations: 0.7612 MB / 388 MB, free: 9.465 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001232/0.006384, allocations: 126.8 kB / 388.2 MB, free: 9.316 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.006386, allocations: 0 / 388.2 MB, free: 9.316 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.883e-05/0.006425, allocations: 85.11 kB / 388.3 MB, free: 9.215 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001121/0.006537, allocations: 16.12 kB / 388.3 MB, free: 9.199 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008183/0.007355, allocations: 1.34 MB / 389.6 MB, free: 7.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.467e-05/0.00739, allocations: 55.36 kB / 389.7 MB, free: 7.656 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.014e-05/0.00741, allocations: 7.984 kB / 389.7 MB, free: 7.648 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.791e-05/0.007438, allocations: 12.5 kB / 389.7 MB, free: 7.637 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.007439, allocations: 0 / 389.7 MB, free: 7.637 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:796:13-796:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/../output.txt to 539.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01598/0.02342, allocations: 2.432 MB / 392.1 MB, free: 5.309 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.158/8.181, allocations: 11.44 kB / 392.1 MB, free: 5.301 MB / 362.7 MB " [Timeout remaining time 652] (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: 10.196576832793653] Failed to read output from testmodel.py, exit status != 0: 8.26052581705153 8.273570289 8.267933802 Calling exit ...