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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01109/0.01109, allocations: 101.6 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001601/0.001602, allocations: 194.8 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.826/1.826, allocations: 205.1 MB / 222.5 MB, free: 4.223 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6908/0.6908, allocations: 95.48 MB / 365.4 MB, free: 9.691 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 71.91 kB / 0.5036 GB, free: 13.47 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.1928, allocations: 69.09 MB / 0.5711 GB, free: 8.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Examples.KalmanFilter): time 0.003331/0.1962, allocations: 1.674 MB / 0.5727 GB, free: 6.629 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.1984, allocations: 0.9669 MB / 0.5736 GB, free: 5.652 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.504e-05/0.1985, allocations: 0 / 0.5736 GB, free: 5.652 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.1986, allocations: 19.8 kB / 0.5737 GB, free: 5.633 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.1988, allocations: 19.8 kB / 0.5737 GB, free: 5.613 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Utilities/IO/Python27/Functions/exchange.mo:2:1-99:13:writable] Warning: Pure function 'Buildings.Utilities.IO.Python27.Functions.exchange' contains a call to impure function 'Modelica.Utilities.System.getEnvironmentVariable'. Notification: Performance of NFTyping.typeClassSections: time 0.0007497/0.1996, allocations: 191.4 kB / 0.5739 GB, free: 5.426 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003047/0.1999, allocations: 215.5 kB / 0.5741 GB, free: 5.215 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.2, allocations: 37 kB / 0.5741 GB, free: 5.18 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.2003, allocations: 99.72 kB / 0.5742 GB, free: 5.082 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001744/0.2005, allocations: 79.66 kB / 0.5743 GB, free: 5.004 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.481e-05/0.2005, allocations: 16 kB / 0.5743 GB, free: 4.988 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005578/0.2011, allocations: 123.8 kB / 0.5744 GB, free: 4.867 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.159e-05/0.2012, allocations: 23.92 kB / 0.5744 GB, free: 4.844 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.2013, allocations: 71.66 kB / 0.5745 GB, free: 4.773 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006282/0.202, allocations: 275.1 kB / 0.5748 GB, free: 4.504 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.202, allocations: 0 / 0.5748 GB, free: 4.504 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.202, allocations: 0 / 0.5748 GB, free: 4.504 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.202, allocations: 0 / 0.5748 GB, free: 4.504 MB / 446.1 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.002015/0.204, allocations: 0.6028 MB / 0.5754 GB, free: 3.828 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.2041, allocations: 11.98 kB / 0.5754 GB, free: 3.816 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.259e-05/0.2042, allocations: 24.84 kB / 0.5754 GB, free: 3.793 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.2046, allocations: 225.3 kB / 0.5756 GB, free: 3.535 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.2046, allocations: 8.375 kB / 0.5756 GB, free: 3.527 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.196e-05/0.2047, allocations: 12.38 kB / 0.5756 GB, free: 3.516 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005336/0.2052, allocations: 195.5 kB / 0.5758 GB, free: 3.312 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.2052, allocations: 0 / 0.5758 GB, free: 3.312 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.2053, allocations: 4 kB / 0.5758 GB, free: 3.309 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.2053, allocations: 0 / 0.5758 GB, free: 3.309 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004982/0.2058, allocations: 115.9 kB / 0.5759 GB, free: 3.195 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008351/0.2066, allocations: 408.5 kB / 0.5763 GB, free: 2.746 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003185/0.2069, allocations: 150.5 kB / 0.5765 GB, free: 2.59 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000327/0.2073, allocations: 112.8 kB / 0.5766 GB, free: 2.477 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.516e-05/0.2073, allocations: 11.98 kB / 0.5766 GB, free: 2.465 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000578/0.2079, allocations: 272.3 kB / 0.5768 GB, free: 2.168 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 1.743e-06/0.2079, allocations: 4 kB / 0.5768 GB, free: 2.164 MB / 446.1 MB Notification: Performance of matching and sorting (n=20): time 0.00144/0.2094, allocations: 0.5423 MB / 0.5774 GB, free: 1.605 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003791/0.2098, allocations: 207.9 kB / 0.5776 GB, free: 1.359 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/0.2099, allocations: 150.1 kB / 0.5777 GB, free: 1.199 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001954/0.2102, allocations: 37.7 kB / 0.5777 GB, free: 1.156 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.438e-05/0.2102, allocations: 104.5 kB / 0.5778 GB, free: 1.047 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.012e-05/0.2103, allocations: 51.77 kB / 0.5779 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.507e-05/0.2104, allocations: 57.64 kB / 0.578 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000463/0.2109, allocations: 334.8 kB / 0.5783 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.2111, allocations: 79.8 kB / 0.5783 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004064/0.2115, allocations: 159.1 kB / 0.5785 GB, free: 332 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000834/0.2123, allocations: 472.2 kB / 0.579 GB, free: 15.79 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.2123, allocations: 0 / 0.579 GB, free: 15.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006327/0.213, allocations: 408 kB / 0.5793 GB, free: 15.36 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.839e-05/0.2131, allocations: 118.8 kB / 0.5795 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.2131, allocations: 7.984 kB / 0.5795 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.2131, allocations: 7.938 kB / 0.5795 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.2133, allocations: 23.98 kB / 0.5795 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.2133, allocations: 11.94 kB / 0.5795 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.2135, allocations: 20.16 kB / 0.5795 GB, free: 15.15 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.011e-05/0.2135, allocations: 20 kB / 0.5795 GB, free: 15.13 MB / 462.1 MB Warning: Assuming fixed start value for the following 4 variables: ran.uRWri[1]:DISCRETE(fixed = true ) "Value to be sent to Python" type: Real [1] kalFil.yR[1]:DISCRETE(flow=false 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] ran.yR[1]:DISCRETE(flow=false 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,ran.uRIntPre[1],$PRE.ran.uRIntPre[1],$PRE.ran.uRWri[1],ran.uRWri[1],kalFil.uRIntPre[1],$PRE.kalFil.uRIntPre[1],$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],kalFil.firstTrigger,$PRE.kalFil.firstTrigger,ran.firstTrigger,$PRE.ran.firstTrigger,ran.sampleTrigger,$whenCondition4,$whenCondition1,kalFil.sampleTrigger,$whenCondition3,$whenCondition2,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002944/0.2138, allocations: 242.5 kB / 0.5798 GB, free: 14.88 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.206e-05/0.2139, allocations: 19.91 kB / 0.5798 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.304e-05/0.2139, allocations: 17.19 kB / 0.5798 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2139, allocations: 4 kB / 0.5798 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.214, allocations: 0 / 0.5798 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.214, allocations: 8.047 kB / 0.5798 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.2152, allocations: 0.8216 MB / 0.5806 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2152, allocations: 0 / 0.5806 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.2153, allocations: 15.98 kB / 0.5806 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.2153, allocations: 0 / 0.5806 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.715e-05/0.2154, allocations: 15.92 kB / 0.5807 GB, free: 13.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2154, allocations: 8 kB / 0.5807 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2154, allocations: 0 / 0.5807 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.2166, allocations: 0.7126 MB / 0.5814 GB, free: 13.15 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.607e-05/0.2166, allocations: 96.92 kB / 0.5814 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.789e-05/0.2167, allocations: 20.05 kB / 0.5815 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.2169, allocations: 15.98 kB / 0.5815 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.319e-05/0.2169, allocations: 15.98 kB / 0.5815 GB, free: 12.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-05/0.217, allocations: 8 kB / 0.5815 GB, free: 12.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.367e-05/0.2171, allocations: 111.2 kB / 0.5816 GB, free: 12.87 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2171, allocations: 4 kB / 0.5816 GB, free: 12.86 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003921/0.2175, allocations: 75.86 kB / 0.5817 GB, free: 12.79 MB / 462.1 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 (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.0006388/0.2181, allocations: 285.8 kB / 0.582 GB, free: 12.56 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0007377/0.2189, allocations: 485.7 kB / 0.5824 GB, free: 12.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.2189, allocations: 8.062 kB / 0.5824 GB, free: 12.03 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003986/0.2193, allocations: 306.6 kB / 0.5827 GB, free: 11.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.2196, allocations: 27.92 kB / 0.5827 GB, free: 11.68 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009658/0.2206, allocations: 437.7 kB / 0.5832 GB, free: 11.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004323/0.2211, allocations: 0.7242 MB / 0.5839 GB, free: 10.47 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 9.483e-05/0.2212, allocations: 33.39 kB / 0.5839 GB, free: 10.44 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.856e-05/0.2212, allocations: 15.44 kB / 0.5839 GB, free: 10.43 MB / 462.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2212, allocations: 0 / 0.5839 GB, free: 10.43 MB / 462.1 MB Notification: Performance of Templates: time 0.007667/0.2289, allocations: 3.197 MB / 0.587 GB, free: 7.254 MB / 462.1 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)