Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.1961/0.1968, allocations: 82.21 MB / 0.5941 GB, free: 5.586 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002105/0.199, allocations: 1.402 MB / 0.5955 GB, free: 4.168 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.2008, allocations: 0.932 MB / 0.5964 GB, free: 3.227 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.106e-05/0.2009, allocations: 7.938 kB / 0.5964 GB, free: 3.219 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.2011, allocations: 7.922 kB / 0.5964 GB, free: 3.211 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.2012, allocations: 31.78 kB / 0.5964 GB, free: 3.18 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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.0005692/0.2018, allocations: 175.4 kB / 0.5966 GB, free: 3.012 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.202, allocations: 171.5 kB / 0.5968 GB, free: 2.844 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.2022, allocations: 33.33 kB / 0.5968 GB, free: 2.809 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.2023, allocations: 63.7 kB / 0.5969 GB, free: 2.746 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.2024, allocations: 63.73 kB / 0.5969 GB, free: 2.684 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/0.2024, allocations: 4 kB / 0.5969 GB, free: 2.68 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001788/0.2026, allocations: 115.8 kB / 0.597 GB, free: 2.566 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.871e-05/0.2027, allocations: 51.77 kB / 0.5971 GB, free: 2.516 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.201e-05/0.2028, allocations: 77.42 kB / 0.5972 GB, free: 2.434 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000263/0.2031, allocations: 223.4 kB / 0.5974 GB, free: 2.215 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2031, allocations: 0 / 0.5974 GB, free: 2.215 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2031, allocations: 0 / 0.5974 GB, free: 2.215 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.2031, allocations: 0 / 0.5974 GB, free: 2.215 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.000715/0.2039, allocations: 463 kB / 0.5978 GB, free: 1.715 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.2039, allocations: 12.03 kB / 0.5978 GB, free: 1.703 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.943e-05/0.204, allocations: 16.75 kB / 0.5978 GB, free: 1.688 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.2042, allocations: 212.6 kB / 0.598 GB, free: 1.441 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.2042, allocations: 4.375 kB / 0.598 GB, free: 1.438 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.937e-05/0.2042, allocations: 16.36 kB / 0.5981 GB, free: 1.422 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.2045, allocations: 147.6 kB / 0.5982 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.2046, allocations: 0 / 0.5982 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.227e-05/0.2046, allocations: 11.98 kB / 0.5982 GB, free: 1.254 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2046, allocations: 0 / 0.5982 GB, free: 1.254 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.2048, allocations: 79.89 kB / 0.5983 GB, free: 1.176 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007666/0.2056, allocations: 412.5 kB / 0.5987 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002854/0.2059, allocations: 154.6 kB / 0.5988 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.206, allocations: 72.75 kB / 0.5989 GB, free: 500 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.206, allocations: 0 / 0.5989 GB, free: 500 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003039/0.2064, allocations: 159.1 kB / 0.599 GB, free: 324 kB / 446.1 MB Notification: Performance of pre-optimization done (n=18): time 1.253e-06/0.2064, allocations: 0 / 0.599 GB, free: 324 kB / 446.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006102/0.207, allocations: 293.3 kB / 0.5993 GB, free: 24 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.245e-05/0.2071, allocations: 89.03 kB / 0.5994 GB, free: 15.92 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.2072, allocations: 157.2 kB / 0.5996 GB, free: 15.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/0.2072, allocations: 37.7 kB / 0.5996 GB, free: 15.71 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.41e-05/0.2073, allocations: 104.5 kB / 0.5997 GB, free: 15.61 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.233e-05/0.2074, allocations: 55.28 kB / 0.5997 GB, free: 15.55 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.112e-05/0.2074, allocations: 33.7 kB / 0.5998 GB, free: 15.51 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.2075, allocations: 334.8 kB / 0.6001 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.2077, allocations: 67.95 kB / 0.6002 GB, free: 15.11 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.2079, allocations: 172.8 kB / 0.6003 GB, free: 14.89 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003593/0.2083, allocations: 251.8 kB / 0.6006 GB, free: 14.61 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.2083, allocations: 4 kB / 0.6006 GB, free: 14.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004443/0.2087, allocations: 277.1 kB / 0.6008 GB, free: 14.32 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.2088, allocations: 8 kB / 0.6008 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.2088, allocations: 4 kB / 0.6008 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2088, allocations: 4 kB / 0.6009 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.2089, allocations: 40.3 kB / 0.6009 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.209, allocations: 8 kB / 0.6009 GB, free: 14.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.2091, allocations: 19.83 kB / 0.6009 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.2091, allocations: 16 kB / 0.6009 GB, free: 14.23 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition3,kalFil.firstTrigger,$PRE.kalFil.firstTrigger,kalFil.yR[1],$PRE.kalFil.yR[1],kalFil.uRIntPre[1],$PRE.kalFil.uRIntPre[1],ran.firstTrigger,$PRE.ran.firstTrigger,ran.uRIntPre[1],$PRE.ran.uRIntPre[1],ran.sampleTrigger,$whenCondition1,ran.uRWri[1],$PRE.ran.uRWri[1],kalFil.sampleTrigger,$whenCondition2,kalFil.uRWri[1],$PRE.kalFil.uRWri[1],ran.yR[1],$PRE.ran.yR[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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.000136/0.2092, allocations: 148.3 kB / 0.6011 GB, free: 14.07 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.385e-05/0.2093, allocations: 11.91 kB / 0.6011 GB, free: 14.06 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.756e-05/0.2093, allocations: 25.17 kB / 0.6011 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.2093, allocations: 4 kB / 0.6011 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2093, allocations: 0 / 0.6011 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2093, allocations: 0 / 0.6011 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007889/0.2101, allocations: 0.5505 MB / 0.6017 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.2102, allocations: 4 kB / 0.6017 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.829e-05/0.2103, allocations: 19.98 kB / 0.6017 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.2103, allocations: 0 / 0.6017 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.2103, allocations: 11.98 kB / 0.6017 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2103, allocations: 11.81 kB / 0.6017 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2103, allocations: 4 kB / 0.6017 GB, free: 13.38 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006057/0.2109, allocations: 410.6 kB / 0.6021 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.211, allocations: 85.05 kB / 0.6022 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.211, allocations: 11.98 kB / 0.6022 GB, free: 12.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.2112, allocations: 23.98 kB / 0.6022 GB, free: 12.83 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.382e-05/0.2112, allocations: 19.95 kB / 0.6022 GB, free: 12.81 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.2112, allocations: 11.98 kB / 0.6022 GB, free: 12.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.814e-05/0.2113, allocations: 108.7 kB / 0.6023 GB, free: 12.69 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2113, allocations: 0 / 0.6023 GB, free: 12.69 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003587/0.2117, allocations: 63.89 kB / 0.6024 GB, free: 12.63 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: 13 (kalFil.sampleTrigger,ran.sampleTrigger,$whenCondition2,$whenCondition1,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[1],$whenCondition3) * Number of discrete states: 2 (kalFil.uR[1],ran.uR[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0005232/0.2122, allocations: 268.3 kB / 0.6027 GB, free: 12.42 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0003956/0.2126, allocations: 184.4 kB / 0.6028 GB, free: 12.24 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2126, allocations: 11.94 kB / 0.6028 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.2128, allocations: 71.97 kB / 0.6029 GB, free: 12.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.2131, allocations: 27.97 kB / 0.6029 GB, free: 12.13 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006582/0.2138, allocations: 387 kB / 0.6033 GB, free: 11.72 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.2141, allocations: 0.7243 MB / 0.604 GB, free: 10.97 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 9.039e-05/0.2142, allocations: 33.52 kB / 0.604 GB, free: 10.94 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.567e-05/0.2143, allocations: 15.44 kB / 0.6041 GB, free: 10.93 MB / 462.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2143, allocations: 0 / 0.6041 GB, free: 10.93 MB / 462.1 MB Notification: Performance of Templates: time 0.005489/0.2198, allocations: 2.266 MB / 0.6063 GB, free: 8.68 MB / 462.1 MB make -j1 -f Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.makefile Environment - environmentSimulation: (rm -f Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.sim & ./Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1) Environment - environmentSimulation: