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.000752/0.000752, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004332/0.004332, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.189/1.189, allocations: 223.3 MB / 240.3 MB, free: 5.312 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.08/2.08, allocations: 390.9 MB / 0.6664 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002848/0.0002849, allocations: 8 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5102/0.5105, allocations: 142.4 MB / 0.9552 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.001667/0.5122, allocations: 1.438 MB / 0.9566 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002008/0.5142, allocations: 1.779 MB / 0.9583 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.009e-05/0.5143, allocations: 1.406 kB / 0.9583 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.5144, allocations: 22.8 kB / 0.9583 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001084/0.5146, allocations: 19.14 kB / 0.9583 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009733/0.5155, allocations: 270.9 kB / 0.9586 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002077/0.5158, allocations: 204 kB / 0.9588 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.945e-05/0.5158, allocations: 31.28 kB / 0.9588 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.516, allocations: 76.41 kB / 0.9589 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.278e-05/0.5161, allocations: 68.98 kB / 0.959 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.875e-05/0.5161, allocations: 4.281 kB / 0.959 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003317/0.5164, allocations: 255.2 kB / 0.9592 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.943e-05/0.5165, allocations: 48.44 kB / 0.9593 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.35e-05/0.5166, allocations: 92.92 kB / 0.9594 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003332/0.5169, allocations: 356.7 kB / 0.9597 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.5169, allocations: 5.125 kB / 0.9597 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.182e-06/0.5169, allocations: 3.938 kB / 0.9597 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.5169, allocations: 0 / 0.9597 GB, free: 4.238 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.0005846/0.5175, allocations: 0.4976 MB / 0.9602 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.5176, allocations: 13.56 kB / 0.9602 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.51e-05/0.5176, allocations: 42.86 kB / 0.9602 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.708e-05/0.5177, allocations: 21 kB / 0.9603 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.5178, allocations: 226.7 kB / 0.9605 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.5178, allocations: 13.62 kB / 0.9605 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/0.5179, allocations: 13.62 kB / 0.9605 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002445/0.5181, allocations: 156.5 kB / 0.9607 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.5181, allocations: 3.984 kB / 0.9607 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.5181, allocations: 1.375 kB / 0.9607 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.5182, allocations: 6.75 kB / 0.9607 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.5184, allocations: 90.75 kB / 0.9607 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006313/0.519, allocations: 440.5 kB / 0.9612 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002468/0.5192, allocations: 154.3 kB / 0.9613 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.5194, allocations: 77.27 kB / 0.9614 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.5194, allocations: 6.172 kB / 0.9614 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002342/0.5197, allocations: 164.3 kB / 0.9616 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 1.343e-06/0.5197, allocations: 0 / 0.9616 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20): time 0.0005791/0.5202, allocations: 322.7 kB / 0.9619 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.5203, allocations: 92.47 kB / 0.9619 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.5204, allocations: 169.5 kB / 0.9621 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.5204, allocations: 43.77 kB / 0.9622 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.08e-05/0.5205, allocations: 111 kB / 0.9623 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.159e-05/0.5205, allocations: 56.19 kB / 0.9623 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.574e-05/0.5206, allocations: 37 kB / 0.9623 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.085e-05/0.5206, allocations: 335.5 kB / 0.9627 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.5208, allocations: 82.22 kB / 0.9627 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.5209, allocations: 175.1 kB / 0.9629 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003192/0.5213, allocations: 272.7 kB / 0.9632 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.5213, allocations: 1.969 kB / 0.9632 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004286/0.5217, allocations: 316.4 kB / 0.9635 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.5217, allocations: 10.28 kB / 0.9635 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.5217, allocations: 6.906 kB / 0.9635 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.5218, allocations: 4.938 kB / 0.9635 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.5219, allocations: 38.11 kB / 0.9635 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.5219, allocations: 9.078 kB / 0.9635 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.522, allocations: 22.44 kB / 0.9636 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.5221, allocations: 17.34 kB / 0.9636 GB, free: 1.094 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.0001093/0.5222, allocations: 157.7 kB / 0.9637 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.623e-05/0.5222, allocations: 15.84 kB / 0.9637 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.465e-05/0.5222, allocations: 18.34 kB / 0.9638 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.5222, allocations: 2.25 kB / 0.9638 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.5223, allocations: 0.875 kB / 0.9638 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.5223, allocations: 5.109 kB / 0.9638 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006795/0.5229, allocations: 0.5917 MB / 0.9643 GB, free: 476 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.523, allocations: 1.031 kB / 0.9643 GB, free: 476 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.401e-05/0.5231, allocations: 24.77 kB / 0.9644 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.5231, allocations: 4.969 kB / 0.9644 GB, free: 460 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.5231, allocations: 12.55 kB / 0.9644 GB, free: 452 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.5231, allocations: 1.031 kB / 0.9644 GB, free: 452 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.5231, allocations: 4 kB / 0.9644 GB, free: 448 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005204/0.5236, allocations: 442.5 kB / 0.9648 GB, free: 176 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.616e-05/0.5237, allocations: 98.55 kB / 0.9649 GB, free: 64 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.317e-05/0.5237, allocations: 16.58 kB / 0.9649 GB, free: 52 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.5238, allocations: 17.05 kB / 0.9649 GB, free: 44 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.824e-05/0.5239, allocations: 10.73 kB / 0.965 GB, free: 40 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.5239, allocations: 7.594 kB / 0.965 GB, free: 40 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.625e-05/0.524, allocations: 125 kB / 0.9651 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.524, allocations: 8.75 kB / 0.9651 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003904/0.5244, allocations: 114.4 kB / 0.9652 GB, free: 15.89 MB / 0.7325 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.001534/0.5259, allocations: 1.322 MB / 0.9665 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004035/0.5264, allocations: 205.4 kB / 0.9667 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5264, allocations: 0 / 0.9667 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.5266, allocations: 90.69 kB / 0.9668 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.5269, allocations: 24.05 kB / 0.9668 GB, free: 14.82 MB / 0.7325 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.002479/0.5294, allocations: 2.459 MB / 0.9692 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.5296, allocations: 0.7319 MB / 0.9699 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000102/0.5297, allocations: 44.91 kB / 0.97 GB, free: 12.05 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.494e-05/0.5298, allocations: 49.34 kB / 0.97 GB, free: 12.01 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.5298, allocations: 4 kB / 0.97 GB, free: 12 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.051/1.581, allocations: 5.084 MB / 0.975 GB, free: 9.523 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002574/1.582, allocations: 280 kB / 0.9752 GB, free: 9.148 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.425/4.006, allocations: 0 / 0.9752 GB, free: 9.148 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