Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariables.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.0009506/0.0009506, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.001113/0.001113, allocations: 166.5 kB / 24.86 MB, free: 9.289 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.9722/0.9722, allocations: 177.1 MB / 205.3 MB, free: 5.508 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.004208/0.004208, allocations: 0.7977 MB / 262.6 MB, free: 12.11 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.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.482e-06/1.482e-06, allocations: 0 / 332.6 MB, free: 3.699 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.567e-05/2.715e-05, allocations: 2.312 kB / 332.6 MB, free: 3.695 MB / 298.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002728/0.002756, allocations: 1.411 MB / 334 MB, free: 2.273 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.004031, allocations: 0.9467 MB / 334.9 MB, free: 1.324 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.56e-05/0.004066, allocations: 3.938 kB / 334.9 MB, free: 1.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.861e-05/0.004095, allocations: 7.938 kB / 335 MB, free: 1.312 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002228/0.004318, allocations: 15.88 kB / 335 MB, free: 1.297 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/writeRealVariables.mo:2:1-21:23:writable] Warning: Pure function 'KeyWordIO.writeRealVariables' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.000264/0.004582, allocations: 43.83 kB / 335 MB, free: 1.254 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.285e-05/0.004664, allocations: 19.92 kB / 335 MB, free: 1.234 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.222e-05/0.004707, allocations: 11.92 kB / 335 MB, free: 1.223 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.984e-05/0.004757, allocations: 11.98 kB / 335.1 MB, free: 1.211 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.555e-05/0.004832, allocations: 11.98 kB / 335.1 MB, free: 1.199 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.004844, allocations: 0 / 335.1 MB, free: 1.199 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.004965, allocations: 47.83 kB / 335.1 MB, free: 1.148 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.622e-05/0.004981, allocations: 8 kB / 335.1 MB, free: 1.141 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.315e-05/0.005004, allocations: 4 kB / 335.1 MB, free: 1.137 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001586/0.005163, allocations: 71.73 kB / 335.2 MB, free: 1.066 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.005166, allocations: 0 / 335.2 MB, free: 1.066 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.005167, allocations: 0 / 335.2 MB, free: 1.066 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.005171, allocations: 0 / 335.2 MB, free: 1.066 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003927/0.005564, allocations: 406.2 kB / 335.6 MB, free: 0.625 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.005598, allocations: 12.03 kB / 335.6 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.456e-05/0.005633, allocations: 0.9375 kB / 335.6 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.341e-05/0.005726, allocations: 112.6 kB / 335.7 MB, free: 488 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.00574, allocations: 4.375 kB / 335.7 MB, free: 484 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.005748, allocations: 4.375 kB / 335.7 MB, free: 480 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.00587, allocations: 92.58 kB / 335.8 MB, free: 372 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.005878, allocations: 192 / 335.8 MB, free: 372 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-06/0.005885, allocations: 384 / 335.8 MB, free: 372 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.00589, allocations: 384 / 335.8 MB, free: 372 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.094e-05/0.005921, allocations: 33.64 kB / 335.8 MB, free: 332 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001138/0.006035, allocations: 113.2 kB / 336 MB, free: 192 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.774e-05/0.006093, allocations: 56.77 kB / 336 MB, free: 116 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.971e-05/0.006123, allocations: 37.42 kB / 336.1 MB, free: 68 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.03e-06/0.006128, allocations: 0 / 336.1 MB, free: 68 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002322/0.00636, allocations: 171.8 kB / 336.2 MB, free: 15.86 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 2.194e-06/0.006362, allocations: 4 kB / 336.2 MB, free: 15.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.000197/0.006559, allocations: 166.8 kB / 336.4 MB, free: 15.67 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.006607, allocations: 136.5 kB / 336.5 MB, free: 15.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.012e-05/0.006677, allocations: 173.9 kB / 336.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.006691, allocations: 25.7 kB / 336.7 MB, free: 15.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.407e-05/0.006725, allocations: 126.9 kB / 336.8 MB, free: 15.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.006747, allocations: 7.953 kB / 336.8 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.152e-05/0.006778, allocations: 27.3 kB / 336.9 MB, free: 15.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.006881, allocations: 0.4961 MB / 337.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.773e-05/0.006899, allocations: 29.7 kB / 337.4 MB, free: 14.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.557e-05/0.006924, allocations: 53.08 kB / 337.5 MB, free: 14.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.53e-05/0.00698, allocations: 90.78 kB / 337.5 MB, free: 14.39 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.006981, allocations: 0 / 337.5 MB, free: 14.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 8.117e-05/0.007063, allocations: 125 kB / 337.7 MB, free: 14.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.007085, allocations: 33.69 kB / 337.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.00709, allocations: 0 / 337.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.856e-06/0.007099, allocations: 4 kB / 337.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.239e-05/0.007161, allocations: 4 kB / 337.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.074e-06/0.007163, allocations: 0 / 337.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.72e-05/0.00719, allocations: 15.98 kB / 337.7 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-06/0.007195, allocations: 0 / 337.7 MB, free: 14.19 MB / 314.7 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = true ) \"End value of step.y right after switching\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.y_end,y_end,y_start,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * 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 0.0001079/0.007303, allocations: 194.2 kB / 337.9 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.172e-05/0.007315, allocations: 8 kB / 337.9 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.598e-05/0.007331, allocations: 8.109 kB / 337.9 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.007333, allocations: 0 / 337.9 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/0.007334, allocations: 0 / 337.9 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.007337, allocations: 0 / 337.9 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.069e-05/0.007408, allocations: 117.4 kB / 338 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.007409, allocations: 0 / 338 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.344e-05/0.007422, allocations: 12 kB / 338 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-06/0.007423, allocations: 0 / 338 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-06/0.007429, allocations: 3.938 kB / 338.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.61e-07/0.007429, allocations: 0 / 338.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.51e-07/0.007429, allocations: 0 / 338.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001166/0.007546, allocations: 183.7 kB / 338.2 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.058e-05/0.007557, allocations: 3.953 kB / 338.2 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.007569, allocations: 4 kB / 338.2 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.866e-05/0.007587, allocations: 7.984 kB / 338.2 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.347e-05/0.007611, allocations: 0 / 338.2 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.007622, allocations: 12.03 kB / 338.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.183e-05/0.007654, allocations: 127.2 kB / 338.4 MB, free: 13.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007654, allocations: 0 / 338.4 MB, free: 13.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001503/0.007804, allocations: 23.94 kB / 338.4 MB, free: 13.42 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: 4 ($whenCondition1,$whenCondition2,y_start,y_end) * Number of discrete states: 4 ($whenCondition2,y_end,$whenCondition1,y_start) * 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.0003026/0.008106, allocations: 205 kB / 338.6 MB, free: 13.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001084/0.008215, allocations: 142.5 kB / 338.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-06/0.008216, allocations: 4 kB / 338.8 MB, free: 13.08 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.037e-05/0.008266, allocations: 116.7 kB / 338.9 MB, free: 12.95 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.875e-05/0.008365, allocations: 7.938 kB / 338.9 MB, free: 12.94 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002091/0.008574, allocations: 164.7 kB / 339 MB, free: 12.74 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.656e-05/0.008601, allocations: 59.34 kB / 339.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.097e-05/0.008612, allocations: 0 / 339.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.384e-05/0.008676, allocations: 86.19 kB / 339.2 MB, free: 12.58 MB / 314.7 MB Notification: Performance of SimCode: time 6.01e-07/0.008676, allocations: 4 kB / 339.2 MB, free: 12.57 MB / 314.7 MB Notification: Performance of Templates: time 0.002787/0.01146, allocations: 1.067 MB / 340.2 MB, free: 11.52 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile [Timeout 660] (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariables.sim & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariables -abortSlowSimulation -alarm=240 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.824979234021157]