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.00143/0.00143, allocations: 79.73 kB / 20.75 MB, free: 3.738 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.001786/0.001786, allocations: 169.3 kB / 24.16 MB, free: 332 kB / 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.9625/0.9625, allocations: 177.1 MB / 204.6 MB, free: 5.488 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.004161/0.004161, allocations: 0.8082 MB / 261.9 MB, free: 12.15 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.392e-06/1.392e-06, allocations: 0 / 278.6 MB, free: 11.43 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.326e-05/2.466e-05, allocations: 10.19 kB / 278.6 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001766/0.001791, allocations: 1.463 MB / 280.1 MB, free: 9.945 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008784/0.002669, allocations: 0.9506 MB / 281 MB, free: 8.992 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.433e-05/0.002693, allocations: 0 / 281 MB, free: 8.992 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.263e-05/0.002716, allocations: 3.938 kB / 281 MB, free: 8.988 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001676/0.002884, allocations: 8 kB / 281 MB, free: 8.98 MB / 266.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.0001955/0.003079, allocations: 47.75 kB / 281.1 MB, free: 8.934 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.193e-05/0.003151, allocations: 27.86 kB / 281.1 MB, free: 8.906 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.103e-05/0.003182, allocations: 0 / 281.1 MB, free: 8.906 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.523e-05/0.003227, allocations: 15.98 kB / 281.1 MB, free: 8.891 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.79e-05/0.003285, allocations: 11.92 kB / 281.1 MB, free: 8.879 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.102e-05/0.003296, allocations: 3.984 kB / 281.1 MB, free: 8.875 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.003402, allocations: 43.91 kB / 281.2 MB, free: 8.832 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.143e-05/0.003413, allocations: 11.98 kB / 281.2 MB, free: 8.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.179e-05/0.003435, allocations: 11.94 kB / 281.2 MB, free: 8.809 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.003555, allocations: 63.8 kB / 281.3 MB, free: 8.746 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.003558, allocations: 0 / 281.3 MB, free: 8.746 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.003558, allocations: 0 / 281.3 MB, free: 8.746 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.003562, allocations: 0 / 281.3 MB, free: 8.746 MB / 266.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.0002665/0.003828, allocations: 274.5 kB / 281.5 MB, free: 8.445 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.824e-05/0.003857, allocations: 12.03 kB / 281.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.551e-05/0.003882, allocations: 4.938 kB / 281.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.796e-05/0.00397, allocations: 113.7 kB / 281.7 MB, free: 8.293 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.267e-06/0.003979, allocations: 4.375 kB / 281.7 MB, free: 8.289 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.541e-06/0.003985, allocations: 384 / 281.7 MB, free: 8.289 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.154e-05/0.004076, allocations: 88.64 kB / 281.7 MB, free: 8.188 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.004083, allocations: 192 / 281.7 MB, free: 8.188 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.144e-06/0.00409, allocations: 4.359 kB / 281.8 MB, free: 8.184 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.004095, allocations: 4.375 kB / 281.8 MB, free: 8.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.074e-05/0.004116, allocations: 37.58 kB / 281.8 MB, free: 8.137 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.771e-05/0.004184, allocations: 61.05 kB / 281.9 MB, free: 8.062 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.113e-05/0.004225, allocations: 52.31 kB / 281.9 MB, free: 7.996 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.892e-05/0.004244, allocations: 34.59 kB / 281.9 MB, free: 7.953 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.861e-06/0.00425, allocations: 4 kB / 281.9 MB, free: 7.949 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000102/0.004352, allocations: 174.2 kB / 282.1 MB, free: 7.742 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 7.51e-07/0.004352, allocations: 0 / 282.1 MB, free: 7.742 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001258/0.004478, allocations: 146.7 kB / 282.3 MB, free: 7.574 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.303e-05/0.004521, allocations: 136.5 kB / 282.4 MB, free: 7.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.209e-05/0.004573, allocations: 110.7 kB / 282.5 MB, free: 7.289 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.748e-06/0.004583, allocations: 25.7 kB / 282.5 MB, free: 7.258 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.115e-05/0.004604, allocations: 88.12 kB / 282.6 MB, free: 7.168 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.004624, allocations: 7.938 kB / 282.6 MB, free: 7.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.267e-05/0.004647, allocations: 13.72 kB / 282.6 MB, free: 7.141 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.136e-05/0.004718, allocations: 330.8 kB / 283 MB, free: 6.809 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.691e-05/0.004735, allocations: 33.73 kB / 283 MB, free: 6.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.34e-05/0.004759, allocations: 43.42 kB / 283 MB, free: 6.715 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.913e-05/0.004818, allocations: 89.03 kB / 283.1 MB, free: 6.609 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.004819, allocations: 0 / 283.1 MB, free: 6.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 7.384e-05/0.004893, allocations: 105 kB / 283.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.004919, allocations: 37.69 kB / 283.3 MB, free: 6.445 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.004923, allocations: 0 / 283.3 MB, free: 6.445 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.004934, allocations: 4 kB / 283.3 MB, free: 6.441 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.602e-05/0.00498, allocations: 8.062 kB / 283.3 MB, free: 6.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.194e-06/0.004982, allocations: 0 / 283.3 MB, free: 6.434 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.202e-05/0.005004, allocations: 4 kB / 283.3 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.00501, allocations: 3.938 kB / 283.3 MB, free: 6.426 MB / 266.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 9.558e-05/0.005106, allocations: 151.1 kB / 283.4 MB, free: 6.266 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.021e-05/0.005116, allocations: 8 kB / 283.4 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.56e-05/0.005132, allocations: 16.05 kB / 283.4 MB, free: 6.246 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.005133, allocations: 0 / 283.4 MB, free: 6.246 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.552e-06/0.005135, allocations: 0 / 283.4 MB, free: 6.246 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.005137, allocations: 7.938 kB / 283.5 MB, free: 6.238 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.454e-05/0.005192, allocations: 73.8 kB / 283.5 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.005193, allocations: 0 / 283.5 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.054e-05/0.005203, allocations: 4.25 kB / 283.5 MB, free: 6.145 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.005204, allocations: 0 / 283.5 MB, free: 6.145 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.005211, allocations: 7.984 kB / 283.5 MB, free: 6.137 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.31e-07/0.005212, allocations: 0 / 283.5 MB, free: 6.137 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.005213, allocations: 0 / 283.5 MB, free: 6.137 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.803e-05/0.005301, allocations: 148.5 kB / 283.7 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.606e-06/0.005309, allocations: 7.938 kB / 283.7 MB, free: 5.953 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.166e-05/0.005321, allocations: 0 / 283.7 MB, free: 5.953 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.668e-05/0.005338, allocations: 12.02 kB / 283.7 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.493e-05/0.005362, allocations: 3.984 kB / 283.7 MB, free: 5.938 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.005373, allocations: 4 kB / 283.7 MB, free: 5.934 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.234e-05/0.005385, allocations: 12.84 kB / 283.7 MB, free: 5.918 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005385, allocations: 0 / 283.7 MB, free: 5.918 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001257/0.005511, allocations: 24 kB / 283.7 MB, free: 5.895 MB / 266.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.0003316/0.005842, allocations: 209.1 kB / 283.9 MB, free: 5.727 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001051/0.005947, allocations: 139.7 kB / 284.1 MB, free: 5.562 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.00595, allocations: 0 / 284.1 MB, free: 5.562 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.474e-05/0.005995, allocations: 102 kB / 284.2 MB, free: 5.441 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.551e-05/0.006061, allocations: 16.12 kB / 284.2 MB, free: 5.426 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002137/0.006274, allocations: 166.2 kB / 284.4 MB, free: 5.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.439e-05/0.006299, allocations: 55.36 kB / 284.4 MB, free: 5.156 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.211e-05/0.006311, allocations: 3.984 kB / 284.4 MB, free: 5.152 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.278e-05/0.006373, allocations: 75.34 kB / 284.5 MB, free: 5.078 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.006374, allocations: 7.938 kB / 284.5 MB, free: 5.07 MB / 266.7 MB Notification: Performance of Templates: time 0.00238/0.008755, allocations: 0.9903 MB / 285.5 MB, free: 4.098 MB / 266.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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.512394967954606]