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.007825/0.007825, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001265/0.001265, allocations: 196.8 kB / 16.67 MB, free: 5.926 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.685/1.685, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.6265/0.6265, allocations: 95.47 MB / 365.4 MB, free: 9.773 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.001359/0.001359, allocations: 74.75 kB / 0.5036 GB, free: 13.47 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1827, allocations: 69.08 MB / 0.5711 GB, free: 8.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Examples.KalmanFilter): time 0.003019/0.1857, allocations: 1.677 MB / 0.5727 GB, free: 6.629 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001718/0.1875, allocations: 0.9591 MB / 0.5736 GB, free: 5.66 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.173e-05/0.1875, allocations: 4 kB / 0.5736 GB, free: 5.656 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.1877, allocations: 19.8 kB / 0.5737 GB, free: 5.637 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001185/0.1878, allocations: 19.81 kB / 0.5737 GB, free: 5.617 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.0006109/0.1884, allocations: 195.4 kB / 0.5739 GB, free: 5.426 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003207/0.1887, allocations: 219.4 kB / 0.5741 GB, free: 5.211 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.1889, allocations: 29.08 kB / 0.5741 GB, free: 5.184 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.189, allocations: 95.72 kB / 0.5742 GB, free: 5.09 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.1892, allocations: 87.66 kB / 0.5743 GB, free: 5.004 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.943e-05/0.1892, allocations: 12 kB / 0.5743 GB, free: 4.992 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001807/0.1894, allocations: 119.8 kB / 0.5744 GB, free: 4.875 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.368e-05/0.1895, allocations: 31.91 kB / 0.5744 GB, free: 4.844 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.1896, allocations: 75.66 kB / 0.5745 GB, free: 4.77 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000379/0.19, allocations: 267.3 kB / 0.5748 GB, free: 4.508 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.19, allocations: 0 / 0.5748 GB, free: 4.508 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.19, allocations: 0 / 0.5748 GB, free: 4.508 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.19, allocations: 0 / 0.5748 GB, free: 4.508 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.0009041/0.1909, allocations: 0.6032 MB / 0.5754 GB, free: 3.832 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.191, allocations: 19.92 kB / 0.5754 GB, free: 3.812 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.496e-05/0.1911, allocations: 12.84 kB / 0.5754 GB, free: 3.801 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.1913, allocations: 221.2 kB / 0.5756 GB, free: 3.547 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.1913, allocations: 16.36 kB / 0.5756 GB, free: 3.531 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.1914, allocations: 12.38 kB / 0.5756 GB, free: 3.52 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003655/0.1918, allocations: 183.6 kB / 0.5758 GB, free: 3.328 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.1918, allocations: 4 kB / 0.5758 GB, free: 3.324 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.1918, allocations: 4 kB / 0.5758 GB, free: 3.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1918, allocations: 0 / 0.5758 GB, free: 3.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002474/0.1921, allocations: 119.8 kB / 0.5759 GB, free: 3.203 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006388/0.1927, allocations: 400.5 kB / 0.5763 GB, free: 2.762 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.193, allocations: 158.5 kB / 0.5765 GB, free: 2.598 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.1932, allocations: 120.7 kB / 0.5766 GB, free: 2.477 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.1933, allocations: 0 / 0.5766 GB, free: 2.477 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004306/0.1937, allocations: 279.4 kB / 0.5768 GB, free: 2.176 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 1.163e-06/0.1937, allocations: 4 kB / 0.5768 GB, free: 2.172 MB / 446.1 MB Notification: Performance of matching and sorting (n=20): time 0.000974/0.1947, allocations: 0.5421 MB / 0.5774 GB, free: 1.613 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.1948, allocations: 199.9 kB / 0.5776 GB, free: 1.375 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.195, allocations: 154.1 kB / 0.5777 GB, free: 1.211 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/0.195, allocations: 33.7 kB / 0.5777 GB, free: 1.172 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.319e-05/0.1951, allocations: 100.5 kB / 0.5778 GB, free: 1.066 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.44e-05/0.1952, allocations: 59.61 kB / 0.5779 GB, free: 1.008 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.778e-05/0.1953, allocations: 53.69 kB / 0.5779 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1954, allocations: 330.8 kB / 0.5783 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.1956, allocations: 79.8 kB / 0.5783 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/0.1958, allocations: 167 kB / 0.5785 GB, free: 344 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007028/0.1965, allocations: 464.2 kB / 0.5789 GB, free: 15.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/0.1965, allocations: 4 kB / 0.5789 GB, free: 15.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006106/0.1971, allocations: 407.9 kB / 0.5793 GB, free: 15.37 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.237e-05/0.1972, allocations: 118.7 kB / 0.5794 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.1972, allocations: 4.094 kB / 0.5794 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.1973, allocations: 7.984 kB / 0.5795 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.1974, allocations: 36.2 kB / 0.5795 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.1974, allocations: 4 kB / 0.5795 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.1976, allocations: 23.83 kB / 0.5795 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.1976, allocations: 12 kB / 0.5795 GB, free: 15.14 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.0002796/0.1979, allocations: 239.8 kB / 0.5798 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.849e-05/0.198, allocations: 19.81 kB / 0.5798 GB, free: 14.87 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.323e-05/0.198, allocations: 21.17 kB / 0.5798 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.198, allocations: 4 kB / 0.5798 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.198, allocations: 0 / 0.5798 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.198, allocations: 0 / 0.5798 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.1992, allocations: 0.8215 MB / 0.5806 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1992, allocations: 4 kB / 0.5806 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.1993, allocations: 15.98 kB / 0.5806 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1993, allocations: 0 / 0.5806 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.421e-05/0.1994, allocations: 19.92 kB / 0.5806 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.1994, allocations: 0 / 0.5806 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-06/0.1994, allocations: 3.938 kB / 0.5806 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.2005, allocations: 0.7088 MB / 0.5813 GB, free: 13.17 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.595e-05/0.2006, allocations: 96.83 kB / 0.5814 GB, free: 13.06 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.563e-05/0.2006, allocations: 19.98 kB / 0.5814 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.2008, allocations: 11.98 kB / 0.5815 GB, free: 13.03 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.2009, allocations: 15.98 kB / 0.5815 GB, free: 13.01 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.2009, allocations: 12 kB / 0.5815 GB, free: 13 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.992e-05/0.201, allocations: 111.2 kB / 0.5816 GB, free: 12.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.201, allocations: 64 / 0.5816 GB, free: 12.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003997/0.2014, allocations: 75.98 kB / 0.5817 GB, free: 12.82 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.0007154/0.2021, allocations: 289.9 kB / 0.5819 GB, free: 12.58 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008353/0.203, allocations: 485.3 kB / 0.5824 GB, free: 12.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.203, allocations: 0 / 0.5824 GB, free: 12.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004749/0.2035, allocations: 310.6 kB / 0.5827 GB, free: 11.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.2039, allocations: 31.92 kB / 0.5827 GB, free: 11.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001023/0.2049, allocations: 438.8 kB / 0.5831 GB, free: 11.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005087/0.2054, allocations: 0.7202 MB / 0.5838 GB, free: 10.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 9.717e-05/0.2055, allocations: 37.33 kB / 0.5839 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.266e-05/0.2056, allocations: 15.44 kB / 0.5839 GB, free: 10.45 MB / 462.1 MB Notification: Performance of SimCode: time 1.81e-07/0.2056, allocations: 0 / 0.5839 GB, free: 10.45 MB / 462.1 MB Notification: Performance of Templates: time 0.007167/0.2128, allocations: 3.267 MB / 0.5871 GB, free: 7.207 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)