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.0011/0.0011, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003916/0.005016, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001005/0.001005, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001336/0.002342, allocations: 483.5 kB / 11.83 MB, free: 2.34 MB / 13.93 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 0.9497/0.9497, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1202/1.07, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo): time 0.005781/0.005781, allocations: 0.7829 MB / 245 MB, free: 13.98 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/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.1/writeLine.mo:2:1-61:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of NFInstanceAPI.mkTop(): time 0.001856/0.007637, allocations: 0.6432 MB / 245.6 MB, free: 13.34 MB / 250.7 MB " [Timeout remaining time 180] Using package KeyWordIO with version 0.12.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/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: Performance of FrontEnd - loaded program: time 1.042e-06/1.042e-06, allocations: 0 / 246.9 MB, free: 12.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.248e-05/1.353e-05, allocations: 6.312 kB / 246.9 MB, free: 12.06 MB / 250.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002264/0.002278, allocations: 1.475 MB / 248.4 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008394/0.003117, allocations: 0.9789 MB / 249.3 MB, free: 9.594 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.842e-05/0.003135, allocations: 0 / 249.3 MB, free: 9.594 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.316e-05/0.003149, allocations: 3.938 kB / 249.3 MB, free: 9.59 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.932e-05/0.003208, allocations: 15.86 kB / 249.3 MB, free: 9.574 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/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.0001391/0.003347, allocations: 39.83 kB / 249.4 MB, free: 9.535 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 5.833e-05/0.003405, allocations: 27.86 kB / 249.4 MB, free: 9.508 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.072e-05/0.003426, allocations: 4 kB / 249.4 MB, free: 9.504 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.233e-05/0.003478, allocations: 23.97 kB / 249.4 MB, free: 9.48 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.17e-05/0.00353, allocations: 11.94 kB / 249.5 MB, free: 9.469 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.817e-06/0.003539, allocations: 0 / 249.5 MB, free: 9.469 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.593e-05/0.003625, allocations: 55.81 kB / 249.5 MB, free: 9.414 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.067e-05/0.003636, allocations: 0 / 249.5 MB, free: 9.414 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.773e-05/0.003653, allocations: 11.94 kB / 249.5 MB, free: 9.402 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.878e-05/0.003752, allocations: 51.89 kB / 249.6 MB, free: 9.352 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.00376, allocations: 0 / 249.6 MB, free: 9.352 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.3e-07/0.00376, allocations: 0 / 249.6 MB, free: 9.352 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.003768, allocations: 4 kB / 249.6 MB, free: 9.348 MB / 250.7 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.0002715/0.004039, allocations: 282.1 kB / 249.9 MB, free: 9.039 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.355e-05/0.004063, allocations: 8.031 kB / 249.9 MB, free: 9.031 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.657e-05/0.00409, allocations: 8.922 kB / 249.9 MB, free: 9.023 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.084e-05/0.00416, allocations: 113.7 kB / 250 MB, free: 8.887 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.004171, allocations: 12.31 kB / 250 MB, free: 8.875 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-06/0.004179, allocations: 384 / 250 MB, free: 8.875 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.778e-05/0.004257, allocations: 84.66 kB / 250.1 MB, free: 8.777 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.548e-06/0.004261, allocations: 192 / 250.1 MB, free: 8.777 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-06/0.004268, allocations: 4.359 kB / 250.1 MB, free: 8.773 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.004272, allocations: 4.375 kB / 250.1 MB, free: 8.77 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.98e-05/0.004292, allocations: 37.62 kB / 250.1 MB, free: 8.727 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.72e-05/0.004349, allocations: 57.05 kB / 250.2 MB, free: 8.656 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.628e-05/0.004385, allocations: 52.22 kB / 250.2 MB, free: 8.59 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.163e-05/0.004407, allocations: 42.67 kB / 250.3 MB, free: 8.539 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.85e-06/0.004412, allocations: 0 / 250.3 MB, free: 8.539 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.999e-05/0.004512, allocations: 170.2 kB / 250.4 MB, free: 8.336 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 6.01e-07/0.004512, allocations: 4 kB / 250.4 MB, free: 8.332 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001206/0.004633, allocations: 150.8 kB / 250.6 MB, free: 8.16 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.004688, allocations: 166.1 kB / 250.7 MB, free: 7.961 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.106e-05/0.004739, allocations: 114.7 kB / 250.9 MB, free: 7.836 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.308e-06/0.004748, allocations: 25.7 kB / 250.9 MB, free: 7.805 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.919e-05/0.004767, allocations: 84.14 kB / 251 MB, free: 7.719 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.722e-05/0.004784, allocations: 7.906 kB / 251 MB, free: 7.711 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.398e-05/0.004808, allocations: 25.7 kB / 251 MB, free: 7.68 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.79e-05/0.004876, allocations: 318.8 kB / 251.3 MB, free: 7.359 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.638e-05/0.004893, allocations: 29.7 kB / 251.3 MB, free: 7.324 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.563e-05/0.004918, allocations: 51.39 kB / 251.4 MB, free: 7.262 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.69e-05/0.004975, allocations: 89.05 kB / 251.5 MB, free: 7.156 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.004977, allocations: 4 kB / 251.5 MB, free: 7.152 MB / 250.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 6.595e-05/0.005043, allocations: 109.1 kB / 251.6 MB, free: 7.027 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.005069, allocations: 33.7 kB / 251.6 MB, free: 6.988 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.005073, allocations: 3.938 kB / 251.6 MB, free: 6.984 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.496e-06/0.005081, allocations: 0 / 251.6 MB, free: 6.984 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.644e-05/0.005128, allocations: 11.94 kB / 251.6 MB, free: 6.973 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.186e-06/0.005131, allocations: 0 / 251.6 MB, free: 6.973 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.421e-05/0.005155, allocations: 7.984 kB / 251.6 MB, free: 6.965 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.005162, allocations: 3.938 kB / 251.6 MB, free: 6.961 MB / 250.7 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 8.978e-05/0.005252, allocations: 151.5 kB / 251.8 MB, free: 6.797 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/0.005262, allocations: 11.98 kB / 251.8 MB, free: 6.785 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.236e-05/0.005275, allocations: 4.125 kB / 251.8 MB, free: 6.781 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.005277, allocations: 0 / 251.8 MB, free: 6.781 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-06/0.005278, allocations: 0 / 251.8 MB, free: 6.781 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.005281, allocations: 0 / 251.8 MB, free: 6.781 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.234e-05/0.005333, allocations: 77.81 kB / 251.9 MB, free: 6.688 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.005334, allocations: 256 / 251.9 MB, free: 6.688 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.207e-05/0.005346, allocations: 8 kB / 251.9 MB, free: 6.68 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.272e-06/0.005352, allocations: 3.953 kB / 251.9 MB, free: 6.676 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.005354, allocations: 4 kB / 251.9 MB, free: 6.672 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.00536, allocations: 4 kB / 251.9 MB, free: 6.668 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.00536, allocations: 0 / 251.9 MB, free: 6.668 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.005361, allocations: 0 / 251.9 MB, free: 6.668 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.777e-05/0.005459, allocations: 160.4 kB / 252.1 MB, free: 6.48 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.005472, allocations: 0 / 252.1 MB, free: 6.48 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.638e-05/0.005488, allocations: 4 kB / 252.1 MB, free: 6.477 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.637e-05/0.005514, allocations: 3.984 kB / 252.1 MB, free: 6.473 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.709e-06/0.005524, allocations: 4 kB / 252.1 MB, free: 6.469 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.565e-05/0.00554, allocations: 12.84 kB / 252.1 MB, free: 6.453 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00554, allocations: 4 kB / 252.1 MB, free: 6.449 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001173/0.005657, allocations: 28.02 kB / 252.1 MB, free: 6.422 MB / 250.7 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.0003433/0.006, allocations: 220.7 kB / 252.3 MB, free: 6.258 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001089/0.006109, allocations: 151.6 kB / 252.5 MB, free: 6.082 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.006112, allocations: 0 / 252.5 MB, free: 6.082 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.468e-05/0.006167, allocations: 113.9 kB / 252.6 MB, free: 5.949 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.151e-05/0.006229, allocations: 23.72 kB / 252.6 MB, free: 5.93 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000334/0.006563, allocations: 162.2 kB / 252.8 MB, free: 5.738 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.228e-05/0.006595, allocations: 59.34 kB / 252.8 MB, free: 5.66 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.148e-05/0.006606, allocations: 4.281 kB / 252.8 MB, free: 5.656 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.539e-05/0.006672, allocations: 71.34 kB / 252.9 MB, free: 5.586 MB / 250.7 MB Notification: Performance of SimCode: time 3.81e-07/0.006672, allocations: 0 / 252.9 MB, free: 5.586 MB / 250.7 MB Notification: Performance of Templates: time 0.002282/0.008954, allocations: 1.013 MB / 253.9 MB, free: 4.578 MB / 250.7 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=240 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.634940007701516]