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.0009232/0.0009232, allocations: 78.66 kB / 20.68 MB, free: 3.824 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.0009613/0.0009613, allocations: 180.9 kB / 24.09 MB, free: 424 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.9957/0.9957, allocations: 177.1 MB / 204.5 MB, free: 5.535 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.004187/0.004187, allocations: 0.8055 MB / 261.9 MB, free: 12.13 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.552e-06/1.552e-06, allocations: 0 / 331.8 MB, free: 18.66 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.094e-05/2.249e-05, allocations: 4.562 kB / 331.8 MB, free: 18.66 MB / 266.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001479/0.001502, allocations: 1.419 MB / 333.2 MB, free: 17.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006997/0.002201, allocations: 0.9429 MB / 334.2 MB, free: 16.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.864e-05/0.00223, allocations: 0 / 334.2 MB, free: 16.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.259e-05/0.002253, allocations: 3.938 kB / 334.2 MB, free: 16.28 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.002424, allocations: 19.8 kB / 334.2 MB, free: 16.26 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.0001763/0.0026, allocations: 43.81 kB / 334.2 MB, free: 16.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.132e-05/0.002662, allocations: 27.92 kB / 334.3 MB, free: 16.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.798e-05/0.00269, allocations: 0 / 334.3 MB, free: 16.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.299e-05/0.002733, allocations: 15.92 kB / 334.3 MB, free: 16.17 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.436e-05/0.002787, allocations: 8 kB / 334.3 MB, free: 16.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.001e-05/0.002797, allocations: 4 kB / 334.3 MB, free: 16.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.963e-05/0.002877, allocations: 47.89 kB / 334.3 MB, free: 16.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.119e-05/0.002888, allocations: 7.922 kB / 334.3 MB, free: 16.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.822e-05/0.002906, allocations: 7.984 kB / 334.3 MB, free: 16.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.003018, allocations: 67.73 kB / 334.4 MB, free: 16.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.00302, allocations: 0 / 334.4 MB, free: 16.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.003021, allocations: 4 kB / 334.4 MB, free: 16.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.706e-06/0.003023, allocations: 0 / 334.4 MB, free: 16.03 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.0002504/0.003274, allocations: 398.2 kB / 334.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.003307, allocations: 8.031 kB / 334.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.928e-05/0.003337, allocations: 16.88 kB / 334.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.595e-05/0.003392, allocations: 108.6 kB / 334.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.003402, allocations: 384 / 334.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.154e-06/0.00341, allocations: 4.375 kB / 334.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.994e-05/0.0035, allocations: 84.59 kB / 335 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.003507, allocations: 4.188 kB / 335 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-06/0.003513, allocations: 384 / 335 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.003518, allocations: 384 / 335 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.56e-05/0.003534, allocations: 41.62 kB / 335.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.646e-05/0.00361, allocations: 101.2 kB / 335.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.352e-05/0.003644, allocations: 60.8 kB / 335.2 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.581e-05/0.00366, allocations: 41.42 kB / 335.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.79e-06/0.003665, allocations: 0 / 335.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.199e-05/0.003747, allocations: 179.8 kB / 335.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 8.81e-07/0.003748, allocations: 0 / 335.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001627/0.003911, allocations: 166.8 kB / 335.6 MB, free: 14.63 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.697e-05/0.003938, allocations: 128.5 kB / 335.7 MB, free: 14.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.012e-05/0.003978, allocations: 165.9 kB / 335.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.17e-06/0.003983, allocations: 29.7 kB / 335.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.441e-05/0.003998, allocations: 126.9 kB / 336 MB, free: 14.13 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/0.004017, allocations: 23.91 kB / 336.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.002e-05/0.004037, allocations: 27.31 kB / 336.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.711e-05/0.004074, allocations: 0.4883 MB / 336.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.123e-05/0.004085, allocations: 33.69 kB / 336.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.76e-05/0.004103, allocations: 49.08 kB / 336.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.185e-05/0.004144, allocations: 90.8 kB / 336.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.004146, allocations: 0 / 336.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 6.091e-05/0.004207, allocations: 117 kB / 336.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.004226, allocations: 37.69 kB / 336.9 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.00423, allocations: 4.062 kB / 336.9 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.00424, allocations: 0 / 336.9 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.491e-05/0.004285, allocations: 8 kB / 336.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.985e-06/0.004288, allocations: 4 kB / 336.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.186e-05/0.00431, allocations: 7.891 kB / 336.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-06/0.004314, allocations: 4 kB / 336.9 MB, free: 13.16 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 7.679e-05/0.004391, allocations: 198.2 kB / 337.1 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.627e-06/0.0044, allocations: 4 kB / 337.1 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.626e-05/0.004416, allocations: 12.12 kB / 337.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.004417, allocations: 4 kB / 337.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-06/0.004418, allocations: 0 / 337.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.004421, allocations: 0 / 337.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.04e-05/0.004461, allocations: 101.2 kB / 337.2 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.004463, allocations: 4.25 kB / 337.2 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.548e-06/0.004472, allocations: 4 kB / 337.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.004474, allocations: 0 / 337.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.00448, allocations: 7.984 kB / 337.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.71e-07/0.00448, allocations: 0 / 337.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.004481, allocations: 0 / 337.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.108e-05/0.004572, allocations: 191.7 kB / 337.4 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.897e-06/0.004581, allocations: 3.938 kB / 337.4 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.004592, allocations: 4 kB / 337.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.575e-05/0.004608, allocations: 4 kB / 337.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.739e-05/0.004635, allocations: 11.97 kB / 337.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.004644, allocations: 4 kB / 337.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.581e-05/0.00466, allocations: 123.5 kB / 337.6 MB, free: 12.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00466, allocations: 0 / 337.6 MB, free: 12.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001401/0.0048, allocations: 27.92 kB / 337.6 MB, free: 12.39 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.0002643/0.005064, allocations: 200.9 kB / 337.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.449e-05/0.005149, allocations: 150.5 kB / 338 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.71e-07/0.005149, allocations: 0 / 338 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.965e-05/0.005179, allocations: 108.7 kB / 338.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.91e-05/0.005278, allocations: 7.938 kB / 338.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001826/0.005461, allocations: 166.4 kB / 338.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.81e-05/0.005479, allocations: 63.2 kB / 338.3 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.548e-06/0.005488, allocations: 0 / 338.3 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.91e-05/0.005538, allocations: 90.17 kB / 338.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of SimCode: time 6.72e-07/0.005538, allocations: 4.125 kB / 338.4 MB, free: 11.53 MB / 266.7 MB Notification: Performance of Templates: time 0.00223/0.007768, allocations: 1.053 MB / 339.4 MB, free: 10.49 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 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.6656188699416816]