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.001215/0.001214, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001304/0.001304, allocations: 189.8 kB / 16.25 MB, free: 6.637 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.37/1.37, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.49/2.49, allocations: 437 MB / 0.7101 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 63.91 kB / 0.8689 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7643/0.7658, allocations: 151.6 MB / 1.017 GB, free: 2.727 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003228/0.769, allocations: 1.789 MB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002498/0.7716, allocations: 1.775 MB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.7717, allocations: 7.938 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001715/0.7719, allocations: 19.84 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.7721, allocations: 27.8 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001239/0.7733, allocations: 285.3 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002537/0.7736, allocations: 219.4 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.865e-05/0.7737, allocations: 25.56 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.7738, allocations: 87.67 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001045/0.7739, allocations: 75.67 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.453e-05/0.774, allocations: 12 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003766/0.7743, allocations: 259.6 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.602e-05/0.7744, allocations: 59.81 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.665e-05/0.7745, allocations: 67.66 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003881/0.7749, allocations: 373.3 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.7749, allocations: 4 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.663e-06/0.7749, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.775, allocations: 0 / 1.022 GB, free: 13.65 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.0007445/0.7757, allocations: 0.5185 MB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.7757, allocations: 8.031 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.363e-05/0.7758, allocations: 42.73 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.847e-05/0.7758, allocations: 24.66 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/0.7761, allocations: 233.8 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.7761, allocations: 12.12 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.979e-05/0.7761, allocations: 12 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/0.7764, allocations: 155.2 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.7764, allocations: 3.984 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.7765, allocations: 0 / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.7765, allocations: 0 / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001903/0.7767, allocations: 91.81 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007374/0.7774, allocations: 428.7 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.7777, allocations: 150.5 kB / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.7778, allocations: 76.7 kB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.7778, allocations: 0 / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002574/0.7781, allocations: 167 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.7781, allocations: 4 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20): time 0.0005998/0.7787, allocations: 305.2 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.7788, allocations: 85.09 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.7789, allocations: 170.3 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.779, allocations: 41.7 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.227e-05/0.779, allocations: 108.5 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.2e-05/0.7791, allocations: 67.41 kB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-05/0.7791, allocations: 57.97 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.866e-05/0.7792, allocations: 334.8 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.7794, allocations: 76.5 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.7796, allocations: 185.8 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003342/0.7799, allocations: 259.8 kB / 1.025 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.78, allocations: 0 / 1.025 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004295/0.7804, allocations: 293.4 kB / 1.026 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.7804, allocations: 13.59 kB / 1.026 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.7804, allocations: 0 / 1.026 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.7804, allocations: 8 kB / 1.026 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.7806, allocations: 39.91 kB / 1.026 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.7806, allocations: 7.938 kB / 1.026 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.7807, allocations: 23.91 kB / 1.026 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.7807, allocations: 19.94 kB / 1.026 GB, free: 9.359 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.0001367/0.7809, allocations: 156.5 kB / 1.026 GB, free: 9.199 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.186e-05/0.7809, allocations: 19.75 kB / 1.026 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.2e-05/0.781, allocations: 21.95 kB / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.781, allocations: 7.938 kB / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.781, allocations: 0 / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.781, allocations: 0 / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007599/0.7818, allocations: 0.5857 MB / 1.026 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.7818, allocations: 0 / 1.026 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.513e-05/0.7819, allocations: 19.98 kB / 1.027 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.7819, allocations: 0 / 1.027 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.7819, allocations: 11.92 kB / 1.027 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.7819, allocations: 0 / 1.027 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.7819, allocations: 4 kB / 1.027 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005937/0.7825, allocations: 441.6 kB / 1.027 GB, free: 8.031 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.087e-05/0.7826, allocations: 88.95 kB / 1.027 GB, free: 7.926 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/0.7826, allocations: 23.91 kB / 1.027 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.7828, allocations: 7.984 kB / 1.027 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.7828, allocations: 15.98 kB / 1.027 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.7828, allocations: 8 kB / 1.027 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.272e-05/0.7829, allocations: 129.8 kB / 1.027 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7829, allocations: 0 / 1.027 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003959/0.7833, allocations: 111.9 kB / 1.027 GB, free: 7.637 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.00153/0.7849, allocations: 1.308 MB / 1.029 GB, free: 6.41 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004042/0.7853, allocations: 225.6 kB / 1.029 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.7853, allocations: 0 / 1.029 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.7855, allocations: 84.64 kB / 1.029 GB, free: 6.109 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.7858, allocations: 32.17 kB / 1.029 GB, free: 6.078 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.002418/0.7882, allocations: 2.424 MB / 1.031 GB, free: 3.488 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.7885, allocations: 0.7281 MB / 1.032 GB, free: 2.734 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001023/0.7886, allocations: 45.5 kB / 1.032 GB, free: 2.691 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.65e-05/0.7886, allocations: 47.42 kB / 1.032 GB, free: 2.648 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.7886, allocations: 0 / 1.032 GB, free: 2.648 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.606/7.395, allocations: 5.393 MB / 1.037 GB, free: 13.35 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002598/7.395, allocations: 280.9 kB / 1.038 GB, free: 12.97 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.671/9.066, allocations: 3.938 kB / 1.038 GB, free: 12.97 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