Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001332/0.001332, allocations: 111.3 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.001367/0.001367, allocations: 197.2 kB / 16.14 MB, free: 6.711 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.344/1.344, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.346/2.346, allocations: 390.2 MB / 0.6643 GB, free: 0.6523 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 59.91 kB / 0.812 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5801/0.5815, allocations: 140.4 MB / 0.949 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002812/0.5844, allocations: 1.794 MB / 0.9508 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002304/0.5867, allocations: 1.794 MB / 0.9525 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.552e-05/0.5868, allocations: 5.281 kB / 0.9525 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.587, allocations: 21.95 kB / 0.9526 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.5871, allocations: 22.84 kB / 0.9526 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.5883, allocations: 271.1 kB / 0.9528 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002572/0.5885, allocations: 203.6 kB / 0.953 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.851e-05/0.5886, allocations: 39.25 kB / 0.9531 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.5888, allocations: 69.02 kB / 0.9531 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.5889, allocations: 81 kB / 0.9532 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.693e-05/0.5889, allocations: 6.438 kB / 0.9532 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004374/0.5893, allocations: 256.3 kB / 0.9535 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.373e-05/0.5894, allocations: 47.45 kB / 0.9535 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.734e-05/0.5895, allocations: 67.73 kB / 0.9536 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004476/0.59, allocations: 364.9 kB / 0.9539 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.59, allocations: 0 / 0.9539 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.32e-07/0.59, allocations: 1.156 kB / 0.9539 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.59, allocations: 0 / 0.9539 GB, free: 5.523 MB / 0.7169 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.0007436/0.5908, allocations: 0.5232 MB / 0.9544 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.5908, allocations: 9.125 kB / 0.9545 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.307e-05/0.5909, allocations: 42.83 kB / 0.9545 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.9e-05/0.5909, allocations: 18.41 kB / 0.9545 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.5911, allocations: 230.5 kB / 0.9547 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.5911, allocations: 16.38 kB / 0.9547 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.345e-05/0.5912, allocations: 18.12 kB / 0.9548 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.5914, allocations: 149.9 kB / 0.9549 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.5915, allocations: 0 / 0.9549 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.5915, allocations: 5.438 kB / 0.9549 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.5915, allocations: 2.562 kB / 0.9549 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000204/0.5917, allocations: 79.06 kB / 0.955 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007063/0.5924, allocations: 435.4 kB / 0.9554 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002602/0.5927, allocations: 153.4 kB / 0.9556 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.5928, allocations: 71.02 kB / 0.9556 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.5929, allocations: 7.531 kB / 0.9556 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002401/0.5931, allocations: 165.6 kB / 0.9558 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 1.533e-06/0.5931, allocations: 0.9688 kB / 0.9558 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20): time 0.0006421/0.5938, allocations: 310.4 kB / 0.9561 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.5938, allocations: 90.81 kB / 0.9562 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.5939, allocations: 169.3 kB / 0.9563 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.594, allocations: 37.17 kB / 0.9564 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.64e-05/0.594, allocations: 110.2 kB / 0.9565 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.043e-05/0.5941, allocations: 59.81 kB / 0.9565 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-05/0.5942, allocations: 61.28 kB / 0.9566 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.103e-05/0.5942, allocations: 336.4 kB / 0.9569 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.5944, allocations: 78.44 kB / 0.957 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.5946, allocations: 182.9 kB / 0.9572 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003265/0.5949, allocations: 262.3 kB / 0.9574 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.5949, allocations: 0 / 0.9574 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004781/0.5954, allocations: 293.1 kB / 0.9577 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.5955, allocations: 6.281 kB / 0.9577 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.026e-06/0.5955, allocations: 2.75 kB / 0.9577 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.5955, allocations: 5.875 kB / 0.9577 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.5956, allocations: 44.78 kB / 0.9577 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.5957, allocations: 8.062 kB / 0.9577 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.5958, allocations: 25.47 kB / 0.9578 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.5958, allocations: 13.56 kB / 0.9578 GB, free: 2.363 MB / 0.7169 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.0001218/0.5959, allocations: 152.6 kB / 0.9579 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-05/0.596, allocations: 16.16 kB / 0.9579 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.315e-05/0.596, allocations: 33.86 kB / 0.958 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.596, allocations: 2.75 kB / 0.958 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.596, allocations: 1.375 kB / 0.958 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.5961, allocations: 4.047 kB / 0.958 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007617/0.5968, allocations: 0.5888 MB / 0.9586 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.5968, allocations: 0 / 0.9586 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.611e-05/0.5969, allocations: 15.2 kB / 0.9586 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.5969, allocations: 5.062 kB / 0.9586 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.597, allocations: 12.39 kB / 0.9586 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.597, allocations: 1.062 kB / 0.9586 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.597, allocations: 1.062 kB / 0.9586 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006194/0.5976, allocations: 440.5 kB / 0.959 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.052e-05/0.5976, allocations: 93.89 kB / 0.9591 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.5977, allocations: 12.88 kB / 0.9591 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.5978, allocations: 14.73 kB / 0.9591 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.5979, allocations: 14.22 kB / 0.9591 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.5979, allocations: 11.47 kB / 0.9592 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.156e-05/0.598, allocations: 125.7 kB / 0.9593 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.598, allocations: 0 / 0.9593 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004512/0.5985, allocations: 105.9 kB / 0.9594 GB, free: 1.164 MB / 0.7169 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.001565/0.6, allocations: 1.298 MB / 0.9606 GB, free: 240 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003962/0.6004, allocations: 200.2 kB / 0.9608 GB, free: 156 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.6004, allocations: 0 / 0.9608 GB, free: 156 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.6006, allocations: 87.69 kB / 0.9609 GB, free: 120 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.6009, allocations: 32.53 kB / 0.9609 GB, free: 104 kB / 0.7169 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.002726/0.6037, allocations: 2.427 MB / 0.9633 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.604, allocations: 0.7319 MB / 0.964 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001292/0.6041, allocations: 52.72 kB / 0.9641 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.743e-05/0.6042, allocations: 44.89 kB / 0.9641 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of SimCode: time 3.61e-07/0.6042, allocations: 0.9062 kB / 0.9641 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4871/1.091, allocations: 5.287 MB / 0.9693 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002304/1.092, allocations: 282.6 kB / 0.9696 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/2.919, allocations: 0 / 0.9696 GB, free: 10.22 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches