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.001172/0.001172, 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.001103/0.001103, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.254/1.254, 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.39/2.39, allocations: 437 MB / 0.7104 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 67.89 kB / 0.8693 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5676/0.5689, allocations: 151.6 MB / 1.017 GB, free: 2.453 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003113/0.572, allocations: 1.738 MB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002547/0.5746, allocations: 1.798 MB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.893e-05/0.5747, allocations: 7.938 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.5749, allocations: 27.78 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001268/0.575, allocations: 31.73 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.5762, allocations: 319.3 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002728/0.5765, allocations: 219.4 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.5766, allocations: 33.53 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.5767, allocations: 79.69 kB / 1.022 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.5769, allocations: 75.67 kB / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.104e-05/0.5769, allocations: 12 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004442/0.5773, allocations: 267.6 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.5775, allocations: 55.8 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.998e-05/0.5775, allocations: 63.67 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004584/0.578, allocations: 373.3 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.578, allocations: 4 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.143e-06/0.578, allocations: 0 / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.578, allocations: 0 / 1.022 GB, free: 13.36 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.0007997/0.5789, allocations: 0.5185 MB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.5789, allocations: 8.031 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.243e-05/0.5789, allocations: 46.67 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.42e-05/0.579, allocations: 24.66 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.5792, allocations: 224.7 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.5792, allocations: 12.12 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.666e-05/0.5793, allocations: 12 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002969/0.5796, allocations: 156.9 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.5796, allocations: 0 / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.5796, allocations: 0 / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.5796, allocations: 4 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002218/0.5799, allocations: 83.88 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00079/0.5807, allocations: 428.7 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.581, allocations: 154.4 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.5811, allocations: 72.83 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.5811, allocations: 0 / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002757/0.5814, allocations: 166.7 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.5814, allocations: 4 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20): time 0.0006386/0.5821, allocations: 307 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/0.5822, allocations: 93.09 kB / 1.025 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.5823, allocations: 167.8 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.5823, allocations: 37.7 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.319e-05/0.5824, allocations: 116.4 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.359e-05/0.5825, allocations: 55.42 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.708e-05/0.5826, allocations: 61.97 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.5827, allocations: 334.8 kB / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.5828, allocations: 80.44 kB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/0.583, allocations: 185.9 kB / 1.026 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003615/0.5834, allocations: 259.8 kB / 1.026 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.5834, allocations: 0 / 1.026 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004924/0.5839, allocations: 289.5 kB / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.584, allocations: 12 kB / 1.026 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.584, allocations: 4 kB / 1.026 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.584, allocations: 8 kB / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.5841, allocations: 43.84 kB / 1.026 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.5842, allocations: 4 kB / 1.026 GB, free: 9.117 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.5843, allocations: 19.84 kB / 1.026 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.5843, allocations: 19.94 kB / 1.026 GB, free: 9.078 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.0001417/0.5844, allocations: 156 kB / 1.026 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.503e-05/0.5845, allocations: 19.75 kB / 1.026 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.384e-05/0.5845, allocations: 21.86 kB / 1.026 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.5846, allocations: 4 kB / 1.026 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.5846, allocations: 0 / 1.026 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.5846, allocations: 0 / 1.026 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008358/0.5854, allocations: 0.5957 MB / 1.027 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.5854, allocations: 0 / 1.027 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.5855, allocations: 15.98 kB / 1.027 GB, free: 8.211 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.5855, allocations: 0 / 1.027 GB, free: 8.211 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.5856, allocations: 12.02 kB / 1.027 GB, free: 8.199 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.5856, allocations: 7.875 kB / 1.027 GB, free: 8.191 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.5856, allocations: 7.984 kB / 1.027 GB, free: 8.184 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006445/0.5862, allocations: 438 kB / 1.027 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.695e-05/0.5863, allocations: 92.95 kB / 1.028 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.956e-05/0.5863, allocations: 11.94 kB / 1.028 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.5865, allocations: 11.98 kB / 1.028 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.5865, allocations: 15.97 kB / 1.028 GB, free: 7.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.5866, allocations: 8 kB / 1.028 GB, free: 7.582 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.054e-05/0.5867, allocations: 132.3 kB / 1.028 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5867, allocations: 0 / 1.028 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004318/0.5871, allocations: 111.9 kB / 1.028 GB, free: 7.344 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.001597/0.5887, allocations: 1.296 MB / 1.029 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004313/0.5891, allocations: 223.6 kB / 1.029 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.5892, allocations: 0 / 1.029 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001716/0.5893, allocations: 92.62 kB / 1.029 GB, free: 5.828 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.5897, allocations: 28.03 kB / 1.029 GB, free: 5.801 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.00259/0.5923, allocations: 2.4 MB / 1.032 GB, free: 3.234 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.5925, allocations: 0.732 MB / 1.032 GB, free: 2.473 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001088/0.5927, allocations: 41.5 kB / 1.032 GB, free: 2.434 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.373e-05/0.5927, allocations: 51.42 kB / 1.033 GB, free: 2.387 MB / 0.7794 GB Notification: Performance of SimCode: time 1.583e-06/0.5927, allocations: 0 / 1.033 GB, free: 2.387 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5255/1.118, allocations: 5.505 MB / 1.038 GB, free: 12.95 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.171/8.289, allocations: 3.938 kB / 1.038 GB, free: 12.94 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches