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.001296/0.001296, allocations: 87.58 kB / 20.45 MB, free: 4.121 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.001363/0.001363, allocations: 161 kB / 23.82 MB, free: 0.7539 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.9549/0.9549, allocations: 177.1 MB / 204.2 MB, free: 5.602 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.00388/0.00388, allocations: 0.7977 MB / 261.5 MB, free: 12.23 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 2.454e-06/2.454e-06, allocations: 0 / 331.3 MB, free: 18.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.672e-05/3.917e-05, allocations: 6.25 kB / 331.3 MB, free: 18.92 MB / 266.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002696/0.002735, allocations: 1.43 MB / 332.8 MB, free: 17.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.003821, allocations: 0.9388 MB / 333.7 MB, free: 16.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.244e-05/0.003853, allocations: 3.938 kB / 333.7 MB, free: 16.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.023e-05/0.003884, allocations: 4 kB / 333.7 MB, free: 16.53 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002312/0.004115, allocations: 11.86 kB / 333.7 MB, free: 16.52 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.0002428/0.004358, allocations: 43.83 kB / 333.8 MB, free: 16.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 8.565e-05/0.004443, allocations: 27.91 kB / 333.8 MB, free: 16.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.754e-05/0.004481, allocations: 15.88 kB / 333.8 MB, free: 16.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.905e-05/0.00453, allocations: 7.984 kB / 333.8 MB, free: 16.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.934e-05/0.004599, allocations: 8 kB / 333.8 MB, free: 16.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.004615, allocations: 4 kB / 333.8 MB, free: 16.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001201/0.004735, allocations: 51.83 kB / 333.9 MB, free: 16.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.363e-05/0.004748, allocations: 0 / 333.9 MB, free: 16.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.149e-05/0.00478, allocations: 7.984 kB / 333.9 MB, free: 16.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.00495, allocations: 67.78 kB / 334 MB, free: 16.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.004955, allocations: 0 / 334 MB, free: 16.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.004957, allocations: 0 / 334 MB, free: 16.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.004962, allocations: 0 / 334 MB, free: 16.29 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.0004238/0.005386, allocations: 398.2 kB / 334.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.005432, allocations: 12.03 kB / 334.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.659e-05/0.005488, allocations: 8.891 kB / 334.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.00559, allocations: 120.5 kB / 334.5 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.005606, allocations: 384 / 334.5 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.232e-05/0.005619, allocations: 384 / 334.5 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/0.005784, allocations: 80.66 kB / 334.6 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.005794, allocations: 192 / 334.6 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.005806, allocations: 384 / 334.6 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.005815, allocations: 384 / 334.6 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.84e-05/0.005844, allocations: 45.62 kB / 334.6 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001247/0.005968, allocations: 124.5 kB / 334.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.081e-05/0.006019, allocations: 68.73 kB / 334.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.378e-05/0.006043, allocations: 37.42 kB / 334.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.414e-06/0.00605, allocations: 0 / 334.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001034/0.006154, allocations: 175.9 kB / 335 MB, free: 15.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 1.303e-06/0.006155, allocations: 0 / 335 MB, free: 15.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002151/0.00637, allocations: 170.7 kB / 335.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.006405, allocations: 132.5 kB / 335.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.6e-05/0.006461, allocations: 173.9 kB / 335.5 MB, free: 14.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.642e-06/0.006467, allocations: 29.73 kB / 335.5 MB, free: 14.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.057e-05/0.006488, allocations: 134.8 kB / 335.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.56e-05/0.006513, allocations: 15.91 kB / 335.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.00654, allocations: 19.38 kB / 335.7 MB, free: 14.29 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.158e-05/0.006591, allocations: 0.4884 MB / 336.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.61e-05/0.006627, allocations: 33.7 kB / 336.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.482e-05/0.006652, allocations: 49.08 kB / 336.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.316e-05/0.006715, allocations: 98.73 kB / 336.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.006718, allocations: 0 / 336.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 7.992e-05/0.006798, allocations: 121.1 kB / 336.5 MB, free: 13.44 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.006823, allocations: 37.69 kB / 336.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.006827, allocations: 0 / 336.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.00684, allocations: 0 / 336.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.374e-05/0.006914, allocations: 7.938 kB / 336.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.00692, allocations: 7.938 kB / 336.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.616e-05/0.006946, allocations: 3.953 kB / 336.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.006954, allocations: 7.984 kB / 336.5 MB, free: 13.37 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 0.0001106/0.007064, allocations: 194.3 kB / 336.7 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.211e-05/0.007076, allocations: 4 kB / 336.7 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.837e-05/0.007095, allocations: 12.11 kB / 336.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.007097, allocations: 0 / 336.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.0071, allocations: 0 / 336.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.007104, allocations: 3.938 kB / 336.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.003e-05/0.007154, allocations: 120.6 kB / 336.8 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.007156, allocations: 0 / 336.8 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.36e-05/0.007169, allocations: 0 / 336.8 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.007171, allocations: 0 / 336.8 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.007179, allocations: 7.938 kB / 336.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.00718, allocations: 4 kB / 336.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.007182, allocations: 256 / 336.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001142/0.007296, allocations: 195.7 kB / 337.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.077e-05/0.007307, allocations: 4 kB / 337.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.007324, allocations: 7.984 kB / 337.1 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.814e-05/0.007342, allocations: 4 kB / 337.1 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.903e-05/0.007381, allocations: 4 kB / 337.1 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.007393, allocations: 0 / 337.1 MB, free: 12.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.317e-05/0.007416, allocations: 139.1 kB / 337.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007416, allocations: 0 / 337.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001666/0.007583, allocations: 19.94 kB / 337.2 MB, free: 12.57 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.0003325/0.007915, allocations: 206.3 kB / 337.4 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001351/0.00805, allocations: 146.4 kB / 337.6 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.008052, allocations: 0 / 337.6 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.904e-05/0.008091, allocations: 112.8 kB / 337.7 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000139/0.00823, allocations: 8 kB / 337.7 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003022/0.008532, allocations: 162.4 kB / 337.8 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.429e-05/0.008556, allocations: 59.22 kB / 337.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.218e-05/0.008569, allocations: 4 kB / 337.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.766e-05/0.008586, allocations: 12.69 kB / 337.9 MB, free: 11.8 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.008587, allocations: 0 / 337.9 MB, free: 11.8 MB / 266.7 MB Notification: Performance of Templates: time 0.003149/0.01174, allocations: 1.058 MB / 339 MB, free: 10.76 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.7356167738325894]