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.0008999/0.0008999, allocations: 77.88 kB / 20.68 MB, free: 3.809 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.0009396/0.0009396, allocations: 181 kB / 24.09 MB, free: 412 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.9535/0.9535, allocations: 177.1 MB / 204.5 MB, free: 5.496 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.004086/0.004086, allocations: 0.8032 MB / 261.9 MB, free: 12.11 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.844e-06/1.844e-06, allocations: 4 kB / 331.8 MB, free: 3.715 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.204e-05/1.389e-05, allocations: 2.312 kB / 331.8 MB, free: 3.711 MB / 298.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001745/0.001759, allocations: 1.408 MB / 333.2 MB, free: 2.289 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008055/0.002565, allocations: 0.9312 MB / 334.1 MB, free: 1.355 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.241e-05/0.002597, allocations: 0 / 334.1 MB, free: 1.355 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.201e-05/0.002619, allocations: 0 / 334.1 MB, free: 1.355 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002074/0.002827, allocations: 15.86 kB / 334.2 MB, free: 1.34 MB / 298.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.0001445/0.002971, allocations: 35.89 kB / 334.2 MB, free: 1.305 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.187e-05/0.003033, allocations: 23.92 kB / 334.2 MB, free: 1.281 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.134e-05/0.003064, allocations: 7.922 kB / 334.2 MB, free: 1.273 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.09e-05/0.003115, allocations: 15.98 kB / 334.2 MB, free: 1.258 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.451e-05/0.00318, allocations: 4 kB / 334.2 MB, free: 1.254 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.00319, allocations: 0 / 334.2 MB, free: 1.254 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.075e-05/0.00326, allocations: 47.83 kB / 334.3 MB, free: 1.207 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.148e-05/0.003272, allocations: 3.938 kB / 334.3 MB, free: 1.203 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.574e-05/0.003288, allocations: 4 kB / 334.3 MB, free: 1.199 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001058/0.003393, allocations: 55.81 kB / 334.3 MB, free: 1.145 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.003396, allocations: 4 kB / 334.4 MB, free: 1.141 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.003397, allocations: 0 / 334.4 MB, free: 1.141 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.945e-06/0.0034, allocations: 4 kB / 334.4 MB, free: 1.137 MB / 298.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.000292/0.003692, allocations: 394.2 kB / 334.7 MB, free: 0.707 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.003725, allocations: 12.03 kB / 334.8 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.15e-05/0.003747, allocations: 4.891 kB / 334.8 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.783e-05/0.003814, allocations: 116.6 kB / 334.9 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.083e-06/0.003821, allocations: 384 / 334.9 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.092e-06/0.003828, allocations: 384 / 334.9 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.706e-05/0.003905, allocations: 80.59 kB / 335 MB, free: 468 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-06/0.003911, allocations: 4.188 kB / 335 MB, free: 464 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.739e-06/0.003915, allocations: 384 / 335 MB, free: 464 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.003919, allocations: 4.375 kB / 335 MB, free: 460 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.657e-06/0.003928, allocations: 3.938 kB / 335 MB, free: 456 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.64e-05/0.004014, allocations: 93.27 kB / 335.1 MB, free: 336 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.798e-05/0.004042, allocations: 27.09 kB / 335.1 MB, free: 296 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.124e-05/0.004054, allocations: 7.688 kB / 335.1 MB, free: 284 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.232e-06/0.00406, allocations: 3.984 kB / 335.1 MB, free: 280 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001006/0.00416, allocations: 167.9 kB / 335.3 MB, free: 72 kB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.004161, allocations: 0 / 335.3 MB, free: 72 kB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001308/0.004292, allocations: 119.1 kB / 335.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.727e-05/0.00432, allocations: 81.11 kB / 335.5 MB, free: 15.83 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.385e-05/0.004383, allocations: 165.9 kB / 335.6 MB, free: 15.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.004394, allocations: 29.7 kB / 335.6 MB, free: 15.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.239e-05/0.004427, allocations: 134.8 kB / 335.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.748e-05/0.004444, allocations: 3.953 kB / 335.8 MB, free: 15.47 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.339e-05/0.004467, allocations: 23.36 kB / 335.8 MB, free: 15.44 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.004576, allocations: 499.9 kB / 336.3 MB, free: 14.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.598e-05/0.004592, allocations: 29.64 kB / 336.3 MB, free: 14.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.215e-05/0.004614, allocations: 45.08 kB / 336.4 MB, free: 14.85 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.686e-05/0.004651, allocations: 82.83 kB / 336.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.004653, allocations: 4 kB / 336.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.392e-05/0.004707, allocations: 89.05 kB / 336.5 MB, free: 14.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.004727, allocations: 33.7 kB / 336.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-06/0.00473, allocations: 0 / 336.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.856e-06/0.004739, allocations: 0 / 336.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.696e-05/0.004776, allocations: 7.984 kB / 336.6 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.194e-06/0.004778, allocations: 0 / 336.6 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.55e-05/0.004794, allocations: 7.938 kB / 336.6 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.847e-06/0.004798, allocations: 4.062 kB / 336.6 MB, free: 14.58 MB / 314.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 6.241e-05/0.00486, allocations: 190.3 kB / 336.8 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.264e-05/0.004873, allocations: 4 kB / 336.8 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.752e-05/0.00489, allocations: 7.609 kB / 336.8 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.004892, allocations: 0 / 336.8 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.004893, allocations: 0 / 336.8 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.004896, allocations: 3.938 kB / 336.8 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.722e-05/0.004953, allocations: 97.25 kB / 336.9 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.004954, allocations: 3.938 kB / 336.9 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.227e-06/0.004964, allocations: 7.984 kB / 336.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.02e-07/0.004964, allocations: 4 kB / 336.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.456e-06/0.004968, allocations: 0 / 336.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.004969, allocations: 4 kB / 336.9 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.00497, allocations: 0 / 336.9 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.556e-05/0.005046, allocations: 135.7 kB / 337 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.983e-06/0.005053, allocations: 4 kB / 337 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.496e-06/0.005061, allocations: 0 / 337 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.422e-05/0.005075, allocations: 8 kB / 337 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.337e-05/0.005099, allocations: 0 / 337 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.005103, allocations: 8 kB / 337.1 MB, free: 14.04 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.186e-05/0.005135, allocations: 131.2 kB / 337.2 MB, free: 13.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005135, allocations: 3.938 kB / 337.2 MB, free: 13.9 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001286/0.005264, allocations: 15.94 kB / 337.2 MB, free: 13.89 MB / 314.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.000255/0.005519, allocations: 203.5 kB / 337.4 MB, free: 13.72 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.592e-05/0.005605, allocations: 122.4 kB / 337.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.005606, allocations: 0 / 337.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.055e-05/0.005637, allocations: 92.78 kB / 337.6 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.45e-05/0.005731, allocations: 4 kB / 337.6 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000185/0.005916, allocations: 144.7 kB / 337.8 MB, free: 13.28 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.493e-05/0.005941, allocations: 63.3 kB / 337.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.946e-06/0.00595, allocations: 0 / 337.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.657e-05/0.005997, allocations: 82.19 kB / 337.9 MB, free: 13.11 MB / 314.7 MB Notification: Performance of SimCode: time 4.31e-07/0.005997, allocations: 0 / 337.9 MB, free: 13.11 MB / 314.7 MB Notification: Performance of Templates: time 0.002033/0.00803, allocations: 0.8688 MB / 338.8 MB, free: 12.25 MB / 314.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.6262606428936124]