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.001581/0.001581, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001481/0.001481, allocations: 222.6 kB / 23 MB, free: 4.91 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.435/1.435, allocations: 230.6 MB / 256.8 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.007372/0.007372, allocations: 1.023 MB / 314.2 MB, free: 1.891 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.002025/0.002025, allocations: 63.89 kB / 436.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09616/0.09818, allocations: 53.58 MB / 490.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002663/0.1008, allocations: 1.381 MB / 491.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.1024, allocations: 0.9036 MB / 492.8 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.957e-05/0.1024, allocations: 0 / 492.8 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.91e-05/0.1024, allocations: 3.938 kB / 492.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000218/0.1027, allocations: 11.92 kB / 492.8 MB, free: 7.957 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.0002491/0.1029, allocations: 47.89 kB / 492.8 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.272e-05/0.103, allocations: 23.86 kB / 492.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.899e-05/0.103, allocations: 4 kB / 492.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.359e-05/0.1031, allocations: 11.98 kB / 492.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.219e-05/0.1031, allocations: 15.92 kB / 492.9 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.066e-05/0.1032, allocations: 0 / 492.9 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001227/0.1033, allocations: 43.91 kB / 492.9 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.903e-05/0.1033, allocations: 11.92 kB / 492.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.768e-05/0.1033, allocations: 12 kB / 493 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001708/0.1035, allocations: 59.73 kB / 493 MB, free: 7.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1035, allocations: 0 / 493 MB, free: 7.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1035, allocations: 4 kB / 493 MB, free: 7.727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1035, allocations: 0 / 493 MB, free: 7.727 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.0004598/0.104, allocations: 303.8 kB / 493.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.104, allocations: 8.031 kB / 493.3 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.104, allocations: 12.94 kB / 493.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.1042, allocations: 110.5 kB / 493.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.1042, allocations: 384 / 493.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.287e-05/0.1042, allocations: 4.375 kB / 493.4 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001542/0.1044, allocations: 75.88 kB / 493.5 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.1044, allocations: 192 / 493.5 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.1044, allocations: 7.938 kB / 493.5 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.1044, allocations: 0 / 493.5 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.972e-05/0.1045, allocations: 37.69 kB / 493.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001515/0.1046, allocations: 113.4 kB / 493.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001022/0.1047, allocations: 52.28 kB / 493.7 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.472e-05/0.1048, allocations: 46.62 kB / 493.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.713e-06/0.1048, allocations: 0 / 493.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000269/0.1051, allocations: 182.1 kB / 493.9 MB, free: 6.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.1051, allocations: 0 / 493.9 MB, free: 6.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003687/0.1055, allocations: 182.7 kB / 494.1 MB, free: 6.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.707e-05/0.1056, allocations: 128.5 kB / 494.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.1057, allocations: 121.8 kB / 494.4 MB, free: 6.133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.1057, allocations: 25.7 kB / 494.4 MB, free: 6.102 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.53e-05/0.1057, allocations: 84.14 kB / 494.5 MB, free: 6.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.376e-05/0.1058, allocations: 11.89 kB / 494.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.813e-05/0.1058, allocations: 17.7 kB / 494.5 MB, free: 5.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.1059, allocations: 322.8 kB / 494.8 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.461e-05/0.106, allocations: 41.62 kB / 494.9 MB, free: 5.609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.892e-05/0.1061, allocations: 51.41 kB / 494.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00017/0.1063, allocations: 109.1 kB / 495 MB, free: 5.422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1063, allocations: 0 / 495 MB, free: 5.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002098/0.1065, allocations: 133 kB / 495.1 MB, free: 5.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.954e-05/0.1065, allocations: 37.69 kB / 495.2 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1065, allocations: 0 / 495.2 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.1065, allocations: 3.938 kB / 495.2 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.969e-05/0.1066, allocations: 8 kB / 495.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.1066, allocations: 0 / 495.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.21e-05/0.1067, allocations: 7.938 kB / 495.2 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.735e-06/0.1067, allocations: 4.312 kB / 495.2 MB, free: 5.207 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.0001755/0.1068, allocations: 158.5 kB / 495.4 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.528e-05/0.1068, allocations: 4 kB / 495.4 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.342e-05/0.1069, allocations: 11.94 kB / 495.4 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.1069, allocations: 3.984 kB / 495.4 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.1069, allocations: 0 / 495.4 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-06/0.1069, allocations: 4 kB / 495.4 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001096/0.107, allocations: 109.3 kB / 495.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.107, allocations: 0 / 495.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.006e-05/0.107, allocations: 8 kB / 495.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.107, allocations: 0 / 495.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.107, allocations: 4 kB / 495.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.107, allocations: 3.938 kB / 495.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.107, allocations: 0 / 495.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002705/0.1073, allocations: 176.5 kB / 495.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.583e-05/0.1073, allocations: 7.953 kB / 495.7 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.1073, allocations: 0 / 495.7 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.904e-05/0.1074, allocations: 11.92 kB / 495.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.596e-05/0.1074, allocations: 3.984 kB / 495.7 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.1074, allocations: 12.03 kB / 495.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.634e-05/0.1075, allocations: 87.27 kB / 495.8 MB, free: 4.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1075, allocations: 3.938 kB / 495.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.1077, allocations: 23.94 kB / 495.8 MB, free: 4.508 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.0004682/0.1082, allocations: 189.8 kB / 496 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002565/0.1085, allocations: 154.8 kB / 496.2 MB, free: 4.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1085, allocations: 0 / 496.2 MB, free: 4.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.1086, allocations: 105 kB / 496.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001515/0.1087, allocations: 4 kB / 496.3 MB, free: 4.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003666/0.1091, allocations: 201.1 kB / 496.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.286e-05/0.1092, allocations: 71.25 kB / 496.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.044e-05/0.1092, allocations: 7.438 kB / 496.5 MB, free: 3.719 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.1092, allocations: 0 / 496.5 MB, free: 3.719 MB / 350.1 MB Notification: Performance of Templates: time 0.002961/0.1122, allocations: 1.018 MB / 497.6 MB, free: 2.703 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: 6.969037152361125] Failed to read output from testmodel.py, exit status != 0: 0.11978119891136885 0.13616347899999995 0.029456078 Calling exit ...