Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Python_3_8.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Utilities.IO.Python_3_8.Examples.KalmanFilter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Python_3_8_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.006471/0.006471, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001979/0.001979, allocations: 192.2 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.618/2.618, allocations: 437 MB / 0.7105 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 63.84 kB / 1.018 GB, free: 9.922 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9093/0.9107, allocations: 151.6 MB / 1.166 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003276/0.914, allocations: 1.736 MB / 1.168 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002916/0.917, allocations: 1.802 MB / 1.17 GB, free: 252 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.768e-05/0.9171, allocations: 0 / 1.17 GB, free: 252 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0002028/0.9173, allocations: 43.7 kB / 1.17 GB, free: 208 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.9175, allocations: 15.81 kB / 1.17 GB, free: 192 kB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001332/0.9188, allocations: 320.2 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0003021/0.9192, allocations: 227.4 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.9193, allocations: 21.55 kB / 1.17 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.9194, allocations: 83.69 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.9196, allocations: 79.67 kB / 1.17 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.117e-05/0.9196, allocations: 12 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004512/0.9201, allocations: 279.5 kB / 1.171 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.9202, allocations: 63.8 kB / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.9203, allocations: 59.61 kB / 1.171 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000483/0.9208, allocations: 382.4 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.9208, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.262e-06/0.9209, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.9209, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0008677/0.9217, allocations: 0.5333 MB / 1.172 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.9218, allocations: 16.86 kB / 1.172 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.86e-05/0.9218, allocations: 42.73 kB / 1.172 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.272e-05/0.9219, allocations: 16.84 kB / 1.172 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002462/0.9222, allocations: 228.8 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.9222, allocations: 16.12 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.089e-05/0.9222, allocations: 12 kB / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003334/0.9226, allocations: 153 kB / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.9226, allocations: 4 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.9226, allocations: 0 / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.9226, allocations: 0 / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002228/0.9229, allocations: 83.88 kB / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009335/0.9238, allocations: 436.7 kB / 1.173 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.9241, allocations: 150.5 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.9243, allocations: 71.33 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.9244, allocations: 4 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003256/0.9247, allocations: 165.2 kB / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=20): time 1.733e-06/0.9247, allocations: 4 kB / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20): time 0.0006889/0.9254, allocations: 311.9 kB / 1.173 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.51e-05/0.9255, allocations: 89.09 kB / 1.173 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.9256, allocations: 174.5 kB / 1.174 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.503e-05/0.9257, allocations: 37.7 kB / 1.174 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.584e-05/0.9258, allocations: 112.5 kB / 1.174 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.794e-05/0.9258, allocations: 51.62 kB / 1.174 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.483e-05/0.9259, allocations: 61.97 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.926, allocations: 330.8 kB / 1.174 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.9262, allocations: 84.44 kB / 1.174 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002303/0.9264, allocations: 186.4 kB / 1.174 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003704/0.9268, allocations: 263.8 kB / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.9268, allocations: 0 / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004995/0.9273, allocations: 301.1 kB / 1.175 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.9274, allocations: 4 kB / 1.175 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.9274, allocations: 4 kB / 1.175 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.9274, allocations: 8 kB / 1.175 GB, free: 10.47 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001562/0.9276, allocations: 43.97 kB / 1.175 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.9276, allocations: 4 kB / 1.175 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.9277, allocations: 24.27 kB / 1.175 GB, free: 10.4 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.335e-05/0.9277, allocations: 23.88 kB / 1.175 GB, free: 10.38 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 25 ($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_temp[1],$PRE.ran.uRWri_temp[1],ran.uRWri[1],$PRE.ran.uRWri[1],kalFil.sampleTrigger,$whenCondition2,kalFil.uRWri_temp[1],$PRE.kalFil.uRWri_temp[1],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 (34): * Single equations (assignments): 34 * 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.0001447/0.9279, allocations: 152 kB / 1.175 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.517e-05/0.9279, allocations: 19.86 kB / 1.175 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.181e-05/0.928, allocations: 21.86 kB / 1.175 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.928, allocations: 4 kB / 1.175 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.928, allocations: 0 / 1.175 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.928, allocations: 4 kB / 1.175 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008987/0.9289, allocations: 0.5882 MB / 1.176 GB, free: 9.523 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.9289, allocations: 0 / 1.176 GB, free: 9.523 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.929, allocations: 15.98 kB / 1.176 GB, free: 9.508 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.9291, allocations: 0 / 1.176 GB, free: 9.508 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.034e-05/0.9291, allocations: 11.92 kB / 1.176 GB, free: 9.496 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.9291, allocations: 3.984 kB / 1.176 GB, free: 9.492 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.9291, allocations: 0 / 1.176 GB, free: 9.492 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007178/0.9298, allocations: 443 kB / 1.176 GB, free: 9.043 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.448e-05/0.9299, allocations: 89.05 kB / 1.176 GB, free: 8.938 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.46e-05/0.93, allocations: 15.94 kB / 1.176 GB, free: 8.922 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.9301, allocations: 12.05 kB / 1.176 GB, free: 8.91 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.927e-05/0.9302, allocations: 19.97 kB / 1.176 GB, free: 8.891 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.907e-05/0.9302, allocations: 12 kB / 1.176 GB, free: 8.879 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001239/0.9303, allocations: 124.2 kB / 1.176 GB, free: 8.758 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.5e-07/0.9303, allocations: 0 / 1.176 GB, free: 8.758 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000494/0.9308, allocations: 107.6 kB / 1.177 GB, free: 8.652 MB / 0.9044 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: 15 (kalFil.sampleTrigger,ran.sampleTrigger,$whenCondition2,$whenCondition1,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],ran.uRWri_temp[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[1],kalFil.uRWri_temp[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 (20): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.001772/0.9326, allocations: 1.315 MB / 1.178 GB, free: 7.426 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004288/0.9331, allocations: 200.3 kB / 1.178 GB, free: 7.23 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.9331, allocations: 4.125 kB / 1.178 GB, free: 7.227 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.9333, allocations: 83.89 kB / 1.178 GB, free: 7.145 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.9336, allocations: 27.97 kB / 1.178 GB, free: 7.117 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002786/0.9364, allocations: 2.403 MB / 1.18 GB, free: 4.559 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.9367, allocations: 0.732 MB / 1.181 GB, free: 3.801 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001119/0.9368, allocations: 45.5 kB / 1.181 GB, free: 3.758 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.889e-05/0.9369, allocations: 51.36 kB / 1.181 GB, free: 3.707 MB / 0.9044 GB Notification: Performance of SimCode: time 2.2e-07/0.9369, allocations: 0 / 1.181 GB, free: 3.707 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03434/0.9713, allocations: 5.591 MB / 1.187 GB, free: 14.14 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.214/9.186, allocations: 16.14 kB / 1.187 GB, free: 14.12 MB / 0.92 GB (rm -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1)