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.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.001314/0.001314, 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.001382/0.001382, allocations: 182.9 kB / 22.22 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.532/1.532, allocations: 225.6 MB / 251 MB, free: 13.02 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.007337/0.007337, allocations: 1.022 MB / 307.3 MB, free: 7.594 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.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: Performance of FrontEnd - loaded program: time 0.001997/0.001997, allocations: 67.89 kB / 427.7 MB, free: 22.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.125, allocations: 52.42 MB / 480.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002905/0.1279, allocations: 1.383 MB / 481.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.1294, allocations: 0.9036 MB / 482.4 MB, free: 108 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.06e-05/0.1294, allocations: 0 / 482.4 MB, free: 108 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.924e-05/0.1294, allocations: 0 / 482.4 MB, free: 108 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000216/0.1296, allocations: 7.938 kB / 482.4 MB, free: 100 kB / 334.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.0002839/0.1299, allocations: 47.81 kB / 482.5 MB, free: 52 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.691e-05/0.13, allocations: 27.92 kB / 482.5 MB, free: 24 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.282e-05/0.1301, allocations: 3.984 kB / 482.5 MB, free: 20 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.464e-05/0.1301, allocations: 7.938 kB / 482.5 MB, free: 12 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.1303, allocations: 24 kB / 482.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.14e-05/0.1303, allocations: 0 / 482.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.1304, allocations: 47.88 kB / 482.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.471e-05/0.1304, allocations: 7.875 kB / 482.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.761e-05/0.1305, allocations: 11.94 kB / 482.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001818/0.1306, allocations: 63.8 kB / 482.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1306, allocations: 3.938 kB / 482.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1306, allocations: 0 / 482.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.1306, allocations: 0 / 482.7 MB, free: 15.86 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.0005028/0.1312, allocations: 303.8 kB / 483 MB, free: 15.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.1312, allocations: 16.92 kB / 483 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.919e-05/0.1312, allocations: 4.891 kB / 483 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.1314, allocations: 110.5 kB / 483.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.758e-05/0.1314, allocations: 4.375 kB / 483.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.1314, allocations: 384 / 483.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001485/0.1316, allocations: 46.25 kB / 483.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.068e-06/0.1316, allocations: 192 / 483.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.1316, allocations: 3.938 kB / 483.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.1316, allocations: 3.938 kB / 483.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.782e-05/0.1317, allocations: 19.97 kB / 483.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001802/0.1319, allocations: 132.8 kB / 483.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.924e-05/0.1319, allocations: 26.56 kB / 483.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.687e-05/0.132, allocations: 16.89 kB / 483.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.244e-06/0.132, allocations: 0 / 483.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002393/0.1323, allocations: 148.4 kB / 483.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.533e-06/0.1323, allocations: 0 / 483.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003569/0.1326, allocations: 127.3 kB / 483.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.1327, allocations: 132.5 kB / 483.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.1328, allocations: 109.8 kB / 483.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.947e-05/0.1328, allocations: 29.7 kB / 483.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.537e-05/0.1329, allocations: 80.14 kB / 484 MB, free: 14.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.276e-05/0.1329, allocations: 23.91 kB / 484 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.133, allocations: 17.72 kB / 484 MB, free: 14.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.1331, allocations: 314.8 kB / 484.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.497e-05/0.1332, allocations: 11.98 kB / 484.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.466e-05/0.1333, allocations: 33.58 kB / 484.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.1334, allocations: 97.11 kB / 484.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1334, allocations: 0 / 484.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000191/0.1336, allocations: 111.3 kB / 484.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.966e-05/0.1336, allocations: 33.64 kB / 484.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.1337, allocations: 0 / 484.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.1337, allocations: 7.984 kB / 484.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.308e-05/0.1337, allocations: 4 kB / 484.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1338, allocations: 0 / 484.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.975e-05/0.1338, allocations: 15.95 kB / 484.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.1338, allocations: 3.938 kB / 484.6 MB, free: 13.63 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.0001733/0.134, allocations: 147.5 kB / 484.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.805e-05/0.134, allocations: 7.938 kB / 484.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.957e-05/0.134, allocations: 4.062 kB / 484.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.134, allocations: 0 / 484.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.134, allocations: 4 kB / 484.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.134, allocations: 256 / 484.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.1342, allocations: 132.7 kB / 484.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.757e-06/0.1342, allocations: 11.94 kB / 484.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.802e-05/0.1342, allocations: 3.984 kB / 484.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.1342, allocations: 7.938 kB / 484.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.1342, allocations: 4 kB / 484.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.1342, allocations: 0 / 484.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1342, allocations: 0 / 484.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002418/0.1345, allocations: 150.8 kB / 485.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.506e-06/0.1345, allocations: 4.031 kB / 485.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.1345, allocations: 7.938 kB / 485.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.465e-05/0.1345, allocations: 4 kB / 485.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.1346, allocations: 3.984 kB / 485.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.1346, allocations: 8 kB / 485.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.905e-05/0.1346, allocations: 83.28 kB / 485.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1346, allocations: 0 / 485.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002271/0.1349, allocations: 27.92 kB / 485.2 MB, free: 12.95 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.0005068/0.1354, allocations: 204 kB / 485.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002141/0.1356, allocations: 91.38 kB / 485.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1356, allocations: 0 / 485.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.1357, allocations: 79.39 kB / 485.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001559/0.1358, allocations: 4 kB / 485.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003601/0.1362, allocations: 141.5 kB / 485.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.1366, allocations: 0.6924 MB / 486.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.988e-05/0.1366, allocations: 0 / 486.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.059e-05/0.1366, allocations: 11.44 kB / 486.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1366, allocations: 0 / 486.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of Templates: time 0.004271/0.1409, allocations: 0.914 MB / 487.3 MB, free: 10.77 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.602456953376532] Failed to read output from testmodel.py, exit status != 0: 0.1486166212707758 0.16542536200000002 0.031411023 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f308c5017b0>