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.00116/0.00116, allocations: 83.59 kB / 20.45 MB, free: 4.113 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.001366/0.001366, allocations: 165 kB / 23.82 MB, free: 0.7461 MB / 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.9495/0.9495, allocations: 177.2 MB / 204.2 MB, free: 5.59 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.004116/0.004116, allocations: 0.8051 MB / 261.6 MB, free: 12.22 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.052e-06/1.052e-06, allocations: 0 / 331.4 MB, free: 3.973 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.153e-05/1.258e-05, allocations: 6.25 kB / 331.4 MB, free: 3.965 MB / 298.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001579/0.001592, allocations: 1.42 MB / 332.8 MB, free: 2.531 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008405/0.002433, allocations: 0.9388 MB / 333.7 MB, free: 1.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.627e-05/0.002459, allocations: 3.938 kB / 333.7 MB, free: 1.586 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.688e-05/0.002486, allocations: 0 / 333.7 MB, free: 1.586 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001849/0.002671, allocations: 15.88 kB / 333.7 MB, free: 1.57 MB / 298.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.0001849/0.002855, allocations: 39.83 kB / 333.8 MB, free: 1.531 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.818e-05/0.002924, allocations: 31.86 kB / 333.8 MB, free: 1.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.658e-05/0.00295, allocations: 3.984 kB / 333.8 MB, free: 1.496 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.057e-05/0.002991, allocations: 15.98 kB / 333.8 MB, free: 1.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.366e-05/0.003044, allocations: 11.92 kB / 333.8 MB, free: 1.469 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.003055, allocations: 0 / 333.8 MB, free: 1.469 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.386e-05/0.003139, allocations: 47.89 kB / 333.9 MB, free: 1.422 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.022e-05/0.00315, allocations: 3.938 kB / 333.9 MB, free: 1.418 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.329e-05/0.003173, allocations: 8 kB / 333.9 MB, free: 1.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.0033, allocations: 67.8 kB / 334 MB, free: 1.344 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.003301, allocations: 0 / 334 MB, free: 1.344 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.003302, allocations: 0 / 334 MB, free: 1.344 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.387e-06/0.003305, allocations: 4 kB / 334 MB, free: 1.34 MB / 298.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.000319/0.003624, allocations: 402.2 kB / 334.4 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.935e-05/0.003654, allocations: 8.031 kB / 334.4 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.343e-05/0.003687, allocations: 4.938 kB / 334.4 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.626e-05/0.003773, allocations: 116.6 kB / 334.5 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.003783, allocations: 384 / 334.5 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.003794, allocations: 4.375 kB / 334.5 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001014/0.003895, allocations: 88.58 kB / 334.6 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.003904, allocations: 192 / 334.6 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-06/0.003914, allocations: 8.312 kB / 334.6 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.00392, allocations: 4.375 kB / 334.6 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.407e-05/0.003945, allocations: 33.64 kB / 334.6 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000103/0.004048, allocations: 120.6 kB / 334.7 MB, free: 448 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.51e-05/0.004093, allocations: 56.77 kB / 334.8 MB, free: 372 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.829e-05/0.004121, allocations: 45.45 kB / 334.8 MB, free: 316 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.833e-06/0.004128, allocations: 4 kB / 334.8 MB, free: 312 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000104/0.004232, allocations: 171.8 kB / 335 MB, free: 100 kB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 6.92e-07/0.004232, allocations: 0 / 335 MB, free: 100 kB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002027/0.004435, allocations: 166.8 kB / 335.2 MB, free: 15.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.00448, allocations: 132.5 kB / 335.3 MB, free: 15.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.067e-05/0.004551, allocations: 177.8 kB / 335.5 MB, free: 15.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.336e-06/0.004559, allocations: 25.7 kB / 335.5 MB, free: 15.53 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.407e-05/0.004593, allocations: 138.8 kB / 335.6 MB, free: 15.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.004612, allocations: 3.953 kB / 335.6 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.658e-05/0.004639, allocations: 27.36 kB / 335.7 MB, free: 15.35 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.004739, allocations: 496.1 kB / 336.2 MB, free: 14.85 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.318e-05/0.004762, allocations: 33.89 kB / 336.2 MB, free: 14.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.862e-05/0.004791, allocations: 57.06 kB / 336.2 MB, free: 14.74 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.469e-05/0.004856, allocations: 94.77 kB / 336.3 MB, free: 14.63 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.004857, allocations: 4 kB / 336.3 MB, free: 14.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 7.993e-05/0.004937, allocations: 125 kB / 336.5 MB, free: 14.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.004959, allocations: 33.7 kB / 336.5 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.004963, allocations: 0 / 336.5 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.004977, allocations: 4 kB / 336.5 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.626e-05/0.005033, allocations: 7.984 kB / 336.5 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.005039, allocations: 3.938 kB / 336.5 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.966e-05/0.005058, allocations: 4 kB / 336.5 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.005064, allocations: 0 / 336.5 MB, free: 14.43 MB / 314.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 9.503e-05/0.005159, allocations: 198.3 kB / 336.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.304e-05/0.005172, allocations: 12.05 kB / 336.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.751e-05/0.00519, allocations: 8.109 kB / 336.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.005191, allocations: 0 / 336.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.005194, allocations: 0 / 336.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.005197, allocations: 3.938 kB / 336.7 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.16e-05/0.005258, allocations: 124.6 kB / 336.9 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.005259, allocations: 3.938 kB / 336.9 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.568e-06/0.005268, allocations: 4 kB / 336.9 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.72e-07/0.005269, allocations: 0 / 336.9 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.005276, allocations: 7.984 kB / 336.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-07/0.005277, allocations: 0 / 336.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.005278, allocations: 4 kB / 336.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001197/0.005397, allocations: 187.7 kB / 337.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.095e-06/0.005405, allocations: 3.953 kB / 337.1 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.00542, allocations: 4.062 kB / 337.1 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.524e-05/0.005436, allocations: 4 kB / 337.1 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.059e-05/0.005466, allocations: 7.984 kB / 337.1 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.005476, allocations: 8 kB / 337.1 MB, free: 13.77 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.329e-05/0.005509, allocations: 127.1 kB / 337.2 MB, free: 13.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005509, allocations: 0 / 337.2 MB, free: 13.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000157/0.005666, allocations: 35.95 kB / 337.2 MB, free: 13.61 MB / 314.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.0002767/0.005943, allocations: 198.5 kB / 337.4 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001209/0.006064, allocations: 150.5 kB / 337.6 MB, free: 13.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.006065, allocations: 0 / 337.6 MB, free: 13.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.15e-05/0.006117, allocations: 112.7 kB / 337.7 MB, free: 13.14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.776e-05/0.006215, allocations: 4 kB / 337.7 MB, free: 13.14 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002235/0.006438, allocations: 168.5 kB / 337.9 MB, free: 12.94 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.767e-05/0.006466, allocations: 59.34 kB / 337.9 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.102e-05/0.006477, allocations: 4.188 kB / 337.9 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.59e-05/0.006493, allocations: 8.5 kB / 337.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of SimCode: time 6.62e-07/0.006493, allocations: 0 / 337.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of Templates: time 0.002317/0.00881, allocations: 0.9745 MB / 338.9 MB, free: 11.88 MB / 314.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.951290732715279]