Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariables.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.001467/0.001467, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001766/0.001766, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.714/1.714, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.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.007351/0.007351, allocations: 1.023 MB / 313.4 MB, free: 1.883 MB / 238.1 MB " [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.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") [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.002057/0.002057, allocations: 67.88 kB / 436.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1033, allocations: 53.59 MB / 489.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002625/0.1059, allocations: 1.39 MB / 491.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.1073, allocations: 0.8958 MB / 492 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.726e-05/0.1074, allocations: 0 / 492 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.559e-05/0.1074, allocations: 0 / 492 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.1076, allocations: 15.86 kB / 492 MB, free: 7.926 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/writeRealVariables.mo:2:1-21:23:writable] Warning: Pure function 'KeyWordIO.writeRealVariables' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0002409/0.1078, allocations: 39.89 kB / 492.1 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.393e-05/0.1079, allocations: 27.92 kB / 492.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.235e-05/0.108, allocations: 0 / 492.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.245e-05/0.108, allocations: 15.92 kB / 492.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.645e-05/0.1081, allocations: 15.92 kB / 492.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.1081, allocations: 4 kB / 492.1 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.1082, allocations: 39.97 kB / 492.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.256e-05/0.1082, allocations: 7.922 kB / 492.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.478e-05/0.1082, allocations: 15.94 kB / 492.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001631/0.1084, allocations: 59.8 kB / 492.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1084, allocations: 0 / 492.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1084, allocations: 0 / 492.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.1084, allocations: 0 / 492.3 MB, free: 7.703 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.00048/0.1089, allocations: 303.8 kB / 492.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.1089, allocations: 16.03 kB / 492.6 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.65e-05/0.1089, allocations: 0.9375 kB / 492.6 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.1091, allocations: 118.5 kB / 492.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.1091, allocations: 384 / 492.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.1091, allocations: 8.375 kB / 492.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001814/0.1093, allocations: 67.95 kB / 492.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.517e-06/0.1093, allocations: 4.125 kB / 492.8 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.1093, allocations: 7.875 kB / 492.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.1093, allocations: 0 / 492.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.444e-05/0.1094, allocations: 49.69 kB / 492.8 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001579/0.1096, allocations: 105.3 kB / 492.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001056/0.1097, allocations: 56.31 kB / 493 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.561e-05/0.1098, allocations: 46.62 kB / 493 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.163e-06/0.1098, allocations: 0 / 493 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002228/0.11, allocations: 174.1 kB / 493.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.052e-06/0.11, allocations: 0 / 493.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.000389/0.1104, allocations: 186.7 kB / 493.4 MB, free: 6.387 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.464e-05/0.1105, allocations: 136.5 kB / 493.5 MB, free: 6.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.1106, allocations: 113.8 kB / 493.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.1106, allocations: 29.7 kB / 493.7 MB, free: 6.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.278e-05/0.1107, allocations: 84.14 kB / 493.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.615e-05/0.1107, allocations: 7.938 kB / 493.7 MB, free: 5.973 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.152e-05/0.1108, allocations: 21.72 kB / 493.8 MB, free: 5.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1109, allocations: 310.8 kB / 494.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.013e-05/0.111, allocations: 45.62 kB / 494.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.026e-05/0.1111, allocations: 51.66 kB / 494.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.1112, allocations: 113.1 kB / 494.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1112, allocations: 0 / 494.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000196/0.1114, allocations: 133 kB / 494.4 MB, free: 5.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.854e-05/0.1115, allocations: 29.7 kB / 494.4 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.1115, allocations: 4 kB / 494.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.1115, allocations: 3.938 kB / 494.4 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.933e-05/0.1116, allocations: 4 kB / 494.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.1116, allocations: 0 / 494.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.959e-05/0.1116, allocations: 19.98 kB / 494.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.1116, allocations: 4 kB / 494.5 MB, free: 5.172 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = true ) \"End value of step.y right after switching\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.y_end,y_end,y_start,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * 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.0001636/0.1118, allocations: 139.5 kB / 494.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.506e-05/0.1118, allocations: 4 kB / 494.6 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.013e-05/0.1118, allocations: 16 kB / 494.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.1118, allocations: 0 / 494.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1118, allocations: 3.938 kB / 494.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1118, allocations: 0 / 494.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.112, allocations: 113.3 kB / 494.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.112, allocations: 7.938 kB / 494.8 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.369e-05/0.112, allocations: 0 / 494.8 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.112, allocations: 4.047 kB / 494.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.112, allocations: 7.969 kB / 494.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.112, allocations: 3.938 kB / 494.8 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.112, allocations: 0 / 494.8 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000259/0.1123, allocations: 172.5 kB / 494.9 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.803e-05/0.1123, allocations: 11.94 kB / 494.9 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.1123, allocations: 0 / 494.9 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.631e-05/0.1123, allocations: 7.938 kB / 495 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.958e-05/0.1124, allocations: 8.031 kB / 495 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.1124, allocations: 11.98 kB / 495 MB, free: 4.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.134e-05/0.1124, allocations: 83.28 kB / 495.1 MB, free: 4.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1124, allocations: 3.938 kB / 495.1 MB, free: 4.504 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002285/0.1127, allocations: 27.94 kB / 495.1 MB, free: 4.477 MB / 350.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: 4 ($whenCondition1,$whenCondition2,y_start,y_end) * Number of discrete states: 4 ($whenCondition2,y_end,$whenCondition1,y_start) * 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.0004665/0.1131, allocations: 180.5 kB / 495.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002362/0.1134, allocations: 146.8 kB / 495.4 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1134, allocations: 4 kB / 495.4 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.1135, allocations: 109.1 kB / 495.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001483/0.1136, allocations: 15.09 kB / 495.5 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003284/0.114, allocations: 163.2 kB / 495.7 MB, free: 3.824 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.206e-05/0.114, allocations: 71.25 kB / 495.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.343e-05/0.1141, allocations: 7.984 kB / 495.8 MB, free: 3.727 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.928e-05/0.1141, allocations: 7.438 kB / 495.8 MB, free: 3.719 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1141, allocations: 0 / 495.8 MB, free: 3.719 MB / 350.1 MB Notification: Performance of Templates: time 0.003819/0.1179, allocations: 0.9341 MB / 496.7 MB, free: 2.789 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile [Timeout 660] (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariables.sim & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariables -abortSlowSimulation -alarm=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.811448011547327] Failed to read output from testmodel.py, exit status != 0: 0.1258045695722103 0.14227460599999994 0.030681908 Calling exit ...