Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariable.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.001302/0.001302, allocations: 75.73 kB / 20.97 MB, free: 3.574 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.00117/0.00117, allocations: 169 kB / 24.28 MB, free: 272 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 1.018/1.018, allocations: 177.1 MB / 204.6 MB, free: 5.625 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.004159/0.004159, allocations: 0.7998 MB / 261.9 MB, free: 12.33 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.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 331.4 MB, free: 19.24 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.182e-05/2.34e-05, allocations: 2.312 kB / 331.4 MB, free: 19.23 MB / 266.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001593/0.001616, allocations: 1.414 MB / 332.8 MB, free: 17.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007196/0.002336, allocations: 0.931 MB / 333.7 MB, free: 16.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.628e-05/0.002372, allocations: 0 / 333.7 MB, free: 16.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.5e-05/0.002397, allocations: 0 / 333.7 MB, free: 16.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002159/0.002613, allocations: 15.81 kB / 333.7 MB, free: 16.86 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/writeRealVariable.mo:2:1-14:22:writable] Warning: Pure function 'KeyWordIO.writeRealVariable' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0001534/0.002766, allocations: 35.89 kB / 333.8 MB, free: 16.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.632e-05/0.002833, allocations: 23.91 kB / 333.8 MB, free: 16.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.186e-05/0.002875, allocations: 0 / 333.8 MB, free: 16.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.392e-05/0.002929, allocations: 27.86 kB / 333.8 MB, free: 16.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.04e-05/0.003019, allocations: 4 kB / 333.8 MB, free: 16.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.003032, allocations: 0 / 333.8 MB, free: 16.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.242e-05/0.003104, allocations: 43.89 kB / 333.8 MB, free: 16.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.254e-05/0.003117, allocations: 0 / 333.8 MB, free: 16.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.361e-05/0.00314, allocations: 7.938 kB / 333.9 MB, free: 16.72 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.003267, allocations: 55.88 kB / 333.9 MB, free: 16.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.00327, allocations: 0 / 333.9 MB, free: 16.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.003271, allocations: 0 / 333.9 MB, free: 16.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.003278, allocations: 0 / 333.9 MB, free: 16.67 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002927/0.003571, allocations: 390.2 kB / 334.3 MB, free: 16.24 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.003606, allocations: 23.95 kB / 334.3 MB, free: 16.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.778e-05/0.003644, allocations: 4.891 kB / 334.3 MB, free: 16.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.152e-05/0.003726, allocations: 116.5 kB / 334.4 MB, free: 16.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.003736, allocations: 384 / 334.4 MB, free: 16.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.698e-06/0.003746, allocations: 4.375 kB / 334.4 MB, free: 16.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.771e-05/0.003833, allocations: 80.59 kB / 334.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.00384, allocations: 192 / 334.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.003848, allocations: 384 / 334.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.003855, allocations: 384 / 334.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.19e-05/0.003867, allocations: 3.938 kB / 334.5 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.944e-05/0.003957, allocations: 120.7 kB / 334.6 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.945e-05/0.003986, allocations: 31.05 kB / 334.7 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.484e-05/0.004001, allocations: 7.688 kB / 334.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.753e-06/0.004008, allocations: 4.062 kB / 334.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.762e-05/0.004095, allocations: 155.8 kB / 334.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.004097, allocations: 0 / 334.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001349/0.004231, allocations: 122.8 kB / 335 MB, free: 15.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.205e-05/0.004254, allocations: 81.11 kB / 335 MB, free: 15.33 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.073e-05/0.004304, allocations: 169.9 kB / 335.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.5e-06/0.00431, allocations: 29.83 kB / 335.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.85e-05/0.004328, allocations: 134.9 kB / 335.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.923e-05/0.004347, allocations: 7.938 kB / 335.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.993e-05/0.004367, allocations: 15.38 kB / 335.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.216e-05/0.00441, allocations: 0.4884 MB / 335.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.529e-05/0.004425, allocations: 25.7 kB / 335.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.97e-05/0.004445, allocations: 49.06 kB / 335.9 MB, free: 14.35 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.255e-05/0.004477, allocations: 70.78 kB / 336 MB, free: 14.26 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.004479, allocations: 64 / 336 MB, free: 14.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.752e-05/0.004536, allocations: 105 kB / 336.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.004557, allocations: 37.69 kB / 336.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.004562, allocations: 0 / 336.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.004573, allocations: 0 / 336.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.52e-05/0.004628, allocations: 4 kB / 336.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.004633, allocations: 3.938 kB / 336.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.75e-05/0.004651, allocations: 4 kB / 336.2 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.004657, allocations: 3.984 kB / 336.2 MB, free: 14.08 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 4.127e-05/0.004698, allocations: 194.2 kB / 336.4 MB, free: 13.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.255e-06/0.004706, allocations: 8.062 kB / 336.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.705e-05/0.004723, allocations: 3.625 kB / 336.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.004725, allocations: 3.938 kB / 336.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.004728, allocations: 0 / 336.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.004731, allocations: 3.938 kB / 336.4 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.942e-05/0.00478, allocations: 116.6 kB / 336.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.004781, allocations: 4 kB / 336.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.037e-05/0.004791, allocations: 0 / 336.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.32e-07/0.004792, allocations: 0 / 336.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.004798, allocations: 4 kB / 336.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-07/0.004798, allocations: 4 kB / 336.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.004799, allocations: 0 / 336.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.934e-05/0.004869, allocations: 139.7 kB / 336.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.846e-06/0.004877, allocations: 0 / 336.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.00489, allocations: 0 / 336.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.349e-05/0.004904, allocations: 7.984 kB / 336.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.582e-05/0.00494, allocations: 0 / 336.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.004943, allocations: 4 kB / 336.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.093e-05/0.004964, allocations: 135.1 kB / 336.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004964, allocations: 3.938 kB / 336.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001432/0.005107, allocations: 15.94 kB / 336.8 MB, free: 13.36 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: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * 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.0003367/0.005444, allocations: 197.5 kB / 337 MB, free: 13.19 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.795e-05/0.005542, allocations: 122.5 kB / 337.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.005544, allocations: 0 / 337.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.917e-05/0.005563, allocations: 88.8 kB / 337.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001155/0.005679, allocations: 8 kB / 337.2 MB, free: 12.92 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002307/0.005909, allocations: 158.3 kB / 337.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.814e-05/0.005927, allocations: 59.2 kB / 337.4 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.157e-05/0.005939, allocations: 4.125 kB / 337.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.617e-05/0.005955, allocations: 16.5 kB / 337.4 MB, free: 12.64 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.005956, allocations: 0 / 337.4 MB, free: 12.64 MB / 266.7 MB Notification: Performance of Templates: time 0.002435/0.008391, allocations: 0.7933 MB / 338.2 MB, free: 11.85 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.makefile [Timeout 660] (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariable.sim & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariable -abortSlowSimulation -alarm=240 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7599688209593296]