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.0009122/0.0009122, allocations: 79.73 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.0009169/0.0009169, 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.8606/0.8606, allocations: 177.1 MB / 204.6 MB, free: 5.48 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.006245/0.006245, allocations: 0.8039 MB / 261.9 MB, free: 12.14 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.593e-06/1.593e-06, allocations: 0 / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.551e-05/2.71e-05, allocations: 2.312 kB / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002718/0.002745, allocations: 1.416 MB / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.004098, allocations: 0.939 MB / 280.9 MB, free: 9.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.883e-05/0.004137, allocations: 0 / 280.9 MB, free: 9.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.57e-05/0.004163, allocations: 0 / 280.9 MB, free: 9.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002358/0.004399, allocations: 15.8 kB / 280.9 MB, free: 9.074 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.0002135/0.004612, allocations: 43.83 kB / 281 MB, free: 9.031 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.833e-05/0.004681, allocations: 19.92 kB / 281 MB, free: 9.012 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.825e-05/0.004719, allocations: 0 / 281 MB, free: 9.012 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.182e-05/0.004781, allocations: 19.91 kB / 281 MB, free: 8.992 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.08e-05/0.004871, allocations: 4 kB / 281 MB, free: 8.988 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.221e-05/0.004884, allocations: 4 kB / 281 MB, free: 8.984 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.61e-05/0.00498, allocations: 39.95 kB / 281.1 MB, free: 8.945 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.302e-05/0.004993, allocations: 4 kB / 281.1 MB, free: 8.941 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.017e-05/0.005013, allocations: 7.938 kB / 281.1 MB, free: 8.934 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.005158, allocations: 59.75 kB / 281.1 MB, free: 8.875 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.005162, allocations: 0 / 281.1 MB, free: 8.875 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.005165, allocations: 4 kB / 281.1 MB, free: 8.871 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.005168, allocations: 0 / 281.1 MB, free: 8.871 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.0003272/0.005496, allocations: 266.5 kB / 281.4 MB, free: 8.578 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.00553, allocations: 8.031 kB / 281.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.876e-05/0.005558, allocations: 4.938 kB / 281.4 MB, free: 8.566 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.879e-05/0.005647, allocations: 113.7 kB / 281.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.005657, allocations: 4.375 kB / 281.5 MB, free: 8.426 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.08e-05/0.005668, allocations: 384 / 281.5 MB, free: 8.426 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.005792, allocations: 76.66 kB / 281.6 MB, free: 8.336 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.0058, allocations: 8.125 kB / 281.6 MB, free: 8.328 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-06/0.005807, allocations: 384 / 281.6 MB, free: 8.328 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.005812, allocations: 384 / 281.6 MB, free: 8.328 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.319e-05/0.005825, allocations: 3.938 kB / 281.6 MB, free: 8.324 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.47e-05/0.00591, allocations: 57.05 kB / 281.7 MB, free: 8.254 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.126e-05/0.005951, allocations: 22.61 kB / 281.7 MB, free: 8.223 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.24e-05/0.005964, allocations: 4.859 kB / 281.7 MB, free: 8.215 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.661e-06/0.005969, allocations: 4 kB / 281.7 MB, free: 8.211 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001277/0.006097, allocations: 154.2 kB / 281.8 MB, free: 8.023 MB / 266.7 MB Notification: Performance of pre-optimization done (n=2): time 1.413e-06/0.006098, allocations: 0 / 281.8 MB, free: 8.023 MB / 266.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001308/0.006229, allocations: 118.8 kB / 282 MB, free: 7.883 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.496e-05/0.006264, allocations: 77.11 kB / 282 MB, free: 7.789 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.229e-05/0.006336, allocations: 110.7 kB / 282.1 MB, free: 7.668 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.006351, allocations: 29.7 kB / 282.2 MB, free: 7.633 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.597e-05/0.006377, allocations: 84.12 kB / 282.3 MB, free: 7.547 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.0064, allocations: 3.953 kB / 282.3 MB, free: 7.543 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.092e-05/0.006431, allocations: 21.83 kB / 282.3 MB, free: 7.516 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.654e-05/0.006517, allocations: 318.8 kB / 282.6 MB, free: 7.195 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.179e-05/0.006539, allocations: 29.7 kB / 282.6 MB, free: 7.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.962e-05/0.006569, allocations: 47.36 kB / 282.7 MB, free: 7.102 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.798e-05/0.006617, allocations: 73.11 kB / 282.7 MB, free: 7.012 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.006619, allocations: 0 / 282.7 MB, free: 7.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.279e-05/0.006702, allocations: 93.03 kB / 282.8 MB, free: 6.902 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.313e-05/0.006735, allocations: 33.7 kB / 282.9 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.00674, allocations: 4.125 kB / 282.9 MB, free: 6.859 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.006753, allocations: 3.938 kB / 282.9 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.812e-05/0.006811, allocations: 4 kB / 282.9 MB, free: 6.852 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.614e-06/0.006814, allocations: 0 / 282.9 MB, free: 6.852 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.612e-05/0.00684, allocations: 4 kB / 282.9 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.006847, allocations: 3.938 kB / 282.9 MB, free: 6.844 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 7.997e-05/0.006927, allocations: 139.5 kB / 283 MB, free: 6.691 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.545e-05/0.006942, allocations: 8 kB / 283 MB, free: 6.684 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.662e-05/0.006959, allocations: 3.625 kB / 283 MB, free: 6.684 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.006961, allocations: 0 / 283 MB, free: 6.684 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.006962, allocations: 4 kB / 283 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.006965, allocations: 0 / 283 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.774e-05/0.007043, allocations: 77.81 kB / 283.1 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.007045, allocations: 0 / 283.1 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.538e-05/0.00707, allocations: 0 / 283.1 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.007073, allocations: 3.938 kB / 283.1 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.992e-06/0.007079, allocations: 4 kB / 283.1 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.00708, allocations: 0 / 283.1 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.007083, allocations: 3.984 kB / 283.1 MB, free: 6.574 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001021/0.007185, allocations: 116.5 kB / 283.2 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.803e-05/0.007203, allocations: 8.016 kB / 283.2 MB, free: 6.422 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.007216, allocations: 0 / 283.2 MB, free: 6.422 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.948e-05/0.007246, allocations: 8 kB / 283.2 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.996e-05/0.007276, allocations: 0 / 283.2 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.007282, allocations: 4 kB / 283.2 MB, free: 6.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.986e-05/0.007302, allocations: 12.84 kB / 283.3 MB, free: 6.395 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.007302, allocations: 0 / 283.3 MB, free: 6.395 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002003/0.007502, allocations: 15.94 kB / 283.3 MB, free: 6.379 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.0004855/0.007988, allocations: 210.4 kB / 283.5 MB, free: 6.215 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001146/0.008102, allocations: 119.6 kB / 283.6 MB, free: 6.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.008106, allocations: 8.062 kB / 283.6 MB, free: 6.062 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.462e-05/0.008161, allocations: 89.95 kB / 283.7 MB, free: 5.953 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.277e-05/0.008244, allocations: 15.88 kB / 283.7 MB, free: 5.938 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002659/0.008509, allocations: 134.3 kB / 283.8 MB, free: 5.773 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.222e-05/0.008542, allocations: 55.36 kB / 283.9 MB, free: 5.699 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.616e-05/0.008558, allocations: 0 / 283.9 MB, free: 5.699 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.272e-05/0.008621, allocations: 67.34 kB / 284 MB, free: 5.633 MB / 266.7 MB Notification: Performance of SimCode: time 1.012e-06/0.008622, allocations: 3.938 kB / 284 MB, free: 5.629 MB / 266.7 MB Notification: Performance of Templates: time 0.0033/0.01192, allocations: 0.813 MB / 284.8 MB, free: 4.828 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.499299970921129]