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.0009179/0.0009179, allocations: 92.7 kB / 20.21 MB, free: 4.227 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.001564/0.001564, allocations: 161.3 kB / 23.51 MB, free: 0.918 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.9421/0.9421, allocations: 177.2 MB / 203.9 MB, free: 5.578 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.003873/0.003873, allocations: 0.8078 MB / 261.1 MB, free: 12.27 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.723e-06/1.723e-06, allocations: 0 / 330.6 MB, free: 19.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.996e-05/3.168e-05, allocations: 8.922 kB / 330.6 MB, free: 19.27 MB / 266.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001898/0.00193, allocations: 1.395 MB / 332 MB, free: 17.87 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007267/0.002657, allocations: 0.9156 MB / 332.9 MB, free: 16.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.02e-05/0.002677, allocations: 0 / 332.9 MB, free: 16.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.474e-05/0.002692, allocations: 3.938 kB / 332.9 MB, free: 16.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.002831, allocations: 15.91 kB / 332.9 MB, free: 16.93 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.0001874/0.003019, allocations: 47.7 kB / 333 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.472e-05/0.003083, allocations: 27.92 kB / 333 MB, free: 16.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.439e-05/0.003108, allocations: 0 / 333 MB, free: 16.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.465e-05/0.003142, allocations: 23.97 kB / 333 MB, free: 16.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.516e-05/0.003188, allocations: 11.92 kB / 333 MB, free: 16.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.128e-06/0.003197, allocations: 0 / 333 MB, free: 16.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.355e-05/0.00327, allocations: 39.97 kB / 333.1 MB, free: 16.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.426e-06/0.003279, allocations: 3.984 kB / 333.1 MB, free: 16.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.98e-05/0.003298, allocations: 7.938 kB / 333.1 MB, free: 16.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.0034, allocations: 75.73 kB / 333.1 MB, free: 16.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.003402, allocations: 0 / 333.1 MB, free: 16.7 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.003403, allocations: 0 / 333.1 MB, free: 16.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.297e-06/0.003406, allocations: 0 / 333.1 MB, free: 16.7 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.0002096/0.003615, allocations: 299.9 kB / 333.4 MB, free: 16.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.382e-05/0.003639, allocations: 16.03 kB / 333.5 MB, free: 16.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.474e-05/0.003664, allocations: 8.891 kB / 333.5 MB, free: 16.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.961e-05/0.003714, allocations: 109.8 kB / 333.6 MB, free: 16.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.799e-06/0.003718, allocations: 384 / 333.6 MB, free: 16.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.546e-06/0.003727, allocations: 384 / 333.6 MB, free: 16.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.81e-05/0.003795, allocations: 75.94 kB / 333.6 MB, free: 16.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.599e-06/0.0038, allocations: 4.125 kB / 333.7 MB, free: 16.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.443e-06/0.003806, allocations: 384 / 333.7 MB, free: 16.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-06/0.003808, allocations: 4.375 kB / 333.7 MB, free: 16.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.623e-05/0.003844, allocations: 49.62 kB / 333.7 MB, free: 16.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.195e-05/0.003906, allocations: 109.4 kB / 333.8 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.891e-05/0.003945, allocations: 56.27 kB / 333.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.635e-05/0.003972, allocations: 42.59 kB / 333.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-06/0.003978, allocations: 0 / 333.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.506e-05/0.004073, allocations: 182.1 kB / 334.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 6.91e-07/0.004074, allocations: 0 / 334.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001702/0.004244, allocations: 178.8 kB / 334.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.262e-05/0.004267, allocations: 136.5 kB / 334.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.538e-05/0.004302, allocations: 113.8 kB / 334.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.16e-06/0.004307, allocations: 29.7 kB / 334.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.112e-05/0.004319, allocations: 80.14 kB / 334.6 MB, free: 14.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.004336, allocations: 19.84 kB / 334.6 MB, free: 14.97 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.953e-05/0.004356, allocations: 17.7 kB / 334.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.38e-05/0.004379, allocations: 314.8 kB / 335 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.399e-05/0.004403, allocations: 45.62 kB / 335 MB, free: 14.58 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.788e-05/0.004431, allocations: 51.41 kB / 335.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.574e-05/0.004507, allocations: 101.1 kB / 335.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.004508, allocations: 0 / 335.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 7.872e-05/0.004587, allocations: 133.3 kB / 335.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.004604, allocations: 37.69 kB / 335.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-06/0.004607, allocations: 0 / 335.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.177e-06/0.004616, allocations: 0 / 335.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.653e-05/0.004653, allocations: 11.94 kB / 335.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.004658, allocations: 7.938 kB / 335.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.266e-05/0.00468, allocations: 20 kB / 335.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.004686, allocations: 0 / 335.4 MB, free: 14.17 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 8.317e-05/0.00477, allocations: 147.5 kB / 335.5 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.142e-05/0.004781, allocations: 7.984 kB / 335.5 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.244e-05/0.004793, allocations: 12.11 kB / 335.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-06/0.004794, allocations: 0 / 335.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.004797, allocations: 0 / 335.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.004801, allocations: 3.938 kB / 335.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.334e-05/0.004844, allocations: 113.3 kB / 335.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-07/0.004845, allocations: 0 / 335.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.404e-05/0.004859, allocations: 8 kB / 335.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.61e-07/0.004859, allocations: 0 / 335.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.004865, allocations: 0 / 335.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.004866, allocations: 0 / 335.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.004867, allocations: 4 kB / 335.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001064/0.004973, allocations: 184.4 kB / 335.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.752e-06/0.00498, allocations: 4 kB / 335.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.004991, allocations: 0 / 335.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.615e-05/0.005007, allocations: 11.92 kB / 335.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.931e-05/0.005037, allocations: 8.031 kB / 335.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-06/0.005045, allocations: 4 kB / 335.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.743e-05/0.005062, allocations: 91.2 kB / 335.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005062, allocations: 0 / 335.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001512/0.005214, allocations: 23.94 kB / 336 MB, free: 13.48 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.0002313/0.005445, allocations: 195.9 kB / 336.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001094/0.005554, allocations: 150.8 kB / 336.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.32e-07/0.005555, allocations: 0 / 336.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.059e-05/0.005596, allocations: 116.9 kB / 336.4 MB, free: 13.01 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.791e-05/0.005694, allocations: 8.188 kB / 336.4 MB, free: 13 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001747/0.005868, allocations: 158.2 kB / 336.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.142e-05/0.00589, allocations: 63.34 kB / 336.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.18e-05/0.005902, allocations: 7.984 kB / 336.7 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.269e-05/0.005914, allocations: 12.5 kB / 336.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of SimCode: time 3.61e-07/0.005915, allocations: 0 / 336.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of Templates: time 0.001999/0.007914, allocations: 0.9799 MB / 337.6 MB, free: 11.74 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=480 -s gbode -gbm=radauIIA3 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 2.656326124444604]