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.001782/0.001782, allocations: 81.55 kB / 19.76 MB, free: 2.027 MB / 14.72 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.002231/0.002231, allocations: 157.8 kB / 23.01 MB, free: 4.945 MB / 14.72 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.489/1.489, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.009954/0.009954, allocations: 0.7922 MB / 260.6 MB, free: 15.87 MB / 254.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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: KeyWordIO requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002706/0.002706, allocations: 67.91 kB / 383.3 MB, free: 5.008 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.0/writeLine.mo:2:1-61:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.109, allocations: 53.55 MB / 436.8 MB, free: 15.36 MB / 414.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002746/0.1118, allocations: 1.387 MB / 438.2 MB, free: 13.96 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.1132, allocations: 0.8881 MB / 439.1 MB, free: 13.07 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.817e-05/0.1133, allocations: 0 / 439.1 MB, free: 13.07 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.585e-05/0.1133, allocations: 3.938 kB / 439.1 MB, free: 13.07 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002131/0.1135, allocations: 7.922 kB / 439.1 MB, free: 13.06 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.0002127/0.1137, allocations: 43.89 kB / 439.2 MB, free: 13.02 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 8.716e-05/0.1138, allocations: 23.88 kB / 439.2 MB, free: 12.99 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.974e-05/0.1138, allocations: 7.984 kB / 439.2 MB, free: 12.98 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.737e-05/0.1139, allocations: 4 kB / 439.2 MB, free: 12.98 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.816e-05/0.114, allocations: 15.86 kB / 439.2 MB, free: 12.96 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.364e-05/0.114, allocations: 4 kB / 439.2 MB, free: 12.96 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.1141, allocations: 39.97 kB / 439.2 MB, free: 12.92 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.419e-05/0.1141, allocations: 0 / 439.2 MB, free: 12.92 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.421e-05/0.1141, allocations: 15.92 kB / 439.3 MB, free: 12.91 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.1143, allocations: 47.88 kB / 439.3 MB, free: 12.86 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1143, allocations: 0 / 439.3 MB, free: 12.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1143, allocations: 0 / 439.3 MB, free: 12.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1143, allocations: 0 / 439.3 MB, free: 12.86 MB / 414.1 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.0004773/0.1148, allocations: 303.8 kB / 439.6 MB, free: 12.52 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.1148, allocations: 12.03 kB / 439.6 MB, free: 12.51 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.027e-05/0.1149, allocations: 0.9375 kB / 439.6 MB, free: 12.51 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.115, allocations: 114.4 kB / 439.7 MB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.115, allocations: 384 / 439.7 MB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.115, allocations: 4.375 kB / 439.7 MB, free: 12.37 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001317/0.1151, allocations: 63.95 kB / 439.8 MB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.1152, allocations: 192 / 439.8 MB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.1152, allocations: 3.938 kB / 439.8 MB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.1152, allocations: 7.984 kB / 439.8 MB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.86e-05/0.1152, allocations: 11.98 kB / 439.8 MB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001557/0.1154, allocations: 109.4 kB / 439.9 MB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.221e-05/0.1155, allocations: 26.5 kB / 440 MB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.25e-05/0.1155, allocations: 8.922 kB / 440 MB, free: 12.09 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.1155, allocations: 7.938 kB / 440 MB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002446/0.1158, allocations: 158.2 kB / 440.1 MB, free: 11.89 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.1158, allocations: 0 / 440.1 MB, free: 11.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002892/0.1161, allocations: 146.7 kB / 440.3 MB, free: 11.72 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.1161, allocations: 77.11 kB / 440.3 MB, free: 11.63 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.1162, allocations: 113.8 kB / 440.5 MB, free: 11.51 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.1162, allocations: 25.7 kB / 440.5 MB, free: 11.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.286e-05/0.1163, allocations: 80.14 kB / 440.6 MB, free: 11.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.1163, allocations: 3.953 kB / 440.6 MB, free: 11.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.934e-05/0.1163, allocations: 17.72 kB / 440.6 MB, free: 11.37 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.1165, allocations: 314.8 kB / 440.9 MB, free: 11.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.527e-05/0.1166, allocations: 33.69 kB / 440.9 MB, free: 11.01 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.241e-05/0.1166, allocations: 51.55 kB / 441 MB, free: 10.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.1168, allocations: 89.03 kB / 441.1 MB, free: 10.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1168, allocations: 0 / 441.1 MB, free: 10.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001479/0.1169, allocations: 101.1 kB / 441.2 MB, free: 10.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.543e-05/0.1169, allocations: 33.7 kB / 441.2 MB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1169, allocations: 0 / 441.2 MB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.117, allocations: 4.062 kB / 441.2 MB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.614e-05/0.117, allocations: 11.94 kB / 441.2 MB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.117, allocations: 7.922 kB / 441.2 MB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.032e-05/0.117, allocations: 4 kB / 441.2 MB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-06/0.1171, allocations: 4 kB / 441.2 MB, free: 10.66 MB / 414.1 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 0.0001135/0.1172, allocations: 131.5 kB / 441.3 MB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.584e-05/0.1172, allocations: 7.953 kB / 441.4 MB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.149e-05/0.1172, allocations: 11.55 kB / 441.4 MB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1172, allocations: 0 / 441.4 MB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.1172, allocations: 4 kB / 441.4 MB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.1172, allocations: 4 kB / 441.4 MB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.83e-05/0.1173, allocations: 105.3 kB / 441.5 MB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1173, allocations: 0 / 441.5 MB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.325e-05/0.1173, allocations: 7.984 kB / 441.5 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.1173, allocations: 0 / 441.5 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.583e-06/0.1174, allocations: 0 / 441.5 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.1174, allocations: 3.938 kB / 441.5 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1174, allocations: 0 / 441.5 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001899/0.1175, allocations: 144.4 kB / 441.6 MB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.016e-05/0.1176, allocations: 3.953 kB / 441.6 MB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.1176, allocations: 4.031 kB / 441.6 MB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.454e-05/0.1176, allocations: 7.938 kB / 441.6 MB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.461e-05/0.1177, allocations: 0 / 441.6 MB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.1177, allocations: 11.98 kB / 441.7 MB, free: 10.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.131e-05/0.1177, allocations: 83.28 kB / 441.7 MB, free: 10.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1177, allocations: 4 kB / 441.7 MB, free: 10.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002145/0.1179, allocations: 15.94 kB / 441.8 MB, free: 10.04 MB / 414.1 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.000441/0.1184, allocations: 194.1 kB / 441.9 MB, free: 9.875 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002081/0.1186, allocations: 122.8 kB / 442.1 MB, free: 9.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1186, allocations: 128 / 442.1 MB, free: 9.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.691e-05/0.1187, allocations: 97.03 kB / 442.2 MB, free: 9.617 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.1188, allocations: 4 kB / 442.2 MB, free: 9.613 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003034/0.1191, allocations: 135.2 kB / 442.3 MB, free: 9.449 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001006/0.1192, allocations: 63.34 kB / 442.4 MB, free: 9.367 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.056e-05/0.1193, allocations: 4 kB / 442.4 MB, free: 9.363 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.99e-05/0.1193, allocations: 12.5 kB / 442.4 MB, free: 9.352 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1193, allocations: 0 / 442.4 MB, free: 9.352 MB / 414.1 MB Notification: Performance of Templates: time 0.003732/0.123, allocations: 0.7798 MB / 443.2 MB, free: 8.578 MB / 414.1 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 -s ida -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.390561749925837] Failed to read output from testmodel.py, exit status != 0: 0.1339580569183454 0.148528606 0.030759031000000003 Calling exit ...