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.002059/0.002059, allocations: 78.95 kB / 19.76 MB, free: 2.035 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.002342/0.002342, allocations: 158.1 kB / 23.01 MB, free: 4.941 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.442/1.442, allocations: 177.2 MB / 203.4 MB, free: 8.945 MB / 190.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.006714/0.006714, allocations: 0.795 MB / 260.6 MB, free: 15.85 MB / 254.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/readLineWithoutCache.mo:2:1-87:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/writeLine.mo:2:1-61:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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.002148/0.002148, allocations: 71.89 kB / 383.3 MB, free: 4.98 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/readLineWithoutCache.mo:2:1-87:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/writeLine.mo:2:1-61:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1246, allocations: 53.55 MB / 436.8 MB, free: 15.33 MB / 414.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.004043/0.1287, allocations: 1.387 MB / 438.2 MB, free: 13.93 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.1307, allocations: 0.8959 MB / 439.1 MB, free: 13.04 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.516e-05/0.1307, allocations: 0 / 439.1 MB, free: 13.04 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.089e-05/0.1307, allocations: 3.938 kB / 439.1 MB, free: 13.03 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002487/0.131, allocations: 23.86 kB / 439.1 MB, free: 13.01 MB / 414.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.0003287/0.1313, allocations: 43.89 kB / 439.2 MB, free: 12.96 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.1314, allocations: 27.86 kB / 439.2 MB, free: 12.94 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.943e-05/0.1315, allocations: 0 / 439.2 MB, free: 12.94 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.805e-05/0.1315, allocations: 11.98 kB / 439.2 MB, free: 12.93 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.573e-05/0.1316, allocations: 15.86 kB / 439.2 MB, free: 12.91 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.314e-05/0.1316, allocations: 0 / 439.2 MB, free: 12.91 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.1318, allocations: 39.97 kB / 439.3 MB, free: 12.87 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.337e-05/0.1318, allocations: 11.94 kB / 439.3 MB, free: 12.86 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.735e-05/0.1318, allocations: 15.91 kB / 439.3 MB, free: 12.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002057/0.1321, allocations: 63.81 kB / 439.4 MB, free: 12.78 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1321, allocations: 0 / 439.4 MB, free: 12.78 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1321, allocations: 4 kB / 439.4 MB, free: 12.78 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1321, allocations: 0 / 439.4 MB, free: 12.78 MB / 414.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.000569/0.1326, allocations: 299.9 kB / 439.7 MB, free: 12.45 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.1327, allocations: 8.031 kB / 439.7 MB, free: 12.44 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.461e-05/0.1327, allocations: 4.938 kB / 439.7 MB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.1329, allocations: 118.5 kB / 439.8 MB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.1329, allocations: 4.312 kB / 439.8 MB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.1329, allocations: 4.375 kB / 439.8 MB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000202/0.1331, allocations: 71.95 kB / 439.9 MB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.1331, allocations: 192 / 439.9 MB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.1331, allocations: 7.938 kB / 439.9 MB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1331, allocations: 4 kB / 439.9 MB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001223/0.1333, allocations: 41.69 kB / 439.9 MB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001946/0.1335, allocations: 109.4 kB / 440 MB, free: 12.01 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.1336, allocations: 56.2 kB / 440.1 MB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.65e-05/0.1337, allocations: 42.59 kB / 440.1 MB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.1337, allocations: 4.031 kB / 440.1 MB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003488/0.1341, allocations: 178.2 kB / 440.3 MB, free: 11.67 MB / 414.1 MB Notification: Performance of pre-optimization done (n=5): time 1.503e-06/0.1341, allocations: 0 / 440.3 MB, free: 11.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005053/0.1346, allocations: 190.6 kB / 440.5 MB, free: 11.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.1347, allocations: 136.5 kB / 440.6 MB, free: 11.3 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.1348, allocations: 109.8 kB / 440.7 MB, free: 11.18 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.1348, allocations: 25.7 kB / 440.8 MB, free: 11.15 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.699e-05/0.1349, allocations: 84.14 kB / 440.8 MB, free: 11.06 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.703e-05/0.1349, allocations: 19.81 kB / 440.9 MB, free: 11.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.991e-05/0.135, allocations: 13.72 kB / 440.9 MB, free: 11.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1351, allocations: 322.9 kB / 441.2 MB, free: 10.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.092e-05/0.1352, allocations: 41.69 kB / 441.2 MB, free: 10.65 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.016e-05/0.1353, allocations: 55.34 kB / 441.3 MB, free: 10.59 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001776/0.1354, allocations: 101 kB / 441.4 MB, free: 10.47 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1355, allocations: 0 / 441.4 MB, free: 10.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000202/0.1357, allocations: 129 kB / 441.5 MB, free: 10.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.947e-05/0.1357, allocations: 37.69 kB / 441.5 MB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1357, allocations: 4.062 kB / 441.5 MB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.1357, allocations: 3.938 kB / 441.5 MB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.254e-05/0.1358, allocations: 8 kB / 441.6 MB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.1358, allocations: 3.938 kB / 441.6 MB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.241e-05/0.1358, allocations: 7.984 kB / 441.6 MB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.1358, allocations: 0 / 441.6 MB, free: 10.25 MB / 414.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.0001799/0.136, allocations: 143.5 kB / 441.7 MB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.957e-05/0.136, allocations: 7.953 kB / 441.7 MB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.535e-05/0.1361, allocations: 16.05 kB / 441.7 MB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-06/0.1361, allocations: 0 / 441.7 MB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1361, allocations: 0 / 441.7 MB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1361, allocations: 4 kB / 441.7 MB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001095/0.1362, allocations: 105.3 kB / 441.8 MB, free: 9.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1362, allocations: 0 / 441.8 MB, free: 9.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.757e-05/0.1362, allocations: 4.25 kB / 441.8 MB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.1362, allocations: 0 / 441.8 MB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.1362, allocations: 8.047 kB / 441.8 MB, free: 9.926 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.1362, allocations: 3.938 kB / 441.9 MB, free: 9.922 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1362, allocations: 3.984 kB / 441.9 MB, free: 9.918 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002708/0.1365, allocations: 184.4 kB / 442 MB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.707e-05/0.1365, allocations: 7.953 kB / 442 MB, free: 9.699 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.1365, allocations: 3.984 kB / 442 MB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.778e-05/0.1366, allocations: 7.938 kB / 442.1 MB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.546e-05/0.1366, allocations: 4 kB / 442.1 MB, free: 9.684 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.1366, allocations: 4 kB / 442.1 MB, free: 9.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.453e-05/0.1367, allocations: 95.56 kB / 442.2 MB, free: 9.586 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1367, allocations: 0 / 442.2 MB, free: 9.586 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002397/0.1369, allocations: 23.88 kB / 442.2 MB, free: 9.562 MB / 414.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.0004809/0.1374, allocations: 189.9 kB / 442.4 MB, free: 9.402 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002586/0.1377, allocations: 154.8 kB / 442.5 MB, free: 9.227 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1377, allocations: 0 / 442.5 MB, free: 9.227 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.1378, allocations: 109 kB / 442.6 MB, free: 9.102 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001519/0.138, allocations: 8 kB / 442.6 MB, free: 9.094 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003868/0.1384, allocations: 163 kB / 442.8 MB, free: 8.902 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.721e-05/0.1384, allocations: 63.34 kB / 442.9 MB, free: 8.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.934e-05/0.1385, allocations: 0 / 442.9 MB, free: 8.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.415e-05/0.1385, allocations: 16.69 kB / 442.9 MB, free: 8.801 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.1385, allocations: 0 / 442.9 MB, free: 8.801 MB / 414.1 MB Notification: Performance of Templates: time 0.004019/0.1425, allocations: 0.9484 MB / 443.8 MB, free: 7.863 MB / 414.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 -s ida -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.533747832057998] Failed to read output from testmodel.py, exit status != 0: 0.15227368206251413 0.17478881099999996 0.039261915 Calling exit ...