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.00188/0.00188, 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.002352/0.002352, allocations: 220.4 kB / 23 MB, free: 4.914 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.479/1.479, allocations: 230.6 MB / 256.8 MB, free: 7.82 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.007181/0.007181, allocations: 1.021 MB / 314.2 MB, free: 1.906 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.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.002051/0.002051, allocations: 71.89 kB / 436.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09632/0.09837, allocations: 53.57 MB / 490.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002701/0.1011, allocations: 1.372 MB / 491.9 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.1024, allocations: 0.8919 MB / 492.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.515e-05/0.1025, allocations: 0 / 492.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.851e-05/0.1025, allocations: 3.938 kB / 492.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002239/0.1027, allocations: 15.92 kB / 492.8 MB, free: 7.977 MB / 350.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.0002095/0.1029, allocations: 39.89 kB / 492.8 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.041e-05/0.103, allocations: 27.86 kB / 492.8 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.603e-05/0.1031, allocations: 4 kB / 492.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.239e-05/0.1031, allocations: 8 kB / 492.8 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.632e-05/0.1032, allocations: 15.91 kB / 492.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.211e-05/0.1032, allocations: 4 kB / 492.9 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.304e-05/0.1033, allocations: 31.98 kB / 492.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.437e-05/0.1033, allocations: 3.938 kB / 492.9 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.883e-05/0.1033, allocations: 11.92 kB / 492.9 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000166/0.1035, allocations: 59.81 kB / 493 MB, free: 7.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1035, allocations: 0 / 493 MB, free: 7.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1035, allocations: 0 / 493 MB, free: 7.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1035, allocations: 0 / 493 MB, free: 7.773 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004298/0.1039, allocations: 299.9 kB / 493.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.104, allocations: 8.031 kB / 493.3 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.771e-05/0.104, allocations: 4.891 kB / 493.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.1042, allocations: 106.5 kB / 493.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.1042, allocations: 384 / 493.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.1042, allocations: 4.375 kB / 493.4 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.1043, allocations: 59.95 kB / 493.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.1043, allocations: 192 / 493.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.1043, allocations: 7.938 kB / 493.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.822e-06/0.1043, allocations: 7.984 kB / 493.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.96e-05/0.1044, allocations: 19.86 kB / 493.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000151/0.1045, allocations: 109.3 kB / 493.6 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.825e-05/0.1046, allocations: 18.58 kB / 493.6 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.968e-05/0.1046, allocations: 12.91 kB / 493.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.281e-06/0.1047, allocations: 0 / 493.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/0.1048, allocations: 162.2 kB / 493.8 MB, free: 6.816 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.1048, allocations: 0 / 493.8 MB, free: 6.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002728/0.1051, allocations: 146.7 kB / 493.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.1052, allocations: 77.11 kB / 494 MB, free: 6.555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.1053, allocations: 109.8 kB / 494.1 MB, free: 6.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.1053, allocations: 29.64 kB / 494.1 MB, free: 6.402 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.711e-05/0.1053, allocations: 84.14 kB / 494.2 MB, free: 6.316 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.047e-05/0.1054, allocations: 11.89 kB / 494.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.089e-05/0.1054, allocations: 9.719 kB / 494.2 MB, free: 6.289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.1056, allocations: 322.8 kB / 494.5 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.161e-05/0.1056, allocations: 29.7 kB / 494.6 MB, free: 5.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.197e-05/0.1057, allocations: 51.53 kB / 494.6 MB, free: 5.867 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000108/0.1058, allocations: 81.05 kB / 494.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1058, allocations: 0 / 494.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001512/0.1059, allocations: 109 kB / 494.8 MB, free: 5.645 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.106, allocations: 29.7 kB / 494.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.106, allocations: 0 / 494.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.106, allocations: 12.06 kB / 494.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.384e-05/0.106, allocations: 3.984 kB / 494.9 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.106, allocations: 4.312 kB / 494.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.781e-05/0.1061, allocations: 0 / 494.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.1061, allocations: 4 kB / 494.9 MB, free: 5.586 MB / 350.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.0001043/0.1062, allocations: 135.5 kB / 495 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.461e-05/0.1062, allocations: 7.984 kB / 495 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.27e-05/0.1062, allocations: 11.52 kB / 495 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.1062, allocations: 4 kB / 495 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1062, allocations: 0 / 495 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1062, allocations: 4 kB / 495 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.1063, allocations: 113.2 kB / 495.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.1063, allocations: 0 / 495.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.367e-05/0.1064, allocations: 8 kB / 495.1 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.1064, allocations: 3.938 kB / 495.1 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.1064, allocations: 0 / 495.1 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.1064, allocations: 3.938 kB / 495.1 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1064, allocations: 0 / 495.1 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000189/0.1066, allocations: 140.5 kB / 495.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.795e-06/0.1066, allocations: 4.031 kB / 495.3 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.1066, allocations: 0 / 495.3 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.315e-05/0.1066, allocations: 7.938 kB / 495.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.791e-05/0.1067, allocations: 3.984 kB / 495.3 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.1067, allocations: 4 kB / 495.3 MB, free: 5.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.029e-05/0.1067, allocations: 91.27 kB / 495.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1067, allocations: 0 / 495.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002166/0.1069, allocations: 11.98 kB / 495.4 MB, free: 4.961 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: 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.0004454/0.1074, allocations: 185.1 kB / 495.6 MB, free: 4.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002036/0.1076, allocations: 126.7 kB / 495.7 MB, free: 4.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1076, allocations: 4.125 kB / 495.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.1077, allocations: 93.09 kB / 495.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001435/0.1079, allocations: 4 kB / 495.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000318/0.1082, allocations: 165 kB / 496 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.456e-05/0.1082, allocations: 59.34 kB / 496 MB, free: 4.266 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.013e-05/0.1083, allocations: 11.44 kB / 496 MB, free: 4.254 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1083, allocations: 0 / 496 MB, free: 4.254 MB / 350.1 MB Notification: Performance of Templates: time 0.002799/0.1111, allocations: 0.8889 MB / 496.9 MB, free: 3.371 MB / 350.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 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.785895829088986] Failed to read output from testmodel.py, exit status != 0: 0.11890029488131404 0.13481288600000002 0.028291984000000003 Calling exit ...