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.0007339/0.0007339, allocations: 80.53 kB / 19.93 MB, free: 4.605 MB / 18.57 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.0007434/0.0007434, allocations: 181.2 kB / 23.22 MB, free: 1.316 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.8302/0.8302, allocations: 177.1 MB / 203.5 MB, free: 5.75 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.003579/0.003579, allocations: 0.7915 MB / 260.7 MB, free: 12.48 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: translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 383.5 MB, free: 13.99 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.436e-05/2.57e-05, allocations: 2.984 kB / 383.5 MB, free: 13.99 MB / 314.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001733/0.001758, allocations: 1.388 MB / 384.9 MB, free: 12.59 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008291/0.002587, allocations: 0.892 MB / 385.8 MB, free: 11.7 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.431e-05/0.002622, allocations: 0 / 385.8 MB, free: 11.7 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.346e-05/0.002645, allocations: 3.938 kB / 385.8 MB, free: 11.69 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002017/0.002847, allocations: 19.81 kB / 385.8 MB, free: 11.67 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.0001413/0.002988, allocations: 47.81 kB / 385.9 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 6.111e-05/0.003049, allocations: 19.92 kB / 385.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.977e-05/0.003089, allocations: 4 kB / 385.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.271e-05/0.003132, allocations: 7.938 kB / 385.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.938e-05/0.003211, allocations: 11.98 kB / 385.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.166e-05/0.003223, allocations: 3.984 kB / 385.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.916e-05/0.003292, allocations: 35.92 kB / 386 MB, free: 11.54 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.206e-05/0.003304, allocations: 4 kB / 386 MB, free: 11.54 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.247e-05/0.003326, allocations: 15.91 kB / 386 MB, free: 11.52 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001223/0.003449, allocations: 51.88 kB / 386 MB, free: 11.47 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.003451, allocations: 4 kB / 386 MB, free: 11.47 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.003452, allocations: 0 / 386 MB, free: 11.47 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.003455, allocations: 0 / 386 MB, free: 11.47 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.0003187/0.003774, allocations: 295.9 kB / 386.3 MB, free: 11.14 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.003805, allocations: 11.97 kB / 386.3 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.279e-05/0.003838, allocations: 8.891 kB / 386.3 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.851e-05/0.003927, allocations: 105.8 kB / 386.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.003937, allocations: 4.312 kB / 386.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.923e-06/0.003944, allocations: 384 / 386.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.421e-05/0.004038, allocations: 63.95 kB / 386.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.004045, allocations: 8.125 kB / 386.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/0.004053, allocations: 384 / 386.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.004057, allocations: 384 / 386.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.18e-05/0.004089, allocations: 19.92 kB / 386.5 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001052/0.004194, allocations: 101.3 kB / 386.6 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.356e-05/0.004238, allocations: 26.53 kB / 386.7 MB, free: 10.72 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.082e-05/0.004258, allocations: 8.922 kB / 386.7 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.648e-06/0.004268, allocations: 4 kB / 386.7 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001605/0.004429, allocations: 162.2 kB / 386.8 MB, free: 10.51 MB / 314.7 MB Notification: Performance of pre-optimization done (n=2): time 8.71e-07/0.004429, allocations: 0 / 386.8 MB, free: 10.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001715/0.004601, allocations: 138.7 kB / 387 MB, free: 10.35 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.004635, allocations: 85.05 kB / 387 MB, free: 10.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.7e-05/0.004692, allocations: 113.8 kB / 387.2 MB, free: 10.13 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.677e-06/0.004701, allocations: 25.7 kB / 387.2 MB, free: 10.1 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.057e-05/0.004731, allocations: 92.14 kB / 387.3 MB, free: 10 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.004753, allocations: 11.88 kB / 387.3 MB, free: 9.992 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.318e-05/0.004776, allocations: 13.72 kB / 387.3 MB, free: 9.973 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.056e-05/0.004847, allocations: 319 kB / 387.6 MB, free: 9.652 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.982e-05/0.004876, allocations: 33.69 kB / 387.6 MB, free: 9.613 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.008e-05/0.004907, allocations: 43.42 kB / 387.7 MB, free: 9.559 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.522e-05/0.004962, allocations: 81.11 kB / 387.8 MB, free: 9.461 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.004965, allocations: 3.984 kB / 387.8 MB, free: 9.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.926e-05/0.005044, allocations: 105.2 kB / 387.9 MB, free: 9.336 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/0.005075, allocations: 37.7 kB / 387.9 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.00508, allocations: 0 / 387.9 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.005089, allocations: 0 / 387.9 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.329e-05/0.005133, allocations: 8 kB / 387.9 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.005139, allocations: 7.922 kB / 387.9 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.642e-05/0.005155, allocations: 4 kB / 387.9 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.86e-06/0.00516, allocations: 0 / 387.9 MB, free: 9.273 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.999e-05/0.00522, allocations: 143.5 kB / 388.1 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.831e-06/0.005226, allocations: 7.938 kB / 388.1 MB, free: 9.109 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.712e-05/0.005243, allocations: 15.56 kB / 388.1 MB, free: 9.094 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.005246, allocations: 3.984 kB / 388.1 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.005249, allocations: 0 / 388.1 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.005253, allocations: 3.938 kB / 388.1 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.697e-05/0.00531, allocations: 101.3 kB / 388.2 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.005311, allocations: 4 kB / 388.2 MB, free: 8.953 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.226e-05/0.005323, allocations: 3.984 kB / 388.2 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.005324, allocations: 0 / 388.2 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.005331, allocations: 4 kB / 388.2 MB, free: 8.945 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.32e-07/0.005331, allocations: 0 / 388.2 MB, free: 8.945 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.005332, allocations: 3.938 kB / 388.2 MB, free: 8.941 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.896e-05/0.005431, allocations: 136.4 kB / 388.3 MB, free: 8.777 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.435e-06/0.00544, allocations: 3.984 kB / 388.3 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.867e-06/0.005448, allocations: 4 kB / 388.4 MB, free: 8.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.405e-05/0.005462, allocations: 4 kB / 388.4 MB, free: 8.766 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.096e-05/0.005493, allocations: 4 kB / 388.4 MB, free: 8.762 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/0.005498, allocations: 3.984 kB / 388.4 MB, free: 8.758 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.067e-05/0.005529, allocations: 91.16 kB / 388.5 MB, free: 8.668 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005529, allocations: 0 / 388.5 MB, free: 8.668 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001416/0.00567, allocations: 16 kB / 388.5 MB, free: 8.652 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.0002745/0.005945, allocations: 191.5 kB / 388.7 MB, free: 8.496 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001201/0.006065, allocations: 126.8 kB / 388.8 MB, free: 8.348 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.006067, allocations: 0 / 388.8 MB, free: 8.348 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.834e-05/0.006105, allocations: 89.09 kB / 388.9 MB, free: 8.242 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001013/0.006206, allocations: 8 kB / 388.9 MB, free: 8.234 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002128/0.006419, allocations: 164.1 kB / 389 MB, free: 8.035 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.304e-05/0.006452, allocations: 63.34 kB / 389.1 MB, free: 7.953 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.35e-05/0.006465, allocations: 12.44 kB / 389.1 MB, free: 7.941 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.006466, allocations: 4.188 kB / 389.1 MB, free: 7.938 MB / 314.7 MB Notification: Performance of Templates: time 0.001637/0.008103, allocations: 0.8906 MB / 390 MB, free: 7.047 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.makefile [Timeout 660] (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 & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariable -abortSlowSimulation -alarm=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 3.819024563767016] Failed to read output from testmodel.py, exit status != 0: 0.013101087883114815 0.020107872000000002 0.015169318000000001 Calling exit ...