Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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: "" <> buildModelFMU(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,fileNamePrefix="Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Examples_KalmanFilter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,fileNamePrefix="Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Examples_KalmanFilter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008523/0.0008524, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004874/0.004874, allocations: 172.3 kB / 16.27 MB, free: 6.66 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.164/1.164, allocations: 205.4 MB / 222.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.507/1.507, allocations: 292.7 MB / 0.5502 GB, free: 14.47 MB / 462.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: Performance of FrontEnd - loaded program: time 0.0004304/0.0004304, allocations: 12.59 kB / 0.6744 GB, free: 25.72 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1616, allocations: 116.3 MB / 0.788 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.001703/0.1634, allocations: 1.435 MB / 0.7894 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002184/0.1656, allocations: 1.768 MB / 0.7911 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.87e-05/0.1656, allocations: 3.938 kB / 0.7911 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001233/0.1658, allocations: 27.83 kB / 0.7912 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.769e-05/0.1659, allocations: 23.88 kB / 0.7912 GB, free: 8.23 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Obsolete/Utilities/IO/Python27/Functions/exchange.mo:2:1-109:13:writable] Warning: Pure function ‘Buildings.Obsolete.Utilities.IO.Python27.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0008734/0.1668, allocations: 265.2 kB / 0.7914 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002076/0.167, allocations: 183.5 kB / 0.7916 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.12e-05/0.1671, allocations: 33.48 kB / 0.7916 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.1672, allocations: 71.69 kB / 0.7917 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.756e-05/0.1673, allocations: 67.69 kB / 0.7918 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.728e-05/0.1673, allocations: 4 kB / 0.7918 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003445/0.1677, allocations: 251.6 kB / 0.792 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.639e-05/0.1677, allocations: 43.88 kB / 0.7921 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.934e-05/0.1678, allocations: 85.36 kB / 0.7921 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003703/0.1682, allocations: 351.1 kB / 0.7925 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.1682, allocations: 0 / 0.7925 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.274e-06/0.1682, allocations: 4 kB / 0.7925 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.547e-06/0.1682, allocations: 3.938 kB / 0.7925 GB, free: 6.895 MB / 0.6075 GB 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.0006413/0.1689, allocations: 491 kB / 0.7929 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.1689, allocations: 16.03 kB / 0.793 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.375e-05/0.169, allocations: 38.75 kB / 0.793 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.583e-05/0.169, allocations: 20.69 kB / 0.793 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.1692, allocations: 223.9 kB / 0.7932 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.1692, allocations: 12.38 kB / 0.7932 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.142e-05/0.1692, allocations: 15.94 kB / 0.7933 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002553/0.1695, allocations: 147.3 kB / 0.7934 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-06/0.1695, allocations: 0 / 0.7934 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.1695, allocations: 4 kB / 0.7934 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.1696, allocations: 4 kB / 0.7934 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.1697, allocations: 79.88 kB / 0.7935 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006704/0.1704, allocations: 412.6 kB / 0.7939 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002572/0.1707, allocations: 158.5 kB / 0.794 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.1708, allocations: 68.83 kB / 0.7941 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.1709, allocations: 4 kB / 0.7941 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002387/0.1711, allocations: 160.9 kB / 0.7943 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.262e-06/0.1711, allocations: 0 / 0.7943 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0005639/0.1717, allocations: 293.2 kB / 0.7945 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.1717, allocations: 89.22 kB / 0.7946 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.1719, allocations: 171.2 kB / 0.7948 GB, free: 4.316 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.1719, allocations: 41.69 kB / 0.7948 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.838e-05/0.172, allocations: 108.5 kB / 0.7949 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.938e-05/0.172, allocations: 47.44 kB / 0.795 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.1721, allocations: 33.7 kB / 0.795 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.424e-05/0.1722, allocations: 326.8 kB / 0.7953 GB, free: 3.742 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.1723, allocations: 71.95 kB / 0.7954 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.1725, allocations: 168.8 kB / 0.7955 GB, free: 3.461 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000316/0.1728, allocations: 251.8 kB / 0.7958 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1728, allocations: 0 / 0.7958 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004233/0.1733, allocations: 281.3 kB / 0.7961 GB, free: 2.891 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.1733, allocations: 8 kB / 0.7961 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1733, allocations: 0 / 0.7961 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.1733, allocations: 12 kB / 0.7961 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.1735, allocations: 39.92 kB / 0.7961 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.1735, allocations: 7.938 kB / 0.7961 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.626e-05/0.1736, allocations: 19.88 kB / 0.7961 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.1736, allocations: 20.05 kB / 0.7962 GB, free: 2.785 MB / 0.6075 GB 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.0001147/0.1737, allocations: 151.5 kB / 0.7963 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.517e-05/0.1738, allocations: 15.81 kB / 0.7963 GB, free: 2.613 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.533e-05/0.1738, allocations: 21.86 kB / 0.7963 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1738, allocations: 4 kB / 0.7963 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1738, allocations: 3.938 kB / 0.7963 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1738, allocations: 0 / 0.7963 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007031/0.1745, allocations: 0.5636 MB / 0.7969 GB, free: 1.965 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1746, allocations: 3.938 kB / 0.7969 GB, free: 1.961 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.203e-05/0.1746, allocations: 19.92 kB / 0.7969 GB, free: 1.941 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.1747, allocations: 7.938 kB / 0.7969 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.1747, allocations: 15.92 kB / 0.7969 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.1747, allocations: 4 kB / 0.7969 GB, free: 1.914 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1747, allocations: 0 / 0.7969 GB, free: 1.914 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005555/0.1753, allocations: 412 kB / 0.7973 GB, free: 1.492 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.603e-05/0.1753, allocations: 108.8 kB / 0.7974 GB, free: 1.367 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.663e-05/0.1753, allocations: 0 / 0.7974 GB, free: 1.367 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.1755, allocations: 19.98 kB / 0.7975 GB, free: 1.348 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.1755, allocations: 7.984 kB / 0.7975 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.1755, allocations: 11.98 kB / 0.7975 GB, free: 1.328 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.032e-05/0.1756, allocations: 124 kB / 0.7976 GB, free: 1.207 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.71e-07/0.1756, allocations: 3.938 kB / 0.7976 GB, free: 1.203 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003694/0.176, allocations: 104 kB / 0.7977 GB, free: 1.102 MB / 0.6075 GB 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.001372/0.1774, allocations: 1.278 MB / 0.7989 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003347/0.1777, allocations: 183.8 kB / 0.7991 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1777, allocations: 0 / 0.7991 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.1779, allocations: 84.69 kB / 0.7992 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.1782, allocations: 27.98 kB / 0.7992 GB, free: 15.62 MB / 0.6231 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/legal.html") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.1805, allocations: 2.356 MB / 0.8015 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.1807, allocations: 0.7243 MB / 0.8022 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.793e-05/0.1808, allocations: 53.44 kB / 0.8023 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.953e-05/0.1808, allocations: 43.42 kB / 0.8023 GB, free: 12.26 MB / 0.6231 GB Notification: Performance of SimCode: time 3.21e-07/0.1809, allocations: 0 / 0.8023 GB, free: 12.26 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5192/0.7001, allocations: 4.891 MB / 0.8071 GB, free: 7.527 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002459/0.7003, allocations: 288.3 kB / 0.8074 GB, free: 7.148 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.607/2.307, allocations: 0 / 0.8074 GB, free: 7.148 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Examples_KalmanFilter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Obsolete_Utilities_IO_Python27_Examples_KalmanFilter.fmu > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)