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.001234/0.001234, allocations: 79.97 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001374/0.001374, allocations: 165.6 kB / 22.46 MB, free: 5.355 MB / 14.72 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 1.406/1.406, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] 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.006719/0.006719, allocations: 0.8029 MB / 260 MB, free: 15.91 MB / 254.1 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.042e-06/1.042e-06, allocations: 0 / 382.8 MB, free: 3.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.663e-05/1.767e-05, allocations: 2.281 kB / 382.8 MB, free: 3.777 MB / 302.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002237/0.002254, allocations: 1.399 MB / 384.2 MB, free: 2.363 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.003469, allocations: 0.9076 MB / 385.1 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.498e-05/0.003494, allocations: 0 / 385.1 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.66e-05/0.00352, allocations: 7.875 kB / 385.1 MB, free: 1.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.003704, allocations: 8 kB / 385.1 MB, free: 1.438 MB / 302.1 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.0002446/0.003948, allocations: 51.7 kB / 385.1 MB, free: 1.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.292e-05/0.004021, allocations: 23.91 kB / 385.2 MB, free: 1.363 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.1e-05/0.004052, allocations: 4 kB / 385.2 MB, free: 1.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.727e-05/0.0041, allocations: 19.92 kB / 385.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.487e-05/0.004155, allocations: 7.984 kB / 385.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.173e-05/0.004166, allocations: 0 / 385.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.004278, allocations: 47.89 kB / 385.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.354e-05/0.004292, allocations: 4 kB / 385.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.729e-05/0.004319, allocations: 8 kB / 385.2 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.004482, allocations: 71.72 kB / 385.3 MB, free: 1.203 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.004483, allocations: 0 / 385.3 MB, free: 1.203 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.61e-07/0.004484, allocations: 0 / 385.3 MB, free: 1.203 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.076e-06/0.004487, allocations: 3.938 kB / 385.3 MB, free: 1.199 MB / 302.1 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.0003978/0.004885, allocations: 299.9 kB / 385.6 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.004915, allocations: 12.03 kB / 385.6 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.688e-05/0.004952, allocations: 8.891 kB / 385.6 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.005071, allocations: 117.7 kB / 385.7 MB, free: 0.707 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.005085, allocations: 4.375 kB / 385.8 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.987e-06/0.005094, allocations: 384 / 385.8 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000145/0.005239, allocations: 67.95 kB / 385.8 MB, free: 0.625 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.005247, allocations: 192 / 385.8 MB, free: 0.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.005255, allocations: 384 / 385.8 MB, free: 0.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.005262, allocations: 4.375 kB / 385.8 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.481e-05/0.005356, allocations: 49.62 kB / 385.9 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001377/0.005494, allocations: 113.3 kB / 386 MB, free: 436 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001003/0.005594, allocations: 64.19 kB / 386 MB, free: 356 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.575e-05/0.00566, allocations: 42.62 kB / 386.1 MB, free: 304 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-06/0.00567, allocations: 0 / 386.1 MB, free: 304 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002012/0.005871, allocations: 170.2 kB / 386.3 MB, free: 96 kB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.193e-06/0.005872, allocations: 0 / 386.3 MB, free: 96 kB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003612/0.006233, allocations: 186.7 kB / 386.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.368e-05/0.006317, allocations: 132.5 kB / 386.6 MB, free: 15.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.386e-05/0.006401, allocations: 113.8 kB / 386.7 MB, free: 15.61 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.006418, allocations: 25.7 kB / 386.7 MB, free: 15.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.392e-05/0.006462, allocations: 84.14 kB / 386.8 MB, free: 15.49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.192e-05/0.006494, allocations: 23.81 kB / 386.8 MB, free: 15.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.718e-05/0.006531, allocations: 21.72 kB / 386.8 MB, free: 15.44 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.006658, allocations: 314.8 kB / 387.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.782e-05/0.006726, allocations: 37.69 kB / 387.2 MB, free: 15.08 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.778e-05/0.006794, allocations: 55.41 kB / 387.2 MB, free: 15.01 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.006954, allocations: 109.1 kB / 387.3 MB, free: 14.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.006958, allocations: 3.984 kB / 387.3 MB, free: 14.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002061/0.007164, allocations: 125 kB / 387.5 MB, free: 14.74 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.738e-05/0.007201, allocations: 37.69 kB / 387.5 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.007205, allocations: 0 / 387.5 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.007216, allocations: 0 / 387.5 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.899e-05/0.007275, allocations: 7.938 kB / 387.5 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/0.007283, allocations: 7.938 kB / 387.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.394e-05/0.007327, allocations: 12.05 kB / 387.5 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.007333, allocations: 0 / 387.5 MB, free: 14.67 MB / 318.1 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.0001469/0.00748, allocations: 150.7 kB / 387.7 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.511e-05/0.007495, allocations: 4 kB / 387.7 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.715e-05/0.007512, allocations: 8.125 kB / 387.7 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-06/0.007513, allocations: 0 / 387.7 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.007516, allocations: 3.938 kB / 387.7 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.007522, allocations: 3.938 kB / 387.7 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/0.007622, allocations: 109.3 kB / 387.8 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.007623, allocations: 4 kB / 387.8 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.757e-05/0.007651, allocations: 4 kB / 387.8 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.007652, allocations: 0 / 387.8 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.007664, allocations: 4.25 kB / 387.8 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.007668, allocations: 11.92 kB / 387.8 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.007669, allocations: 0 / 387.8 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/0.007928, allocations: 180.3 kB / 388 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.284e-05/0.007941, allocations: 7.938 kB / 388 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.00796, allocations: 4 kB / 388 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.596e-05/0.007996, allocations: 4 kB / 388 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.368e-05/0.008029, allocations: 8.031 kB / 388 MB, free: 14.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.008044, allocations: 4 kB / 388 MB, free: 14.1 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.776e-05/0.008101, allocations: 95.2 kB / 388.1 MB, free: 14 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.008102, allocations: 0 / 388.1 MB, free: 14 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002169/0.008318, allocations: 19.94 kB / 388.1 MB, free: 13.98 MB / 318.1 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.0004148/0.008733, allocations: 203.5 kB / 388.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002307/0.008964, allocations: 150.7 kB / 388.5 MB, free: 13.64 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.008967, allocations: 4 kB / 388.5 MB, free: 13.64 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.009081, allocations: 105.1 kB / 388.6 MB, free: 13.52 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.009216, allocations: 12.19 kB / 388.6 MB, free: 13.51 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003004/0.009517, allocations: 150.5 kB / 388.7 MB, free: 13.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.61e-05/0.009573, allocations: 63.34 kB / 388.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.531e-05/0.009588, allocations: 3.984 kB / 388.8 MB, free: 13.24 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.829e-05/0.009606, allocations: 12.5 kB / 388.8 MB, free: 13.23 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.009607, allocations: 0 / 388.8 MB, free: 13.23 MB / 318.1 MB Notification: Performance of Templates: time 0.003655/0.01326, allocations: 0.9666 MB / 389.8 MB, free: 12.28 MB / 318.1 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=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 3.901102315634489] Failed to read output from testmodel.py, exit status != 0: 0.020280074328184128 0.034165993 0.026837036 Calling exit ...