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.001229/0.001229, allocations: 176.1 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.008493/0.008492, allocations: 0.9634 MB / 9.036 MB, free: 1.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 221.5 MB / 231.2 MB, free: 6.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009028/0.0009031, allocations: 99.75 kB / 282.3 MB, free: 3.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.215e-05/1.218e-05, allocations: 0 / 339.1 MB, free: 8.16 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09165/0.09168, allocations: 50.63 MB / 389.8 MB, free: 5.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3004/0.3921, allocations: 75.88 MB / 465.6 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001854/0.3924, allocations: 71.95 kB / 465.7 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004431/0.3968, allocations: 1.758 MB / 467.5 MB, free: 14.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.3968, allocations: 0 / 467.5 MB, free: 14.81 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.3968, allocations: 0 / 467.5 MB, free: 14.81 MB / 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.0002921/0.3971, allocations: 364.2 kB / 467.8 MB, free: 14.4 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.3972, allocations: 12.03 kB / 467.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.924e-05/0.3972, allocations: 0 / 467.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.3973, allocations: 176.4 kB / 468 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.3974, allocations: 0 / 468 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.3974, allocations: 8 kB / 468 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.458e-05/0.3974, allocations: 8 kB / 468 MB, free: 14.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.109e-05/0.3975, allocations: 41.64 kB / 468.1 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.3975, allocations: 0 / 468.1 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.3975, allocations: 7.984 kB / 468.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.3976, allocations: 0 / 468.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001257/0.3977, allocations: 138.2 kB / 468.2 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.141e-05/0.3977, allocations: 26.52 kB / 468.2 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.685e-05/0.3978, allocations: 16.89 kB / 468.3 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.3978, allocations: 4 kB / 468.3 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001285/0.3979, allocations: 129.4 kB / 468.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.3979, allocations: 4 kB / 468.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001797/0.3981, allocations: 65.62 kB / 468.5 MB, free: 13.65 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.79e-05/0.3982, allocations: 140.5 kB / 468.6 MB, free: 13.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.169e-05/0.3983, allocations: 97.55 kB / 468.7 MB, free: 13.38 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.3983, allocations: 29.7 kB / 468.7 MB, free: 13.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.178e-05/0.3983, allocations: 86.14 kB / 468.8 MB, free: 13.26 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.645e-05/0.3984, allocations: 19.8 kB / 468.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/0.3984, allocations: 0 / 468.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.3985, allocations: 310.8 kB / 469.1 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.752e-05/0.3985, allocations: 8 kB / 469.1 MB, free: 12.92 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.556e-05/0.3986, allocations: 13.72 kB / 469.1 MB, free: 12.9 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.211e-05/0.3986, allocations: 15.98 kB / 469.2 MB, free: 12.88 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3986, allocations: 4 kB / 469.2 MB, free: 12.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.325e-05/0.3987, allocations: 61.66 kB / 469.2 MB, free: 12.81 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.3987, allocations: 37.7 kB / 469.3 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.3988, allocations: 0 / 469.3 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.388e-06/0.3988, allocations: 0 / 469.3 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.742e-05/0.3988, allocations: 8 kB / 469.3 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.3989, allocations: 320 / 469.3 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.488e-05/0.3989, allocations: 11.94 kB / 469.3 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.3989, allocations: 4.062 kB / 469.3 MB, free: 12.75 MB / 346.7 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = false ) "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 () * 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.0001213/0.399, allocations: 138.7 kB / 469.4 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.675e-05/0.3991, allocations: 11.89 kB / 469.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.992e-05/0.3991, allocations: 8.344 kB / 469.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.3991, allocations: 0 / 469.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3991, allocations: 0 / 469.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.3991, allocations: 4 kB / 469.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.3992, allocations: 142.2 kB / 469.6 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3993, allocations: 0 / 469.6 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.041e-05/0.3993, allocations: 8 kB / 469.6 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3993, allocations: 0 / 469.6 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.3993, allocations: 8.062 kB / 469.6 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3993, allocations: 7.938 kB / 469.6 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3993, allocations: 0 / 469.6 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.3995, allocations: 109 kB / 469.7 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.271e-05/0.3995, allocations: 85.05 kB / 469.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.3996, allocations: 0 / 469.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.014e-05/0.3996, allocations: 8.031 kB / 469.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.114e-05/0.3997, allocations: 15.91 kB / 469.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.3997, allocations: 0 / 469.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.977e-05/0.3997, allocations: 87.28 kB / 469.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3997, allocations: 0 / 469.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002161/0.4, allocations: 27.98 kB / 469.9 MB, free: 12.01 MB / 346.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) * 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.0003648/0.4003, allocations: 205.7 kB / 470.1 MB, free: 11.83 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001224/0.4005, allocations: 83.41 kB / 470.2 MB, free: 11.74 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4005, allocations: 0 / 470.2 MB, free: 11.74 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.716e-05/0.4005, allocations: 83.39 kB / 470.3 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.87e-05/0.4006, allocations: 7.953 kB / 470.3 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001926/0.4008, allocations: 83.86 kB / 470.4 MB, free: 11.53 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/0.4011, allocations: 0.6887 MB / 471.1 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.021e-05/0.4011, allocations: 0 / 471.1 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.356e-05/0.4011, allocations: 7.438 kB / 471.1 MB, free: 10.81 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4011, allocations: 0 / 471.1 MB, free: 10.81 MB / 346.7 MB Notification: Performance of Templates: time 0.003055/0.4042, allocations: 0.7807 MB / 471.9 MB, free: 10.04 MB / 346.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)