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.0008529/0.0008529, allocations: 80.92 kB / 20.75 MB, free: 3.742 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.0009174/0.0009174, allocations: 169 kB / 24.17 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.8864/0.8864, allocations: 177.2 MB / 204.6 MB, free: 5.477 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.003858/0.003858, allocations: 0.8029 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.142e-06/1.142e-06, allocations: 0 / 278.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.037e-05/1.151e-05, allocations: 4.703 kB / 278.6 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001448/0.001459, allocations: 1.428 MB / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007958/0.002255, allocations: 0.9506 MB / 280.9 MB, free: 9.078 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.307e-05/0.002278, allocations: 0 / 280.9 MB, free: 9.078 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.201e-05/0.0023, allocations: 0 / 280.9 MB, free: 9.078 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.002474, allocations: 19.84 kB / 280.9 MB, free: 9.059 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.0001795/0.002654, allocations: 43.83 kB / 281 MB, free: 9.016 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.108e-05/0.002715, allocations: 23.92 kB / 281 MB, free: 8.992 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.874e-05/0.002743, allocations: 7.984 kB / 281 MB, free: 8.984 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.035e-05/0.002784, allocations: 15.92 kB / 281 MB, free: 8.969 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.936e-05/0.002833, allocations: 4 kB / 281 MB, free: 8.965 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.002844, allocations: 4 kB / 281 MB, free: 8.961 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.028e-05/0.002924, allocations: 55.77 kB / 281.1 MB, free: 8.906 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.085e-05/0.002935, allocations: 0 / 281.1 MB, free: 8.906 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.092e-05/0.002956, allocations: 11.98 kB / 281.1 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000106/0.003062, allocations: 63.8 kB / 281.2 MB, free: 8.832 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.003064, allocations: 4 kB / 281.2 MB, free: 8.828 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.003064, allocations: 0 / 281.2 MB, free: 8.828 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.515e-06/0.003067, allocations: 0 / 281.2 MB, free: 8.828 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.0002472/0.003314, allocations: 274.5 kB / 281.4 MB, free: 8.527 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.614e-05/0.00334, allocations: 8.031 kB / 281.5 MB, free: 8.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.294e-05/0.003363, allocations: 8.922 kB / 281.5 MB, free: 8.512 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.214e-05/0.003425, allocations: 109.7 kB / 281.6 MB, free: 8.379 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/0.003434, allocations: 384 / 281.6 MB, free: 8.379 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.558e-06/0.003443, allocations: 4.375 kB / 281.6 MB, free: 8.375 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.754e-05/0.003531, allocations: 88.58 kB / 281.7 MB, free: 8.273 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.003537, allocations: 192 / 281.7 MB, free: 8.273 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.34e-06/0.003542, allocations: 384 / 281.7 MB, free: 8.273 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.003547, allocations: 4.375 kB / 281.7 MB, free: 8.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.198e-05/0.003569, allocations: 41.62 kB / 281.7 MB, free: 8.223 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.191e-05/0.003631, allocations: 61.05 kB / 281.8 MB, free: 8.148 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.783e-05/0.003669, allocations: 44.28 kB / 281.8 MB, free: 8.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.031e-05/0.003689, allocations: 46.61 kB / 281.9 MB, free: 8.035 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.041e-06/0.003695, allocations: 3.938 kB / 281.9 MB, free: 8.031 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.821e-05/0.003783, allocations: 166.2 kB / 282 MB, free: 7.832 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 6.91e-07/0.003784, allocations: 0 / 282 MB, free: 7.832 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001192/0.003903, allocations: 146.8 kB / 282.2 MB, free: 7.664 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.003952, allocations: 136.5 kB / 282.3 MB, free: 7.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.036e-05/0.004002, allocations: 114.6 kB / 282.4 MB, free: 7.375 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.158e-06/0.004011, allocations: 33.73 kB / 282.4 MB, free: 7.336 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.898e-05/0.00403, allocations: 84.12 kB / 282.5 MB, free: 7.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.004049, allocations: 7.953 kB / 282.5 MB, free: 7.242 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.633e-05/0.004075, allocations: 17.7 kB / 282.5 MB, free: 7.219 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.632e-05/0.004142, allocations: 318.8 kB / 282.9 MB, free: 6.898 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.569e-05/0.004157, allocations: 33.7 kB / 282.9 MB, free: 6.859 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.204e-05/0.004179, allocations: 47.41 kB / 282.9 MB, free: 6.801 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.361e-05/0.004233, allocations: 89.12 kB / 283 MB, free: 6.695 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.004235, allocations: 0 / 283 MB, free: 6.695 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 6.445e-05/0.004299, allocations: 113 kB / 283.1 MB, free: 6.566 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.004321, allocations: 37.7 kB / 283.2 MB, free: 6.523 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.004325, allocations: 0 / 283.2 MB, free: 6.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.307e-06/0.004334, allocations: 0 / 283.2 MB, free: 6.523 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.332e-05/0.004378, allocations: 4 kB / 283.2 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.376e-06/0.004381, allocations: 3.984 kB / 283.2 MB, free: 6.516 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.38e-05/0.004405, allocations: 4 kB / 283.2 MB, free: 6.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.712e-06/0.004412, allocations: 11.88 kB / 283.2 MB, free: 6.5 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 8.177e-05/0.004493, allocations: 139.5 kB / 283.3 MB, free: 6.348 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-06/0.004502, allocations: 12.06 kB / 283.3 MB, free: 6.336 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.292e-05/0.004515, allocations: 8.125 kB / 283.4 MB, free: 6.332 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.004516, allocations: 0 / 283.4 MB, free: 6.332 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.004518, allocations: 4 kB / 283.4 MB, free: 6.328 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.00452, allocations: 0 / 283.4 MB, free: 6.328 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.107e-05/0.004571, allocations: 73.78 kB / 283.4 MB, free: 6.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-07/0.004572, allocations: 0 / 283.4 MB, free: 6.238 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.707e-06/0.00458, allocations: 4 kB / 283.4 MB, free: 6.234 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.42e-07/0.004581, allocations: 0 / 283.4 MB, free: 6.234 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.004587, allocations: 4 kB / 283.4 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.3e-07/0.004588, allocations: 0 / 283.4 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.61e-07/0.004588, allocations: 7.938 kB / 283.4 MB, free: 6.223 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.951e-05/0.004668, allocations: 156.6 kB / 283.6 MB, free: 6.039 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.235e-06/0.004676, allocations: 7.938 kB / 283.6 MB, free: 6.031 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.004689, allocations: 4 kB / 283.6 MB, free: 6.027 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.389e-05/0.004703, allocations: 4 kB / 283.6 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.399e-05/0.004727, allocations: 7.984 kB / 283.6 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.004735, allocations: 0 / 283.6 MB, free: 6.016 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.138e-05/0.004746, allocations: 12.86 kB / 283.6 MB, free: 6 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.004746, allocations: 0 / 283.6 MB, free: 6 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001132/0.004859, allocations: 23.98 kB / 283.7 MB, free: 5.977 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.0002836/0.005143, allocations: 200.2 kB / 283.9 MB, free: 5.82 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.46e-05/0.005238, allocations: 151.6 kB / 284 MB, free: 5.645 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.005239, allocations: 3.938 kB / 284 MB, free: 5.641 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.168e-05/0.005281, allocations: 102 kB / 284.1 MB, free: 5.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.461e-05/0.005336, allocations: 7.938 kB / 284.1 MB, free: 5.512 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001932/0.005529, allocations: 166.3 kB / 284.3 MB, free: 5.316 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.423e-05/0.005553, allocations: 55.34 kB / 284.3 MB, free: 5.242 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.104e-05/0.005564, allocations: 4 kB / 284.3 MB, free: 5.238 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.615e-05/0.00562, allocations: 71.55 kB / 284.4 MB, free: 5.168 MB / 266.7 MB Notification: Performance of SimCode: time 3.2e-07/0.005621, allocations: 0 / 284.4 MB, free: 5.168 MB / 266.7 MB Notification: Performance of Templates: time 0.002396/0.008016, allocations: 0.9912 MB / 285.4 MB, free: 4.188 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.3923054239712656]