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.001121/0.001121, allocations: 75.73 kB / 20.97 MB, free: 3.574 MB / 18.57 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.001602/0.001602, allocations: 173 kB / 24.28 MB, free: 276 kB / 18.57 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.9724/0.9724, allocations: 177.1 MB / 204.6 MB, free: 5.641 MB / 186.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.004139/0.004139, allocations: 0.7903 MB / 261.9 MB, free: 12.34 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. " [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.432e-06/1.432e-06, allocations: 0 / 331.3 MB, free: 19.27 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.431e-05/1.574e-05, allocations: 14.25 kB / 331.3 MB, free: 19.25 MB / 266.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001435/0.001451, allocations: 1.42 MB / 332.8 MB, free: 17.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007236/0.002175, allocations: 0.9427 MB / 333.7 MB, free: 16.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.065e-05/0.002205, allocations: 0 / 333.7 MB, free: 16.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.256e-05/0.002228, allocations: 4 kB / 333.7 MB, free: 16.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002078/0.002436, allocations: 19.8 kB / 333.7 MB, free: 16.86 MB / 266.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.0002125/0.002648, allocations: 39.83 kB / 333.8 MB, free: 16.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.669e-05/0.002725, allocations: 23.92 kB / 333.8 MB, free: 16.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.233e-05/0.002757, allocations: 3.984 kB / 333.8 MB, free: 16.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.513e-05/0.002802, allocations: 19.92 kB / 333.8 MB, free: 16.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.99e-05/0.002862, allocations: 11.98 kB / 333.8 MB, free: 16.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.002874, allocations: 0 / 333.8 MB, free: 16.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.346e-05/0.002957, allocations: 47.83 kB / 333.9 MB, free: 16.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.291e-05/0.00297, allocations: 7.938 kB / 333.9 MB, free: 16.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.709e-05/0.002997, allocations: 8 kB / 333.9 MB, free: 16.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.003127, allocations: 67.8 kB / 334 MB, free: 16.63 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.003129, allocations: 0 / 334 MB, free: 16.63 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.9e-07/0.003129, allocations: 0 / 334 MB, free: 16.63 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.003133, allocations: 0 / 334 MB, free: 16.63 MB / 266.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.0002928/0.003426, allocations: 398.2 kB / 334.3 MB, free: 16.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.003459, allocations: 8.031 kB / 334.4 MB, free: 16.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.895e-05/0.003498, allocations: 8.891 kB / 334.4 MB, free: 16.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.461e-05/0.003573, allocations: 116.6 kB / 334.5 MB, free: 16.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.003583, allocations: 384 / 334.5 MB, free: 16.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.003594, allocations: 8.312 kB / 334.5 MB, free: 16.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.003699, allocations: 80.66 kB / 334.6 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.092e-06/0.003705, allocations: 192 / 334.6 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.003714, allocations: 4.375 kB / 334.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.003721, allocations: 4.359 kB / 334.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.158e-05/0.003742, allocations: 33.64 kB / 334.6 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.749e-05/0.00383, allocations: 124.6 kB / 334.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.705e-05/0.003867, allocations: 56.77 kB / 334.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.281e-05/0.00389, allocations: 45.36 kB / 334.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.743e-06/0.003896, allocations: 4.047 kB / 334.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.059e-05/0.003977, allocations: 171.9 kB / 335 MB, free: 15.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 7.42e-07/0.003978, allocations: 0 / 335 MB, free: 15.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001747/0.004152, allocations: 170.8 kB / 335.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.004181, allocations: 140.4 kB / 335.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.823e-05/0.004229, allocations: 173.9 kB / 335.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.911e-06/0.004235, allocations: 25.7 kB / 335.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.742e-05/0.004252, allocations: 130.8 kB / 335.6 MB, free: 14.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.004274, allocations: 15.91 kB / 335.6 MB, free: 14.67 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-05/0.004295, allocations: 19.38 kB / 335.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.709e-05/0.004332, allocations: 0.4923 MB / 336.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.569e-05/0.004348, allocations: 29.7 kB / 336.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.157e-05/0.00437, allocations: 61.09 kB / 336.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.976e-05/0.004419, allocations: 94.75 kB / 336.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.004421, allocations: 0 / 336.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 6.831e-05/0.004489, allocations: 121.1 kB / 336.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.004508, allocations: 33.7 kB / 336.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.004513, allocations: 0 / 336.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.004525, allocations: 0 / 336.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.439e-05/0.00459, allocations: 8 kB / 336.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.004596, allocations: 11.86 kB / 336.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.126e-05/0.004617, allocations: 12.02 kB / 336.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.004623, allocations: 0 / 336.5 MB, free: 13.71 MB / 266.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 7.972e-05/0.004703, allocations: 194.3 kB / 336.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.019e-05/0.004713, allocations: 8 kB / 336.7 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.409e-05/0.004727, allocations: 4.125 kB / 336.7 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.004728, allocations: 0 / 336.7 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.004731, allocations: 0 / 336.7 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.004734, allocations: 3.938 kB / 336.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.125e-05/0.004775, allocations: 120.6 kB / 336.8 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-07/0.004776, allocations: 4 kB / 336.8 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.478e-06/0.004785, allocations: 4 kB / 336.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.91e-07/0.004786, allocations: 0 / 336.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.004794, allocations: 0 / 336.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.61e-07/0.004794, allocations: 0 / 336.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.004795, allocations: 4 kB / 336.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.56e-05/0.00489, allocations: 195.9 kB / 337 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.104e-06/0.004897, allocations: 4 kB / 337 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.004912, allocations: 4 kB / 337 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.465e-05/0.004927, allocations: 0 / 337 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/0.00496, allocations: 8 kB / 337.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.368e-06/0.004969, allocations: 12.02 kB / 337.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.913e-05/0.004989, allocations: 127.1 kB / 337.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004989, allocations: 3.938 kB / 337.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001486/0.005137, allocations: 27.94 kB / 337.2 MB, free: 12.91 MB / 266.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.0002867/0.005424, allocations: 194.1 kB / 337.4 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.00553, allocations: 158.4 kB / 337.6 MB, free: 12.56 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.005531, allocations: 0 / 337.6 MB, free: 12.56 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.589e-05/0.005567, allocations: 104.8 kB / 337.7 MB, free: 12.44 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001033/0.005671, allocations: 8 kB / 337.7 MB, free: 12.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002147/0.005885, allocations: 170.6 kB / 337.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.85e-05/0.005904, allocations: 59.22 kB / 337.9 MB, free: 12.15 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.195e-05/0.005916, allocations: 3.984 kB / 337.9 MB, free: 12.15 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.277e-05/0.005928, allocations: 8.5 kB / 337.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.005929, allocations: 0 / 337.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of Templates: time 0.002277/0.008206, allocations: 0.9904 MB / 338.9 MB, free: 11.17 MB / 266.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.7848180199507624]