Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5882/0.5882, allocations: 95.61 MB / 110.6 MB, free: 9.387 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002213/0.002214, allocations: 160.2 kB / 134.2 MB, free: 2.262 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.719/1.719, allocations: 170.7 MB / 328.4 MB, free: 12.26 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001659/0.001659, allocations: 113.9 kB / 390.7 MB, free: 13.94 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003816/0.0003819, allocations: 15.98 kB / 462.7 MB, free: 35.66 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1374, allocations: 61.53 MB / 0.512 GB, free: 6.066 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5269/0.6644, allocations: 96.82 MB / 0.6065 GB, free: 10.49 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.6647, allocations: 90 kB / 0.6066 GB, free: 10.44 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01205/0.6768, allocations: 3.896 MB / 0.6104 GB, free: 7.066 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.6768, allocations: 0 / 0.6104 GB, free: 7.066 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.6769, allocations: 11.94 kB / 0.6104 GB, free: 7.055 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0008975/0.6778, allocations: 0.5962 MB / 0.611 GB, free: 6.406 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.6778, allocations: 11.98 kB / 0.611 GB, free: 6.395 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.161e-05/0.6779, allocations: 15.81 kB / 0.611 GB, free: 6.379 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/0.6782, allocations: 213.8 kB / 0.6112 GB, free: 6.137 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/0.6783, allocations: 11.38 kB / 0.6112 GB, free: 6.129 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.164e-05/0.6783, allocations: 19.45 kB / 0.6113 GB, free: 6.113 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004128/0.6787, allocations: 191.2 kB / 0.6114 GB, free: 5.945 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.6788, allocations: 0 / 0.6114 GB, free: 5.945 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.6788, allocations: 7.047 kB / 0.6114 GB, free: 5.941 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.6788, allocations: 4 kB / 0.6115 GB, free: 5.938 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002737/0.6791, allocations: 117.2 kB / 0.6116 GB, free: 5.848 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007362/0.6798, allocations: 420.9 kB / 0.612 GB, free: 5.434 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003019/0.6802, allocations: 163.5 kB / 0.6121 GB, free: 5.301 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.6802, allocations: 0 / 0.6121 GB, free: 5.301 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004233/0.6806, allocations: 269.4 kB / 0.6124 GB, free: 5.043 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 1.293e-06/0.6806, allocations: 0 / 0.6124 GB, free: 5.043 MB / 410.7 MB Notification: Performance of matching and sorting (n=20): time 0.001078/0.6817, allocations: 0.6258 MB / 0.613 GB, free: 4.449 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.6819, allocations: 206.4 kB / 0.6132 GB, free: 4.211 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.682, allocations: 138.6 kB / 0.6133 GB, free: 4.078 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.682, allocations: 37.02 kB / 0.6134 GB, free: 4.039 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.941e-05/0.6821, allocations: 113.8 kB / 0.6135 GB, free: 3.938 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.671e-05/0.6822, allocations: 52.98 kB / 0.6135 GB, free: 3.895 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.077e-05/0.6822, allocations: 0 / 0.6135 GB, free: 3.895 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.6824, allocations: 332.6 kB / 0.6138 GB, free: 3.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.6825, allocations: 74 kB / 0.6139 GB, free: 3.508 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002373/0.6828, allocations: 163 kB / 0.6141 GB, free: 3.332 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002842/0.6831, allocations: 203.7 kB / 0.6143 GB, free: 3.133 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.6831, allocations: 0 / 0.6143 GB, free: 3.133 MB / 410.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006371/0.6837, allocations: 425.5 kB / 0.6147 GB, free: 2.746 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.355e-05/0.6838, allocations: 121.4 kB / 0.6148 GB, free: 2.605 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.6839, allocations: 3.984 kB / 0.6148 GB, free: 2.602 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.6839, allocations: 8 kB / 0.6148 GB, free: 2.594 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.6841, allocations: 32.08 kB / 0.6148 GB, free: 2.566 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.6841, allocations: 8 kB / 0.6148 GB, free: 2.559 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.6842, allocations: 18.86 kB / 0.6148 GB, free: 2.543 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.6843, allocations: 8 kB / 0.6148 GB, free: 2.535 MB / 410.7 MB Warning: Assuming fixed start value for the following 6 variables: ran.uRWri[1]:DISCRETE(fixed = true ) "Value to be sent to Python" type: Real [1] kalFil.yR[1]:DISCRETE(fixed = true ) "Real outputs received from Python" type: Real [1] kalFil.uRWri[1]:DISCRETE(fixed = true ) "Value to be sent to Python" type: Real [1] kalFil.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean ran.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean ran.yR[1]:DISCRETE(fixed = true ) "Real outputs received from Python" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 23 ($whenCondition5,$PRE.ran.uRIntPre[1],ran.uRIntPre[1],$PRE.ran.uRWri[1],ran.uRWri[1],$PRE.kalFil.uRIntPre[1],kalFil.uRIntPre[1],$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],$PRE.kalFil.firstTrigger,kalFil.firstTrigger,$PRE.ran.firstTrigger,ran.firstTrigger,$whenCondition1,$whenCondition4,ran.sampleTrigger,$whenCondition2,$whenCondition3,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 4 * 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.0003147/0.6846, allocations: 255.6 kB / 0.6151 GB, free: 2.281 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.955e-05/0.6846, allocations: 19.91 kB / 0.6151 GB, free: 2.262 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.431e-05/0.6847, allocations: 15.62 kB / 0.6151 GB, free: 2.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.6847, allocations: 0 / 0.6151 GB, free: 2.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.6847, allocations: 0 / 0.6151 GB, free: 2.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.6847, allocations: 8.094 kB / 0.6151 GB, free: 2.242 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.6859, allocations: 0.7494 MB / 0.6159 GB, free: 1.531 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.6859, allocations: 0 / 0.6159 GB, free: 1.531 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.686, allocations: 15.98 kB / 0.6159 GB, free: 1.516 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.686, allocations: 3.938 kB / 0.6159 GB, free: 1.512 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.595e-05/0.6861, allocations: 15.55 kB / 0.6159 GB, free: 1.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.6861, allocations: 0 / 0.6159 GB, free: 1.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.6861, allocations: 0 / 0.6159 GB, free: 1.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009894/0.6871, allocations: 0.6539 MB / 0.6165 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.6872, allocations: 116.7 kB / 0.6166 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.172e-05/0.6873, allocations: 22.83 kB / 0.6167 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.6875, allocations: 19.94 kB / 0.6167 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.575e-05/0.6876, allocations: 19.78 kB / 0.6167 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.078e-05/0.6876, allocations: 8 kB / 0.6167 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.288e-05/0.6877, allocations: 118.8 kB / 0.6168 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.6877, allocations: 0 / 0.6168 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004163/0.6881, allocations: 86.66 kB / 0.6169 GB, free: 0.5547 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (ran.uRInt[1],kalFil.uRInt[1]) * Number of discrete variables: 15 (kalFil.sampleTrigger,ran.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[1],$whenCondition5) * Number of discrete states: 11 (ran.uRIntPre[1],ran.yR[1],ran.uRWri[1],$whenCondition4,i,ran.uR[i],kalFil.uRIntPre[1],kalFil.yR[1],kalFil.uRWri[1],$whenCondition3,kalFil.uR[i]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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.0005336/0.6886, allocations: 234.4 kB / 0.6171 GB, free: 352 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007339/0.6894, allocations: 489.4 kB / 0.6176 GB, free: 15.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.6894, allocations: 0.5625 kB / 0.6176 GB, free: 15.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004284/0.6899, allocations: 319.4 kB / 0.6179 GB, free: 15.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.6901, allocations: 27.78 kB / 0.6179 GB, free: 15.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009039/0.691, allocations: 490.4 kB / 0.6184 GB, free: 15.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.6914, allocations: 0.728 MB / 0.6191 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 9.712e-05/0.6915, allocations: 37.38 kB / 0.6191 GB, free: 14.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.204e-05/0.6915, allocations: 15.44 kB / 0.6192 GB, free: 14.32 MB / 426.7 MB Notification: Performance of SimCode: time 3.31e-07/0.6915, allocations: 0 / 0.6192 GB, free: 14.32 MB / 426.7 MB Notification: Performance of Templates: time 0.006321/0.6979, allocations: 2.732 MB / 0.6218 GB, free: 11.61 MB / 426.7 MB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.makefile (rm -f Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.sim & ./Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)