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.001551/0.001551, allocations: 92.7 kB / 19.44 MB, free: 324 kB / 13.93 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.00201/0.00201, allocations: 161.3 kB / 22.75 MB, free: 1.656 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 1.456/1.456, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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.007228/0.007228, allocations: 0.7997 MB / 260.4 MB, free: 12.3 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.415e-06/2.415e-06, allocations: 3.984 kB / 329.8 MB, free: 19.27 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.385e-05/2.627e-05, allocations: 10.25 kB / 329.8 MB, free: 19.26 MB / 266.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001863/0.001889, allocations: 1.393 MB / 331.2 MB, free: 17.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009426/0.002832, allocations: 0.9195 MB / 332.1 MB, free: 16.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.662e-05/0.002858, allocations: 0 / 332.1 MB, free: 16.94 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.834e-05/0.002887, allocations: 0 / 332.1 MB, free: 16.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000222/0.003109, allocations: 15.86 kB / 332.1 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.0002418/0.00335, allocations: 43.77 kB / 332.2 MB, free: 16.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.401e-05/0.003424, allocations: 27.91 kB / 332.2 MB, free: 16.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.802e-05/0.003462, allocations: 4 kB / 332.2 MB, free: 16.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.509e-05/0.003518, allocations: 15.92 kB / 332.2 MB, free: 16.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.257e-05/0.00359, allocations: 8 kB / 332.2 MB, free: 16.83 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.365e-05/0.003604, allocations: 7.938 kB / 332.3 MB, free: 16.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.991e-05/0.003704, allocations: 43.95 kB / 332.3 MB, free: 16.78 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.194e-05/0.003716, allocations: 3.938 kB / 332.3 MB, free: 16.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.358e-05/0.003749, allocations: 11.98 kB / 332.3 MB, free: 16.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001549/0.003904, allocations: 71.72 kB / 332.4 MB, free: 16.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.003907, allocations: 4 kB / 332.4 MB, free: 16.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.003908, allocations: 0 / 332.4 MB, free: 16.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.003913, allocations: 0 / 332.4 MB, free: 16.69 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.0003914/0.004304, allocations: 295.9 kB / 332.7 MB, free: 16.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.004337, allocations: 12.03 kB / 332.7 MB, free: 16.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.727e-05/0.004384, allocations: 8.891 kB / 332.7 MB, free: 16.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.179e-05/0.004456, allocations: 109.7 kB / 332.8 MB, free: 16.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.00447, allocations: 384 / 332.8 MB, free: 16.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.00448, allocations: 4.375 kB / 332.8 MB, free: 16.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.004607, allocations: 75.94 kB / 332.9 MB, free: 16.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.004616, allocations: 192 / 332.9 MB, free: 16.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.004626, allocations: 384 / 332.9 MB, free: 16.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.004631, allocations: 384 / 332.9 MB, free: 16.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.801e-05/0.004709, allocations: 49.62 kB / 332.9 MB, free: 16.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001056/0.004815, allocations: 109.4 kB / 333 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.093e-05/0.004896, allocations: 56.22 kB / 333.1 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.419e-05/0.00495, allocations: 46.62 kB / 333.1 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.004962, allocations: 7.938 kB / 333.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001622/0.005125, allocations: 174.1 kB / 333.3 MB, free: 15.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 9.52e-07/0.005125, allocations: 4 kB / 333.3 MB, free: 15.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003172/0.005443, allocations: 186.7 kB / 333.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.005483, allocations: 132.5 kB / 333.6 MB, free: 15.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.478e-05/0.005548, allocations: 117.8 kB / 333.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.867e-06/0.005557, allocations: 25.7 kB / 333.8 MB, free: 15.06 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.863e-05/0.005575, allocations: 80.14 kB / 333.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.005599, allocations: 23.83 kB / 333.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.788e-05/0.005626, allocations: 17.7 kB / 333.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.775e-05/0.005674, allocations: 318.8 kB / 334.2 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.501e-05/0.005729, allocations: 41.69 kB / 334.2 MB, free: 14.56 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.701e-05/0.005776, allocations: 51.41 kB / 334.3 MB, free: 14.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.005903, allocations: 101 kB / 334.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.005905, allocations: 0 / 334.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001438/0.006048, allocations: 133.1 kB / 334.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/0.006086, allocations: 33.69 kB / 334.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.006091, allocations: 0 / 334.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.006109, allocations: 4 kB / 334.6 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.38e-05/0.006173, allocations: 7.938 kB / 334.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.006178, allocations: 3.938 kB / 334.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.889e-05/0.006217, allocations: 11.95 kB / 334.6 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.006225, allocations: 8.062 kB / 334.6 MB, free: 14.16 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.000105/0.00633, allocations: 143.5 kB / 334.7 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.825e-05/0.006348, allocations: 8.047 kB / 334.7 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.676e-05/0.006365, allocations: 8.109 kB / 334.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.006367, allocations: 3.984 kB / 334.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.006371, allocations: 0 / 334.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.006376, allocations: 7.938 kB / 334.8 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.458e-05/0.00643, allocations: 105.3 kB / 334.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.006431, allocations: 0 / 334.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.593e-05/0.006457, allocations: 8 kB / 334.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.006459, allocations: 0 / 334.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.006469, allocations: 8 kB / 334.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.00647, allocations: 0 / 334.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.006471, allocations: 0 / 334.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001876/0.006658, allocations: 196.5 kB / 335.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.495e-06/0.006667, allocations: 0 / 335.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.006684, allocations: 4 kB / 335.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.36e-05/0.006718, allocations: 7.984 kB / 335.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.048e-05/0.006758, allocations: 4 kB / 335.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.006771, allocations: 8.031 kB / 335.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.719e-05/0.006798, allocations: 95.52 kB / 335.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006798, allocations: 0 / 335.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002219/0.00702, allocations: 19.94 kB / 335.2 MB, free: 13.47 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.0004/0.00742, allocations: 192.7 kB / 335.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001751/0.007595, allocations: 154.7 kB / 335.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.007597, allocations: 0 / 335.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.553e-05/0.007672, allocations: 101.1 kB / 335.6 MB, free: 13.01 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001495/0.007822, allocations: 15.98 kB / 335.7 MB, free: 13 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002693/0.008091, allocations: 164.2 kB / 335.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.928e-05/0.00812, allocations: 63.34 kB / 335.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.532e-05/0.008136, allocations: 3.859 kB / 335.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.973e-05/0.008155, allocations: 12.5 kB / 335.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of SimCode: time 3.71e-07/0.008156, allocations: 0 / 335.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of Templates: time 0.003398/0.01155, allocations: 0.9714 MB / 336.9 MB, free: 11.75 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 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.232463267049752]