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.528/0.528, allocations: 94.69 MB / 107.3 MB, free: 5.176 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.001472/0.001472, allocations: 169.2 kB / 130.7 MB, free: 7.551 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.563/1.563, allocations: 170.5 MB / 324.5 MB, free: 4.008 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.001605/0.001605, allocations: 114.1 kB / 386.6 MB, free: 16.27 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.119e-05/3.122e-05, allocations: 4 kB / 456 MB, free: 11.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4006/0.4006, allocations: 61.51 MB / 0.5054 GB, free: 49.54 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1274/0.5281, allocations: 96.72 MB / 0.5998 GB, free: 14.83 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/0.5285, allocations: 86.19 kB / 0.5999 GB, free: 14.75 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0114/0.5399, allocations: 3.878 MB / 0.6037 GB, free: 10.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5399, allocations: 3.938 kB / 0.6037 GB, free: 10.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.54, allocations: 8 kB / 0.6037 GB, free: 10.93 MB / 426.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.0007049/0.5407, allocations: 0.5779 MB / 0.6043 GB, free: 10.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.5407, allocations: 8.031 kB / 0.6043 GB, free: 10.28 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.936e-05/0.5408, allocations: 21.12 kB / 0.6043 GB, free: 10.26 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002603/0.541, allocations: 214.8 kB / 0.6045 GB, free: 10.01 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/0.5411, allocations: 7.609 kB / 0.6045 GB, free: 10 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.917e-05/0.5411, allocations: 21.2 kB / 0.6045 GB, free: 9.984 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00031/0.5414, allocations: 175 kB / 0.6047 GB, free: 9.805 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.5415, allocations: 0 / 0.6047 GB, free: 9.805 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.5415, allocations: 4 kB / 0.6047 GB, free: 9.801 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.5415, allocations: 0 / 0.6047 GB, free: 9.801 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001732/0.5417, allocations: 94.48 kB / 0.6048 GB, free: 9.711 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006613/0.5424, allocations: 428.7 kB / 0.6052 GB, free: 9.246 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002254/0.5426, allocations: 135.5 kB / 0.6053 GB, free: 9.105 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.5428, allocations: 100.9 kB / 0.6054 GB, free: 9.004 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.5428, allocations: 7.938 kB / 0.6054 GB, free: 8.996 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003454/0.5431, allocations: 266.3 kB / 0.6057 GB, free: 8.711 MB / 426.7 MB Notification: Performance of pre-optimization done (n=20): time 1.403e-06/0.5432, allocations: 0 / 0.6057 GB, free: 8.711 MB / 426.7 MB Notification: Performance of matching and sorting (n=20): time 0.0005602/0.5437, allocations: 340.7 kB / 0.606 GB, free: 8.359 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.5439, allocations: 207.8 kB / 0.6062 GB, free: 8.113 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.544, allocations: 138.7 kB / 0.6064 GB, free: 7.973 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.5441, allocations: 33.7 kB / 0.6064 GB, free: 7.934 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.126e-05/0.5441, allocations: 104.5 kB / 0.6065 GB, free: 7.828 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.96e-05/0.5442, allocations: 54.27 kB / 0.6065 GB, free: 7.777 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.393e-05/0.5442, allocations: 8 kB / 0.6065 GB, free: 7.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.5444, allocations: 334.8 kB / 0.6069 GB, free: 7.434 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.5445, allocations: 56.17 kB / 0.6069 GB, free: 7.375 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.5447, allocations: 149.1 kB / 0.6071 GB, free: 7.195 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000209/0.5449, allocations: 199.2 kB / 0.6073 GB, free: 6.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.5449, allocations: 0.75 kB / 0.6073 GB, free: 6.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004922/0.5454, allocations: 387.9 kB / 0.6076 GB, free: 6.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.778e-05/0.5455, allocations: 115.1 kB / 0.6077 GB, free: 6.434 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.5455, allocations: 8 kB / 0.6077 GB, free: 6.426 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.5456, allocations: 4 kB / 0.6077 GB, free: 6.422 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.5457, allocations: 35.91 kB / 0.6078 GB, free: 6.387 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.5457, allocations: 4 kB / 0.6078 GB, free: 6.383 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.5459, allocations: 23.84 kB / 0.6078 GB, free: 6.359 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/0.5459, allocations: 13.88 kB / 0.6078 GB, free: 6.348 MB / 426.7 MB Warning: Assuming fixed start value for the following 6 variables: ran.uRWri[1]:DISCRETE(fixed = false ) "Value to be sent to Python" type: Real [1] kalFil.yR[1]:DISCRETE(fixed = false ) "Real outputs received from Python" type: Real [1] kalFil.uRWri[1]:DISCRETE(fixed = false ) "Value to be sent to Python" type: Real [1] kalFil.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean ran.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean ran.yR[1]:DISCRETE(fixed = false ) "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 () * 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.0002567/0.5462, allocations: 228.8 kB / 0.608 GB, free: 6.109 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.5462, allocations: 19.81 kB / 0.6081 GB, free: 6.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.619e-05/0.5463, allocations: 20.73 kB / 0.6081 GB, free: 6.066 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.5463, allocations: 0 / 0.6081 GB, free: 6.066 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.5463, allocations: 2.688 kB / 0.6081 GB, free: 6.066 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.5463, allocations: 8 kB / 0.6081 GB, free: 6.059 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.5473, allocations: 0.7173 MB / 0.6088 GB, free: 5.273 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.5473, allocations: 0 / 0.6088 GB, free: 5.273 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.5475, allocations: 23.88 kB / 0.6088 GB, free: 5.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.5475, allocations: 4 kB / 0.6088 GB, free: 5.246 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.5475, allocations: 8 kB / 0.6088 GB, free: 5.238 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.5475, allocations: 1.969 kB / 0.6088 GB, free: 5.238 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5476, allocations: 4 kB / 0.6088 GB, free: 5.234 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008746/0.5484, allocations: 0.6068 MB / 0.6094 GB, free: 4.594 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.5486, allocations: 113 kB / 0.6095 GB, free: 4.465 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.803e-05/0.5486, allocations: 19.98 kB / 0.6095 GB, free: 4.445 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.5488, allocations: 15.98 kB / 0.6096 GB, free: 4.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.2e-05/0.5489, allocations: 24 kB / 0.6096 GB, free: 4.406 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.441e-05/0.5489, allocations: 19.97 kB / 0.6096 GB, free: 4.387 MB / 426.7 MB Notification: Performance of sorting global known variables: time 9.48e-05/0.549, allocations: 115.6 kB / 0.6097 GB, free: 4.277 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.549, allocations: 3.938 kB / 0.6097 GB, free: 4.273 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004106/0.5494, allocations: 83.83 kB / 0.6098 GB, free: 4.191 MB / 426.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]) * 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.0005864/0.55, allocations: 216 kB / 0.61 GB, free: 4.008 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005652/0.5506, allocations: 457.9 kB / 0.6104 GB, free: 3.512 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.5506, allocations: 4.062 kB / 0.6104 GB, free: 3.508 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003377/0.551, allocations: 300.3 kB / 0.6107 GB, free: 3.191 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002522/0.5512, allocations: 23.5 kB / 0.6107 GB, free: 3.172 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007224/0.552, allocations: 356.4 kB / 0.6111 GB, free: 2.809 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.5523, allocations: 0.7284 MB / 0.6118 GB, free: 2.055 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001099/0.5524, allocations: 33.17 kB / 0.6118 GB, free: 2.023 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.811e-05/0.5525, allocations: 19.38 kB / 0.6119 GB, free: 2.008 MB / 426.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5525, allocations: 0 / 0.6119 GB, free: 2.008 MB / 426.7 MB Notification: Performance of Templates: time 0.0066/0.5591, allocations: 2.748 MB / 0.6145 GB, free: 15.36 MB / 442.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)