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.001348/0.001348, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.001553/0.001553, allocations: 157.7 kB / 22.75 MB, free: 1.684 MB / 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.472/1.472, allocations: 177.2 MB / 203.1 MB, free: 5.594 MB / 186.7 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.007925/0.007925, allocations: 0.7984 MB / 260.4 MB, free: 12.29 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.362e-06/1.362e-06, allocations: 0 / 329.8 MB, free: 19.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.696e-05/2.832e-05, allocations: 6.25 kB / 329.8 MB, free: 19.28 MB / 266.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001969/0.001997, allocations: 1.397 MB / 331.2 MB, free: 17.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009257/0.002923, allocations: 0.9117 MB / 332.1 MB, free: 16.96 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.256e-05/0.002956, allocations: 0 / 332.1 MB, free: 16.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.307e-05/0.002979, allocations: 0 / 332.1 MB, free: 16.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002063/0.003185, allocations: 11.88 kB / 332.1 MB, free: 16.95 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.0001655/0.00335, allocations: 43.81 kB / 332.2 MB, free: 16.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 5.733e-05/0.003408, allocations: 19.92 kB / 332.2 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.575e-05/0.003444, allocations: 0 / 332.2 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.835e-05/0.003492, allocations: 19.94 kB / 332.2 MB, free: 16.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.109e-05/0.003553, allocations: 7.984 kB / 332.2 MB, free: 16.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.003565, allocations: 0 / 332.2 MB, free: 16.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.755e-05/0.003643, allocations: 39.91 kB / 332.3 MB, free: 16.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.209e-05/0.003655, allocations: 0 / 332.3 MB, free: 16.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.003685, allocations: 15.92 kB / 332.3 MB, free: 16.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001361/0.003821, allocations: 59.8 kB / 332.3 MB, free: 16.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.003823, allocations: 0 / 332.3 MB, free: 16.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.003823, allocations: 0 / 332.3 MB, free: 16.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.003828, allocations: 0 / 332.3 MB, free: 16.75 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.0003513/0.004179, allocations: 295.9 kB / 332.6 MB, free: 16.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.004218, allocations: 12.03 kB / 332.6 MB, free: 16.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.263e-05/0.00426, allocations: 4.875 kB / 332.6 MB, free: 16.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.111e-05/0.004352, allocations: 113.8 kB / 332.7 MB, free: 16.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.004364, allocations: 384 / 332.7 MB, free: 16.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.004376, allocations: 4.375 kB / 332.7 MB, free: 16.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.004488, allocations: 59.95 kB / 332.8 MB, free: 16.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.004497, allocations: 192 / 332.8 MB, free: 16.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.004508, allocations: 4.375 kB / 332.8 MB, free: 16.19 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.004512, allocations: 384 / 332.8 MB, free: 16.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.744e-05/0.004569, allocations: 23.86 kB / 332.8 MB, free: 16.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001075/0.004677, allocations: 101.4 kB / 332.9 MB, free: 16.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.068e-05/0.004737, allocations: 30.55 kB / 333 MB, free: 16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.89e-05/0.004776, allocations: 8.922 kB / 333 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.304e-05/0.004789, allocations: 0 / 333 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001942/0.004984, allocations: 162.2 kB / 333.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.004985, allocations: 0 / 333.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002417/0.005226, allocations: 146.7 kB / 333.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.939e-05/0.005256, allocations: 81.11 kB / 333.4 MB, free: 15.53 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.989e-05/0.005316, allocations: 109.8 kB / 333.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.117e-06/0.005325, allocations: 25.7 kB / 333.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.233e-05/0.005347, allocations: 92.14 kB / 333.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.394e-05/0.005371, allocations: 3.938 kB / 333.6 MB, free: 15.28 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.534e-05/0.005396, allocations: 13.72 kB / 333.6 MB, free: 15.26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.594e-05/0.005442, allocations: 310.8 kB / 333.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.378e-05/0.005486, allocations: 37.69 kB / 333.9 MB, free: 14.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.289e-05/0.005529, allocations: 51.53 kB / 334 MB, free: 14.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.581e-05/0.005605, allocations: 85.05 kB / 334.1 MB, free: 14.74 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.005606, allocations: 0 / 334.1 MB, free: 14.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001124/0.005719, allocations: 109 kB / 334.2 MB, free: 14.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.005743, allocations: 33.7 kB / 334.2 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.005747, allocations: 0 / 334.2 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.005765, allocations: 0 / 334.2 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.082e-05/0.005836, allocations: 12.12 kB / 334.2 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.005842, allocations: 7.922 kB / 334.2 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.068e-05/0.005873, allocations: 4 kB / 334.2 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.66e-06/0.005879, allocations: 0 / 334.2 MB, free: 14.55 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 5.694e-05/0.005936, allocations: 135.5 kB / 334.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.005951, allocations: 11.94 kB / 334.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.693e-05/0.005968, allocations: 7.609 kB / 334.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.005969, allocations: 0 / 334.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.005974, allocations: 0 / 334.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.005977, allocations: 3.938 kB / 334.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.469e-05/0.006031, allocations: 105.3 kB / 334.5 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.006032, allocations: 4 kB / 334.5 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.518e-05/0.006057, allocations: 7.984 kB / 334.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.006059, allocations: 0 / 334.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.006065, allocations: 0 / 334.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.006066, allocations: 0 / 334.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.006067, allocations: 0 / 334.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001367/0.006204, allocations: 144.3 kB / 334.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.318e-06/0.006213, allocations: 0 / 334.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.006226, allocations: 0 / 334.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.072e-05/0.006257, allocations: 8.031 kB / 334.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.006299, allocations: 0 / 334.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/0.006306, allocations: 11.98 kB / 334.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.767e-05/0.006334, allocations: 87.2 kB / 334.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006334, allocations: 0 / 334.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002216/0.006555, allocations: 16 kB / 334.8 MB, free: 13.95 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.0004448/0.007, allocations: 190.8 kB / 334.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001548/0.007155, allocations: 130.7 kB / 335.1 MB, free: 13.63 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.007157, allocations: 0 / 335.1 MB, free: 13.63 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.245e-05/0.00721, allocations: 93.22 kB / 335.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001513/0.007361, allocations: 8 kB / 335.2 MB, free: 13.51 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002429/0.007604, allocations: 140.1 kB / 335.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.77e-05/0.007641, allocations: 59.34 kB / 335.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.94e-05/0.007661, allocations: 7.938 kB / 335.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.874e-05/0.00768, allocations: 8.5 kB / 335.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.00768, allocations: 0 / 335.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of Templates: time 0.003248/0.01093, allocations: 0.7951 MB / 336.2 MB, free: 12.46 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=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.277756285970099]