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.0006418/0.0006418, 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.000791/0.000791, 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.8962/0.8962, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.003766/0.003766, allocations: 0.7937 MB / 260 MB, free: 12.47 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.643e-06/1.643e-06, allocations: 0 / 382.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.154e-05/2.318e-05, allocations: 9.031 kB / 382.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001843/0.001866, allocations: 1.38 MB / 383.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008213/0.002687, allocations: 0.892 MB / 384.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.213e-05/0.002719, allocations: 0 / 384.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.556e-05/0.002745, allocations: 7.938 kB / 384.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002127/0.002958, allocations: 11.94 kB / 384.6 MB, free: 12.17 MB / 314.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.0001582/0.003116, allocations: 51.81 kB / 384.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 6.456e-05/0.00318, allocations: 23.86 kB / 384.6 MB, free: 12.1 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.982e-05/0.00322, allocations: 3.938 kB / 384.6 MB, free: 12.09 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.769e-05/0.003268, allocations: 15.92 kB / 384.7 MB, free: 12.08 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.5e-05/0.003343, allocations: 4 kB / 384.7 MB, free: 12.07 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.003355, allocations: 4 kB / 384.7 MB, free: 12.07 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.355e-05/0.003429, allocations: 43.89 kB / 384.7 MB, free: 12.03 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.27e-05/0.003441, allocations: 3.938 kB / 384.7 MB, free: 12.02 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.225e-05/0.003464, allocations: 4 kB / 384.7 MB, free: 12.02 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.003592, allocations: 55.86 kB / 384.8 MB, free: 11.96 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.003594, allocations: 4 kB / 384.8 MB, free: 11.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.003595, allocations: 0 / 384.8 MB, free: 11.96 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.003599, allocations: 4 kB / 384.8 MB, free: 11.96 MB / 314.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.0003226/0.003921, allocations: 295.9 kB / 385.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.003959, allocations: 12.03 kB / 385.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.536e-05/0.003984, allocations: 30.75 kB / 385.1 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.83e-05/0.004012, allocations: 4.891 kB / 385.1 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.815e-05/0.004101, allocations: 109.8 kB / 385.2 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.907e-06/0.00411, allocations: 384 / 385.2 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.723e-06/0.004116, allocations: 4.375 kB / 385.2 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.799e-05/0.004204, allocations: 63.97 kB / 385.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.79e-06/0.00421, allocations: 192 / 385.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-06/0.004218, allocations: 4.312 kB / 385.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.004223, allocations: 8.125 kB / 385.3 MB, free: 11.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.983e-05/0.004252, allocations: 7.984 kB / 385.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001081/0.004361, allocations: 128.8 kB / 385.4 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.124e-05/0.004402, allocations: 18.58 kB / 385.4 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.336e-05/0.004425, allocations: 16.91 kB / 385.5 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.784e-06/0.004433, allocations: 4 kB / 385.5 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001518/0.004585, allocations: 158.2 kB / 385.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=2): time 9.51e-07/0.004586, allocations: 0 / 385.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001696/0.004755, allocations: 142.7 kB / 385.8 MB, free: 10.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.004785, allocations: 81.11 kB / 385.8 MB, free: 10.67 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.968e-05/0.004845, allocations: 110.1 kB / 385.9 MB, free: 10.55 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.878e-06/0.004855, allocations: 25.7 kB / 386 MB, free: 10.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.574e-05/0.004881, allocations: 84.14 kB / 386.1 MB, free: 10.44 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.004902, allocations: 12.08 kB / 386.1 MB, free: 10.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.299e-05/0.004925, allocations: 17.7 kB / 386.1 MB, free: 10.4 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.391e-05/0.004999, allocations: 314.8 kB / 386.4 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.831e-05/0.005027, allocations: 29.7 kB / 386.4 MB, free: 10.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.19e-05/0.005059, allocations: 51.34 kB / 386.5 MB, free: 9.988 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.296e-05/0.005112, allocations: 81.11 kB / 386.6 MB, free: 9.891 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.005114, allocations: 0 / 386.6 MB, free: 9.891 MB / 314.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.93e-05/0.005193, allocations: 113.1 kB / 386.7 MB, free: 9.762 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.00522, allocations: 44.53 kB / 386.7 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.005224, allocations: 0 / 386.7 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.005237, allocations: 7.938 kB / 386.7 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.282e-05/0.005279, allocations: 0 / 386.7 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.005286, allocations: 8.062 kB / 386.7 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.205e-05/0.005308, allocations: 0 / 386.7 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.005315, allocations: 7.984 kB / 386.7 MB, free: 9.691 MB / 314.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.609e-05/0.005371, allocations: 135.5 kB / 386.9 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.691e-06/0.005377, allocations: 8.062 kB / 386.9 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.542e-05/0.005392, allocations: 11.58 kB / 386.9 MB, free: 9.523 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.005395, allocations: 3.938 kB / 386.9 MB, free: 9.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.005399, allocations: 4 kB / 386.9 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.005402, allocations: 0 / 386.9 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.265e-05/0.005464, allocations: 120.8 kB / 387 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.005467, allocations: 4 kB / 387 MB, free: 9.352 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.149e-05/0.005479, allocations: 4 kB / 387 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.00548, allocations: 0 / 387 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.005487, allocations: 7.984 kB / 387 MB, free: 9.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.005489, allocations: 3.938 kB / 387 MB, free: 9.336 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.00549, allocations: 7.938 kB / 387 MB, free: 9.328 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.476e-05/0.005585, allocations: 132.5 kB / 387.2 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.857e-06/0.005594, allocations: 4 kB / 387.2 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.128e-06/0.005603, allocations: 0 / 387.2 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.756e-05/0.005621, allocations: 11.92 kB / 387.2 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.192e-05/0.005653, allocations: 0 / 387.2 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.005657, allocations: 7.984 kB / 387.2 MB, free: 9.145 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.223e-05/0.005689, allocations: 91.27 kB / 387.3 MB, free: 9.055 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005689, allocations: 0 / 387.3 MB, free: 9.055 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001433/0.005833, allocations: 23.97 kB / 387.3 MB, free: 9.031 MB / 314.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.000451/0.006284, allocations: 0.7457 MB / 388 MB, free: 8.281 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001155/0.006399, allocations: 122.8 kB / 388.2 MB, free: 8.137 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.006401, allocations: 0 / 388.2 MB, free: 8.137 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.734e-05/0.006438, allocations: 89.09 kB / 388.3 MB, free: 8.031 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001081/0.006546, allocations: 15.88 kB / 388.3 MB, free: 8.016 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008939/0.00744, allocations: 1.341 MB / 389.6 MB, free: 6.547 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.416e-05/0.007474, allocations: 63.34 kB / 389.7 MB, free: 6.465 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.945e-05/0.007493, allocations: 3.984 kB / 389.7 MB, free: 6.461 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.007523, allocations: 12.5 kB / 389.7 MB, free: 6.449 MB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.007524, allocations: 0 / 389.7 MB, free: 6.449 MB / 314.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.01698/0.0245, allocations: 2.44 MB / 392.1 MB, free: 4.121 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.562/6.587, allocations: 9.406 kB / 392.1 MB, free: 4.113 MB / 314.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_WriteRealVariable_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.209833167493343] Failed to read output from testmodel.py, exit status != 0: 6.66849638428539 6.677577888 6.6720844 Calling exit ...