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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004321/0.004321, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.00458/0.00458, allocations: 0.9899 MB / 16.84 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.183/1.183, allocations: 223.2 MB / 241 MB, free: 10.63 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008254/0.0008254, allocations: 99.02 kB / 292.4 MB, free: 9.852 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002934/0.0002934, allocations: 8 kB / 353.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2041/0.2044, allocations: 50.62 MB / 404.1 MB, free: 31.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08432/0.2888, allocations: 76.62 MB / 480.8 MB, free: 2.453 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001828/0.289, allocations: 67.97 kB / 480.8 MB, free: 2.387 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004501/0.2935, allocations: 2.037 MB / 482.9 MB, free: 364 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2935, allocations: 0 / 482.9 MB, free: 364 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.2935, allocations: 0 / 482.9 MB, free: 364 kB / 346.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.0003412/0.2939, allocations: 388.8 kB / 483.2 MB, free: 15.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.2939, allocations: 12.03 kB / 483.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.072e-05/0.2939, allocations: 3.906 kB / 483.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.2941, allocations: 163.1 kB / 483.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.2941, allocations: 0 / 483.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.2941, allocations: 4 kB / 483.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001157/0.2942, allocations: 53.66 kB / 483.5 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.2942, allocations: 4 kB / 483.5 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.2942, allocations: 3.953 kB / 483.5 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2943, allocations: 3.938 kB / 483.5 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.372e-05/0.2943, allocations: 19.98 kB / 483.5 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001445/0.2945, allocations: 157.7 kB / 483.7 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.348e-05/0.2946, allocations: 42.55 kB / 483.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.111e-06/0.2946, allocations: 0 / 483.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001865/0.2948, allocations: 144.6 kB / 483.8 MB, free: 15.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.2948, allocations: 0 / 483.8 MB, free: 15.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003375/0.2951, allocations: 220.3 kB / 484.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.835e-05/0.2952, allocations: 132.5 kB / 484.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.79e-05/0.2953, allocations: 101 kB / 484.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.2953, allocations: 25.7 kB / 484.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.214e-05/0.2953, allocations: 84.14 kB / 484.4 MB, free: 14.56 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.2954, allocations: 7.906 kB / 484.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-06/0.2954, allocations: 0 / 484.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.442e-05/0.2955, allocations: 318.8 kB / 484.7 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.411e-05/0.2955, allocations: 16.03 kB / 484.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.68e-05/0.2956, allocations: 29.69 kB / 484.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.803e-05/0.2956, allocations: 45.69 kB / 484.8 MB, free: 14.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2957, allocations: 3.938 kB / 484.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001619/0.2958, allocations: 111.2 kB / 484.9 MB, free: 14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.2959, allocations: 33.7 kB / 484.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.2959, allocations: 0 / 484.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.2959, allocations: 0 / 484.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.435e-05/0.296, allocations: 11.98 kB / 485 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.296, allocations: 3.953 kB / 485 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.823e-05/0.296, allocations: 7.938 kB / 485 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.966e-06/0.296, allocations: 4 kB / 485 MB, free: 13.94 MB / 362.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,$whenCondition1,$whenCondition2,y_start) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001289/0.2962, allocations: 155.4 kB / 485.1 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.256e-05/0.2962, allocations: 4 kB / 485.1 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.042e-05/0.2962, allocations: 7.969 kB / 485.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.2962, allocations: 0 / 485.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.2962, allocations: 0 / 485.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.2962, allocations: 3.953 kB / 485.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.96e-05/0.2963, allocations: 169.6 kB / 485.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2963, allocations: 0 / 485.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.89e-05/0.2964, allocations: 4 kB / 485.3 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2964, allocations: 7.984 kB / 485.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.2964, allocations: 4 kB / 485.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.2964, allocations: 0 / 485.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2964, allocations: 0 / 485.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00021/0.2966, allocations: 155 kB / 485.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.576e-05/0.2967, allocations: 81.02 kB / 485.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.2967, allocations: 15.95 kB / 485.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.511e-05/0.2967, allocations: 4 kB / 485.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.111e-05/0.2968, allocations: 4 kB / 485.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.2968, allocations: 4 kB / 485.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.501e-05/0.2968, allocations: 91.2 kB / 485.7 MB, free: 13.13 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2968, allocations: 0 / 485.7 MB, free: 13.13 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001998/0.2971, allocations: 28 kB / 485.7 MB, free: 13.1 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003432/0.2974, allocations: 209.2 kB / 485.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001826/0.2976, allocations: 103.4 kB / 486 MB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2976, allocations: 0 / 486 MB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.48e-05/0.2977, allocations: 95.33 kB / 486.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.296e-05/0.2978, allocations: 10.92 kB / 486.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002487/0.2981, allocations: 136.9 kB / 486.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.2983, allocations: 0.6848 MB / 486.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.93e-05/0.2983, allocations: 3.984 kB / 486.9 MB, free: 11.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.479e-05/0.2983, allocations: 11.44 kB / 486.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2983, allocations: 0 / 486.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of Templates: time 0.002681/0.301, allocations: 0.7999 MB / 487.7 MB, free: 11.02 MB / 362.7 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile (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)