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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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.001695/0.001695, allocations: 107.4 kB / 15.23 MB, free: 0.6406 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.002097/0.002097, allocations: 191.6 kB / 16.14 MB, free: 6.715 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.384/1.384, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.648/2.648, allocations: 461.8 MB / 0.7342 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 62.2 kB / 0.8985 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2957, allocations: 157.4 MB / 1.052 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003111/0.2989, allocations: 1.803 MB / 1.054 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002336/0.3013, allocations: 1.806 MB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.913e-05/0.3013, allocations: 0 / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.3015, allocations: 15.86 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.3016, allocations: 23.78 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009556/0.3026, allocations: 265.2 kB / 1.056 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002224/0.3028, allocations: 203.5 kB / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.533e-05/0.3029, allocations: 33.53 kB / 1.056 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.303, allocations: 71.69 kB / 1.056 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.3031, allocations: 75.61 kB / 1.056 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.469e-05/0.3032, allocations: 8 kB / 1.056 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003756/0.3036, allocations: 259.6 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.932e-05/0.3037, allocations: 51.88 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.431e-05/0.3037, allocations: 71.53 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003824/0.3041, allocations: 359.4 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.3041, allocations: 4 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.71e-07/0.3042, allocations: 3.938 kB / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.586e-06/0.3042, allocations: 0 / 1.057 GB, free: 3.246 MB / 0.8106 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.0007402/0.3049, allocations: 0.5223 MB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.3049, allocations: 15.97 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.03e-05/0.305, allocations: 42.75 kB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.866e-05/0.305, allocations: 20.73 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002018/0.3053, allocations: 217.4 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.3053, allocations: 20.11 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.3053, allocations: 15.98 kB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000285/0.3056, allocations: 148.2 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.3056, allocations: 3.938 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.922e-05/0.3057, allocations: 11.98 kB / 1.058 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.3057, allocations: 0 / 1.058 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001984/0.3059, allocations: 75.89 kB / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007457/0.3066, allocations: 436.7 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002692/0.3069, allocations: 150.5 kB / 1.059 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.307, allocations: 68.81 kB / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.3071, allocations: 4 kB / 1.059 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002725/0.3073, allocations: 171 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 2.715e-06/0.3074, allocations: 0 / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20): time 0.0006233/0.308, allocations: 306.1 kB / 1.059 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/0.3081, allocations: 89.17 kB / 1.059 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.3082, allocations: 175.8 kB / 1.059 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.3082, allocations: 41.69 kB / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.699e-05/0.3083, allocations: 112.5 kB / 1.06 GB, free: 424 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.569e-05/0.3084, allocations: 51.34 kB / 1.06 GB, free: 372 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.956e-05/0.3084, allocations: 61.92 kB / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.3085, allocations: 338.8 kB / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.3087, allocations: 72.52 kB / 1.06 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/0.3089, allocations: 180.3 kB / 1.06 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000357/0.3093, allocations: 263.8 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3093, allocations: 0 / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004723/0.3098, allocations: 297 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.3098, allocations: 7.984 kB / 1.061 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3098, allocations: 4 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.3098, allocations: 8 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.31, allocations: 40.02 kB / 1.061 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.31, allocations: 7.938 kB / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.3101, allocations: 32.11 kB / 1.061 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.3101, allocations: 15.94 kB / 1.061 GB, free: 14.95 MB / 0.8262 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.0001407/0.3103, allocations: 156 kB / 1.061 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.452e-05/0.3103, allocations: 15.81 kB / 1.061 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.952e-05/0.3104, allocations: 21.86 kB / 1.061 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.3104, allocations: 4 kB / 1.061 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3104, allocations: 4 kB / 1.061 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3104, allocations: 3.938 kB / 1.061 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008061/0.3112, allocations: 0.5782 MB / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3112, allocations: 0 / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.3114, allocations: 19.92 kB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3114, allocations: 4.047 kB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.3114, allocations: 15.94 kB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3114, allocations: 4 kB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3114, allocations: 0 / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000652/0.3121, allocations: 434.9 kB / 1.062 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.865e-05/0.3121, allocations: 92.89 kB / 1.062 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.795e-05/0.3122, allocations: 19.92 kB / 1.062 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.3123, allocations: 12.05 kB / 1.062 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.027e-05/0.3124, allocations: 19.92 kB / 1.062 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.618e-05/0.3124, allocations: 11.98 kB / 1.062 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.995e-05/0.3125, allocations: 124.2 kB / 1.062 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3125, allocations: 0 / 1.062 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004198/0.3129, allocations: 103.9 kB / 1.063 GB, free: 13.23 MB / 0.8262 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.001614/0.3146, allocations: 1.311 MB / 1.064 GB, free: 12 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003922/0.315, allocations: 196 kB / 1.064 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.315, allocations: 0 / 1.064 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001773/0.3152, allocations: 83.89 kB / 1.064 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.3155, allocations: 23.97 kB / 1.064 GB, free: 11.71 MB / 0.8262 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.002683/0.3182, allocations: 2.431 MB / 1.066 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.3185, allocations: 0.7281 MB / 1.067 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001154/0.3186, allocations: 49.5 kB / 1.067 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.361e-05/0.3187, allocations: 47.42 kB / 1.067 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.3187, allocations: 0 / 1.067 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5414/0.8601, allocations: 5.276 MB / 1.072 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002765/0.8604, allocations: 290.1 kB / 1.073 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.893/2.754, allocations: 7.938 kB / 1.073 GB, free: 2.723 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches