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.001153/0.001153, allocations: 108 kB / 15.6 MB, free: 132 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.001535/0.001535, allocations: 199.3 kB / 16.54 MB, free: 6.672 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.318/1.318, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.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.476/2.476, allocations: 437 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 55.91 kB / 0.8693 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5459/0.5471, allocations: 151.6 MB / 1.017 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003399/0.5506, allocations: 1.73 MB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002905/0.5535, allocations: 1.81 MB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.5536, allocations: 4 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001954/0.5539, allocations: 27.78 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.554, allocations: 27.72 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001339/0.5554, allocations: 318.3 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002904/0.5557, allocations: 219.4 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.5558, allocations: 25.48 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.556, allocations: 91.67 kB / 1.022 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001352/0.5561, allocations: 75.67 kB / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.354e-05/0.5561, allocations: 12 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004776/0.5566, allocations: 259.6 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.5567, allocations: 55.81 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.601e-05/0.5569, allocations: 67.66 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004982/0.5574, allocations: 373.3 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.5574, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5574, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.017e-05/0.5574, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 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.0008744/0.5583, allocations: 0.524 MB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.5583, allocations: 12.03 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.911e-05/0.5584, allocations: 42.73 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.686e-05/0.5584, allocations: 20.66 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002265/0.5587, allocations: 224.7 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.5587, allocations: 12.12 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.922e-05/0.5587, allocations: 16 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000311/0.5591, allocations: 156.4 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.5591, allocations: 0 / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.5591, allocations: 0 / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.5591, allocations: 3.984 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002114/0.5593, allocations: 79.88 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008426/0.5602, allocations: 432.7 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002978/0.5605, allocations: 154.4 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.5606, allocations: 72.83 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.5607, allocations: 3.984 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000296/0.561, allocations: 161.3 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.834e-06/0.561, allocations: 0 / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20): time 0.0006993/0.5617, allocations: 310.9 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/0.5618, allocations: 85.09 kB / 1.025 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.5619, allocations: 171.8 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.562, allocations: 45.64 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.476e-05/0.562, allocations: 112.5 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.858e-05/0.5621, allocations: 59.3 kB / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.932e-05/0.5622, allocations: 53.97 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.5623, allocations: 338.8 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.5625, allocations: 76.5 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.5627, allocations: 181.9 kB / 1.026 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000387/0.5631, allocations: 267.7 kB / 1.026 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.5632, allocations: 0 / 1.026 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004989/0.5637, allocations: 293.1 kB / 1.026 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.5637, allocations: 8 kB / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.5637, allocations: 3.938 kB / 1.026 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.5637, allocations: 8.375 kB / 1.026 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.5639, allocations: 47.91 kB / 1.026 GB, free: 9.129 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.5639, allocations: 4 kB / 1.026 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.564, allocations: 19.84 kB / 1.026 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.594e-05/0.5641, allocations: 19.94 kB / 1.026 GB, free: 9.086 MB / 0.7794 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.0001661/0.5642, allocations: 152 kB / 1.026 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.894e-05/0.5643, allocations: 19.75 kB / 1.026 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.706e-05/0.5643, allocations: 25.86 kB / 1.026 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.5643, allocations: 4 kB / 1.026 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.5644, allocations: 0 / 1.026 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.716e-06/0.5644, allocations: 0 / 1.026 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008633/0.5652, allocations: 0.5815 MB / 1.027 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5652, allocations: 0 / 1.027 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.5654, allocations: 19.92 kB / 1.027 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.5654, allocations: 4 kB / 1.027 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.5654, allocations: 15.92 kB / 1.027 GB, free: 8.211 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.5654, allocations: 0 / 1.027 GB, free: 8.211 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5654, allocations: 4 kB / 1.027 GB, free: 8.207 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006972/0.5661, allocations: 441.5 kB / 1.027 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.298e-05/0.5662, allocations: 88.95 kB / 1.028 GB, free: 7.656 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.363e-05/0.5662, allocations: 19.92 kB / 1.028 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.5664, allocations: 7.984 kB / 1.028 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.862e-05/0.5664, allocations: 15.98 kB / 1.028 GB, free: 7.613 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.5665, allocations: 12.05 kB / 1.028 GB, free: 7.602 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.683e-05/0.5666, allocations: 128.3 kB / 1.028 GB, free: 7.477 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5666, allocations: 7.875 kB / 1.028 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004495/0.567, allocations: 107.9 kB / 1.028 GB, free: 7.363 MB / 0.7794 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.001656/0.5687, allocations: 1.3 MB / 1.029 GB, free: 6.145 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004533/0.5692, allocations: 222.2 kB / 1.029 GB, free: 5.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5692, allocations: 0 / 1.029 GB, free: 5.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001901/0.5694, allocations: 83.89 kB / 1.029 GB, free: 5.848 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.5697, allocations: 30.45 kB / 1.029 GB, free: 5.82 MB / 0.7794 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.002693/0.5724, allocations: 2.404 MB / 1.032 GB, free: 3.25 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.5727, allocations: 0.7244 MB / 1.032 GB, free: 2.496 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001137/0.5728, allocations: 53.44 kB / 1.032 GB, free: 2.445 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.241e-05/0.5729, allocations: 51.36 kB / 1.033 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.5729, allocations: 0 / 1.033 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.523/1.096, allocations: 5.496 MB / 1.038 GB, free: 12.97 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.417/8.513, allocations: 15.5 kB / 1.038 GB, free: 12.96 MB / 0.795 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)