Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001213/0.001213, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.293/2.293, allocations: 390.2 MB / 0.6647 GB, free: 456 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001327, allocations: 63.91 kB / 0.8126 GB, free: 14.4 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.621/0.6224, allocations: 140.4 MB / 0.9497 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002804/0.6252, allocations: 1.725 MB / 0.9514 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002397/0.6276, allocations: 1.816 MB / 0.9532 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.239e-05/0.6277, allocations: 5.125 kB / 0.9532 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.00017/0.6279, allocations: 22.61 kB / 0.9532 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.6281, allocations: 26.38 kB / 0.9532 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.6292, allocations: 327.3 kB / 0.9535 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002536/0.6295, allocations: 216.7 kB / 0.9537 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.6296, allocations: 30.75 kB / 0.9538 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.6297, allocations: 86.33 kB / 0.9539 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.6299, allocations: 72 kB / 0.9539 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.038e-05/0.6299, allocations: 11.84 kB / 0.9539 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004322/0.6303, allocations: 263.5 kB / 0.9542 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.6305, allocations: 55.09 kB / 0.9542 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.894e-05/0.6305, allocations: 68.19 kB / 0.9543 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004458/0.631, allocations: 371.4 kB / 0.9547 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.631, allocations: 4 kB / 0.9547 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.043e-06/0.631, allocations: 0 / 0.9547 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.631, allocations: 4 kB / 0.9547 GB, free: 5.48 MB / 0.7169 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.000746/0.6318, allocations: 0.5138 MB / 0.9552 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.6318, allocations: 8.344 kB / 0.9552 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.778e-05/0.6319, allocations: 41.97 kB / 0.9552 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.459e-05/0.6319, allocations: 21.92 kB / 0.9552 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001864/0.6321, allocations: 226.8 kB / 0.9555 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.6321, allocations: 17.66 kB / 0.9555 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.885e-05/0.6322, allocations: 17.83 kB / 0.9555 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002804/0.6325, allocations: 140.5 kB / 0.9556 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.6325, allocations: 0 / 0.9556 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.6325, allocations: 13.05 kB / 0.9556 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.6325, allocations: 2.719 kB / 0.9556 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002164/0.6328, allocations: 87.53 kB / 0.9557 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008116/0.6336, allocations: 424.3 kB / 0.9561 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000286/0.6339, allocations: 155.4 kB / 0.9563 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.634, allocations: 73.47 kB / 0.9563 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.6341, allocations: 5.969 kB / 0.9563 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002846/0.6343, allocations: 162.8 kB / 0.9565 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 1.573e-06/0.6344, allocations: 0 / 0.9565 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20): time 0.0006986/0.6351, allocations: 310.9 kB / 0.9568 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.6351, allocations: 94.28 kB / 0.9569 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.6353, allocations: 168.9 kB / 0.957 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.6353, allocations: 40.56 kB / 0.9571 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.326e-05/0.6354, allocations: 110.1 kB / 0.9572 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.272e-05/0.6354, allocations: 56.83 kB / 0.9572 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.203e-05/0.6355, allocations: 61.48 kB / 0.9573 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.157e-05/0.6356, allocations: 334.9 kB / 0.9576 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.6357, allocations: 75.14 kB / 0.9577 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.636, allocations: 183.5 kB / 0.9579 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003736/0.6363, allocations: 260.7 kB / 0.9581 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.6364, allocations: 1.844 kB / 0.9581 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005264/0.6369, allocations: 292.2 kB / 0.9584 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.6369, allocations: 10.2 kB / 0.9584 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.6369, allocations: 7.438 kB / 0.9584 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.637, allocations: 5.469 kB / 0.9584 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.6371, allocations: 40.08 kB / 0.9585 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.6371, allocations: 8.438 kB / 0.9585 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.6373, allocations: 24.73 kB / 0.9585 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.6373, allocations: 13.78 kB / 0.9585 GB, free: 2.332 MB / 0.7169 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.0001524/0.6375, allocations: 160.7 kB / 0.9587 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.627e-05/0.6375, allocations: 16.41 kB / 0.9587 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.85e-05/0.6376, allocations: 23.2 kB / 0.9587 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.6376, allocations: 2.062 kB / 0.9587 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.6376, allocations: 1.219 kB / 0.9587 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.6376, allocations: 0 / 0.9587 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00079/0.6384, allocations: 0.5893 MB / 0.9593 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.6384, allocations: 4 kB / 0.9593 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.988e-05/0.6385, allocations: 14.8 kB / 0.9593 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.6385, allocations: 1.844 kB / 0.9593 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/0.6385, allocations: 12.38 kB / 0.9593 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.6385, allocations: 5.094 kB / 0.9593 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.6385, allocations: 0 / 0.9593 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006455/0.6392, allocations: 446.2 kB / 0.9597 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.978e-05/0.6392, allocations: 89.42 kB / 0.9598 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.187e-05/0.6393, allocations: 16.48 kB / 0.9598 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.6394, allocations: 11.48 kB / 0.9598 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.825e-05/0.6395, allocations: 14.52 kB / 0.9599 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.6395, allocations: 11.8 kB / 0.9599 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.07e-05/0.6396, allocations: 123.2 kB / 0.96 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6396, allocations: 4.906 kB / 0.96 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004418/0.64, allocations: 109.8 kB / 0.9601 GB, free: 1.125 MB / 0.7169 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.001559/0.6416, allocations: 1.303 MB / 0.9614 GB, free: 192 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000488/0.6421, allocations: 217.3 kB / 0.9616 GB, free: 108 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.6421, allocations: 1.094 kB / 0.9616 GB, free: 108 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001714/0.6423, allocations: 90.16 kB / 0.9617 GB, free: 72 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.6426, allocations: 33.56 kB / 0.9617 GB, free: 48 kB / 0.7169 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.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.002871/0.6455, allocations: 2.395 MB / 0.964 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.6458, allocations: 0.7287 MB / 0.9648 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001123/0.646, allocations: 47.47 kB / 0.9648 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.374e-05/0.646, allocations: 50.25 kB / 0.9648 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.646, allocations: 0 / 0.9648 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4618/1.108, allocations: 5.504 MB / 0.9702 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.472/8.58, allocations: 11.72 kB / 0.9702 GB, free: 10.38 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1)