Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_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_latest_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.004809/0.004809, allocations: 99.47 kB / 15.73 MB, free: 5.988 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.001109/0.001109, allocations: 191.9 kB / 16.67 MB, free: 5.918 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.813/2.813, allocations: 469.4 MB / 0.7421 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 60.09 kB / 1.064 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3661, allocations: 159.1 MB / 1.22 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003586/0.3697, allocations: 1.738 MB / 1.221 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003085/0.3728, allocations: 1.81 MB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.373, allocations: 4 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001969/0.3732, allocations: 27.72 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001733/0.3734, allocations: 23.8 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.3748, allocations: 319.5 kB / 1.224 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000343/0.3752, allocations: 223.4 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.3753, allocations: 29.55 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.3755, allocations: 83.69 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001405/0.3757, allocations: 79.67 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.3757, allocations: 8 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005226/0.3762, allocations: 279.5 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001193/0.3764, allocations: 67.8 kB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.3e-05/0.3765, allocations: 67.61 kB / 1.224 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006036/0.3771, allocations: 374.7 kB / 1.225 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3771, allocations: 0 / 1.225 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.813e-06/0.3771, allocations: 0 / 1.225 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.29e-05/0.3771, allocations: 0 / 1.225 GB, free: 9.562 MB / 0.9825 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.0009584/0.3781, allocations: 0.5372 MB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.3781, allocations: 8.031 kB / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.403e-05/0.3782, allocations: 38.75 kB / 1.225 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.979e-05/0.3783, allocations: 20.83 kB / 1.225 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.3785, allocations: 228.8 kB / 1.226 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.3786, allocations: 12.12 kB / 1.226 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.768e-05/0.3786, allocations: 15.98 kB / 1.226 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003211/0.3789, allocations: 151.3 kB / 1.226 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.379, allocations: 0 / 1.226 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.379, allocations: 3.984 kB / 1.226 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.379, allocations: 4 kB / 1.226 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000241/0.3792, allocations: 79.89 kB / 1.226 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008813/0.3801, allocations: 428.7 kB / 1.226 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003273/0.3805, allocations: 154.5 kB / 1.226 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.3806, allocations: 72.81 kB / 1.226 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.3807, allocations: 4 kB / 1.226 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003386/0.381, allocations: 170.5 kB / 1.227 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=20): time 1.964e-06/0.381, allocations: 0 / 1.227 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of matching and sorting (n=20): time 0.0007825/0.3818, allocations: 315.4 kB / 1.227 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.616e-05/0.3819, allocations: 85.11 kB / 1.227 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/0.3821, allocations: 178.9 kB / 1.227 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.949e-05/0.3822, allocations: 45.69 kB / 1.227 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.917e-05/0.3823, allocations: 104.5 kB / 1.227 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.568e-05/0.3824, allocations: 67.56 kB / 1.227 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.3825, allocations: 53.98 kB / 1.227 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.3827, allocations: 342.7 kB / 1.228 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.3828, allocations: 72.52 kB / 1.228 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.3831, allocations: 185.8 kB / 1.228 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004478/0.3836, allocations: 259.8 kB / 1.228 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.3836, allocations: 0 / 1.228 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005512/0.3841, allocations: 297.2 kB / 1.228 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.3842, allocations: 8 kB / 1.228 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3842, allocations: 7.984 kB / 1.228 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.3842, allocations: 4 kB / 1.228 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.3844, allocations: 35.92 kB / 1.229 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.3844, allocations: 4 kB / 1.229 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000141/0.3845, allocations: 36.14 kB / 1.229 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.974e-05/0.3846, allocations: 19.94 kB / 1.229 GB, free: 5.242 MB / 0.9825 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.0002131/0.3848, allocations: 153.4 kB / 1.229 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.23e-05/0.3848, allocations: 15.91 kB / 1.229 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.291e-05/0.3849, allocations: 21.86 kB / 1.229 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.3849, allocations: 4 kB / 1.229 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.3849, allocations: 0 / 1.229 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.3849, allocations: 4 kB / 1.229 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009139/0.3859, allocations: 0.5843 MB / 1.229 GB, free: 4.395 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3859, allocations: 0 / 1.229 GB, free: 4.395 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.386, allocations: 16.09 kB / 1.229 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.386, allocations: 7.922 kB / 1.229 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.556e-05/0.386, allocations: 12 kB / 1.229 GB, free: 4.359 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.386, allocations: 0 / 1.229 GB, free: 4.359 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3861, allocations: 4 kB / 1.229 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006868/0.3867, allocations: 438.5 kB / 1.23 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/0.3868, allocations: 93.05 kB / 1.23 GB, free: 3.801 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.334e-05/0.3869, allocations: 15.92 kB / 1.23 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.387, allocations: 16.05 kB / 1.23 GB, free: 3.77 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.3871, allocations: 11.98 kB / 1.23 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/0.3871, allocations: 11.98 kB / 1.23 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000115/0.3872, allocations: 119.2 kB / 1.23 GB, free: 3.629 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3872, allocations: 0 / 1.23 GB, free: 3.629 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004878/0.3877, allocations: 119.6 kB / 1.23 GB, free: 3.512 MB / 0.9825 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.001938/0.3897, allocations: 1.313 MB / 1.231 GB, free: 2.289 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004422/0.3901, allocations: 200.3 kB / 1.232 GB, free: 2.094 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3901, allocations: 4.062 kB / 1.232 GB, free: 2.09 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.3903, allocations: 89.39 kB / 1.232 GB, free: 2.004 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.3907, allocations: 23.98 kB / 1.232 GB, free: 1.98 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002808/0.3935, allocations: 2.392 MB / 1.234 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.3938, allocations: 0.7281 MB / 1.235 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001224/0.3939, allocations: 53.48 kB / 1.235 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.818e-05/0.394, allocations: 47.42 kB / 1.235 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of SimCode: time 1.623e-06/0.394, allocations: 0 / 1.235 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02831/0.4224, allocations: 5.6 MB / 1.24 GB, free: 9.035 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.003/8.425, allocations: 7.938 kB / 1.24 GB, free: 9.031 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1)