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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001502/0.001502, allocations: 108 kB / 15.61 MB, free: 148 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.001781/0.001781, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.237/1.237, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.579/2.579, allocations: 461.9 MB / 0.7346 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 59.67 kB / 0.8992 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2621, allocations: 157.4 MB / 1.053 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002793/0.265, allocations: 1.748 MB / 1.055 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002421/0.2674, allocations: 1.807 MB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.059e-05/0.2675, allocations: 3.938 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001679/0.2677, allocations: 31.78 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.2678, allocations: 23.73 kB / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001113/0.269, allocations: 311.1 kB / 1.057 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002314/0.2692, allocations: 219.4 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.271e-05/0.2693, allocations: 33.53 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.2694, allocations: 79.75 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.2695, allocations: 75.61 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.2696, allocations: 12 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003862/0.27, allocations: 267.6 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.47e-05/0.2701, allocations: 55.83 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.894e-05/0.2702, allocations: 67.64 kB / 1.057 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004046/0.2706, allocations: 367.3 kB / 1.058 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2706, allocations: 4 kB / 1.058 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2706, allocations: 0 / 1.058 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.63e-06/0.2706, allocations: 4 kB / 1.058 GB, free: 3.234 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.0007869/0.2714, allocations: 0.5145 MB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.2714, allocations: 8.625 kB / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.119e-05/0.2715, allocations: 42.73 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.948e-05/0.2715, allocations: 20.75 kB / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.2718, allocations: 233.3 kB / 1.059 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.2718, allocations: 12.11 kB / 1.059 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.645e-05/0.2718, allocations: 16 kB / 1.059 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.2721, allocations: 153.3 kB / 1.059 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.2721, allocations: 3.938 kB / 1.059 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.2722, allocations: 4 kB / 1.059 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.2722, allocations: 4 kB / 1.059 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001994/0.2724, allocations: 87.81 kB / 1.059 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007376/0.2731, allocations: 424.7 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002697/0.2734, allocations: 150.5 kB / 1.059 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001364/0.2735, allocations: 76.75 kB / 1.06 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.2736, allocations: 0 / 1.06 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.2738, allocations: 169.2 kB / 1.06 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.442e-06/0.2739, allocations: 4 kB / 1.06 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20): time 0.0006096/0.2745, allocations: 304.5 kB / 1.06 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.2745, allocations: 97.08 kB / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.2747, allocations: 168 kB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.2747, allocations: 37.7 kB / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.549e-05/0.2748, allocations: 116.5 kB / 1.06 GB, free: 420 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.058e-05/0.2748, allocations: 51.48 kB / 1.06 GB, free: 368 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.342e-05/0.2749, allocations: 65.97 kB / 1.06 GB, free: 292 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.275, allocations: 330.8 kB / 1.061 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.2752, allocations: 76.5 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001997/0.2754, allocations: 183.9 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003592/0.2757, allocations: 263.8 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2757, allocations: 0 / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004549/0.2762, allocations: 293.4 kB / 1.062 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.2762, allocations: 13.75 kB / 1.062 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.2762, allocations: 4 kB / 1.062 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.2763, allocations: 4 kB / 1.062 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.2764, allocations: 43.94 kB / 1.062 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.2764, allocations: 11.88 kB / 1.062 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.2766, allocations: 27.75 kB / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.2766, allocations: 15.94 kB / 1.062 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.0001357/0.2767, allocations: 159.9 kB / 1.062 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.591e-05/0.2768, allocations: 19.81 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.495e-05/0.2768, allocations: 13.88 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.2768, allocations: 4 kB / 1.062 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.2768, allocations: 3.984 kB / 1.062 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2768, allocations: 0 / 1.062 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007916/0.2776, allocations: 0.588 MB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2777, allocations: 0 / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.947e-05/0.2778, allocations: 15.98 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2778, allocations: 0 / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.2778, allocations: 11.92 kB / 1.063 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.2778, allocations: 4 kB / 1.063 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2778, allocations: 0 / 1.063 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008126/0.2786, allocations: 441.9 kB / 1.063 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.939e-05/0.2787, allocations: 100.8 kB / 1.063 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.454e-05/0.2788, allocations: 7.938 kB / 1.063 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.279, allocations: 15.98 kB / 1.063 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.593e-05/0.279, allocations: 11.97 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.56e-05/0.2791, allocations: 12 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001114/0.2792, allocations: 128.3 kB / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2792, allocations: 0 / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006752/0.2799, allocations: 111.9 kB / 1.063 GB, free: 13.21 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.001718/0.2816, allocations: 1.299 MB / 1.065 GB, free: 12 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004232/0.2821, allocations: 228.3 kB / 1.065 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2821, allocations: 0 / 1.065 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.2823, allocations: 84.64 kB / 1.065 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.2826, allocations: 35.25 kB / 1.065 GB, free: 11.66 MB / 0.8262 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.002435/0.285, allocations: 2.374 MB / 1.067 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.2853, allocations: 0.732 MB / 1.068 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001011/0.2854, allocations: 41.5 kB / 1.068 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.579e-05/0.2855, allocations: 47.42 kB / 1.068 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2855, allocations: 0 / 1.068 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9506/1.236, allocations: 5.511 MB / 1.073 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.5/8.736, allocations: 5.656 kB / 1.073 GB, free: 2.844 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