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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001932/0.001932, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002552/0.002552, allocations: 192 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 225.6 MB / 251 MB, free: 13.01 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.007106/0.007106, allocations: 1.008 MB / 307.3 MB, free: 7.602 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001936/0.001936, allocations: 63.91 kB / 427.7 MB, free: 22.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1059, allocations: 52.41 MB / 480.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002753/0.1087, allocations: 1.371 MB / 481.5 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.1101, allocations: 0.8919 MB / 482.4 MB, free: 152 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.933e-05/0.1101, allocations: 4 kB / 482.4 MB, free: 148 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2e-05/0.1102, allocations: 0 / 482.4 MB, free: 148 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002309/0.1104, allocations: 15.88 kB / 482.4 MB, free: 132 kB / 334.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.0001795/0.1106, allocations: 39.88 kB / 482.4 MB, free: 92 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.983e-05/0.1106, allocations: 23.92 kB / 482.5 MB, free: 68 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.51e-05/0.1107, allocations: 4 kB / 482.5 MB, free: 64 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.679e-05/0.1107, allocations: 7.938 kB / 482.5 MB, free: 56 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001145/0.1109, allocations: 15.92 kB / 482.5 MB, free: 40 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.344e-05/0.1109, allocations: 4 kB / 482.5 MB, free: 36 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.111, allocations: 40.02 kB / 482.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.111, allocations: 0 / 482.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.976e-05/0.111, allocations: 11.94 kB / 482.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.1112, allocations: 55.75 kB / 482.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.1112, allocations: 4 kB / 482.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1112, allocations: 0 / 482.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1112, allocations: 0 / 482.6 MB, free: 15.93 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.0004247/0.1116, allocations: 295.9 kB / 482.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.1116, allocations: 12.92 kB / 482.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.306e-05/0.1117, allocations: 4.938 kB / 482.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.1118, allocations: 110.5 kB / 483 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.1118, allocations: 384 / 483 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.193e-06/0.1118, allocations: 384 / 483 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.112, allocations: 42.25 kB / 483.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.112, allocations: 4.172 kB / 483.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.112, allocations: 3.938 kB / 483.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.112, allocations: 3.938 kB / 483.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.504e-05/0.1121, allocations: 11.98 kB / 483.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000166/0.1122, allocations: 128.8 kB / 483.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.48e-05/0.1123, allocations: 26.53 kB / 483.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.17e-05/0.1123, allocations: 12.92 kB / 483.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.979e-06/0.1123, allocations: 4 kB / 483.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001757/0.1125, allocations: 106.8 kB / 483.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.1125, allocations: 0 / 483.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002337/0.1127, allocations: 91.22 kB / 483.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.1128, allocations: 77.11 kB / 483.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.15e-05/0.1129, allocations: 117.8 kB / 483.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.666e-05/0.1129, allocations: 25.7 kB / 483.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.817e-05/0.113, allocations: 80.14 kB / 483.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/0.113, allocations: 4.062 kB / 483.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.198e-05/0.113, allocations: 25.7 kB / 483.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1132, allocations: 310.8 kB / 484.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.974e-05/0.1132, allocations: 8 kB / 484.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.634e-05/0.1132, allocations: 21.7 kB / 484.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.1134, allocations: 85.11 kB / 484.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1134, allocations: 0 / 484.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001396/0.1135, allocations: 79.34 kB / 484.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.1135, allocations: 37.08 kB / 484.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.1135, allocations: 7.984 kB / 484.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1136, allocations: 0 / 484.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.558e-05/0.1136, allocations: 4 kB / 484.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.1136, allocations: 4.25 kB / 484.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.322e-05/0.1136, allocations: 12.06 kB / 484.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.1136, allocations: 0 / 484.3 MB, free: 13.95 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.0001108/0.1138, allocations: 143.5 kB / 484.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.1138, allocations: 3.938 kB / 484.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.043e-05/0.1138, allocations: 7.625 kB / 484.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.1138, allocations: 0 / 484.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1138, allocations: 0 / 484.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.1138, allocations: 0 / 484.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001156/0.1139, allocations: 124.8 kB / 484.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1139, allocations: 7.984 kB / 484.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.746e-05/0.1139, allocations: 4 kB / 484.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.114, allocations: 3.938 kB / 484.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-06/0.114, allocations: 0 / 484.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.114, allocations: 4 kB / 484.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.114, allocations: 0 / 484.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.1141, allocations: 110.7 kB / 484.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.418e-06/0.1141, allocations: 11.95 kB / 484.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.1142, allocations: 3.938 kB / 484.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.205e-05/0.1142, allocations: 4 kB / 484.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.976e-05/0.1142, allocations: 0 / 484.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-06/0.1142, allocations: 7.938 kB / 484.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.325e-05/0.1143, allocations: 91.25 kB / 484.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1143, allocations: 0 / 484.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002092/0.1145, allocations: 12 kB / 484.9 MB, free: 13.34 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.0004905/0.115, allocations: 207.8 kB / 485.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001769/0.1152, allocations: 67.39 kB / 485.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1152, allocations: 0 / 485.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.074e-05/0.1153, allocations: 67.34 kB / 485.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001505/0.1154, allocations: 7.984 kB / 485.2 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002953/0.1157, allocations: 101.6 kB / 485.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.1161, allocations: 0.6846 MB / 486 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.443e-05/0.1161, allocations: 4 kB / 486 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.979e-05/0.1161, allocations: 7.438 kB / 486 MB, free: 12.15 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1161, allocations: 0 / 486 MB, free: 12.15 MB / 350.1 MB Notification: Performance of Templates: time 0.00365/0.1197, allocations: 0.7662 MB / 486.8 MB, free: 11.39 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: 4.618922969326377] Failed to read output from testmodel.py, exit status != 0: 0.12717021629214287 0.14302946500000002 0.028626803000000003 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f6612bdd7b0>