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: translateModel(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|kalFil.uR.1.|kalFil.yR.1.|sine.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|kalFil.uR.1.|kalFil.yR.1.|sine.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009389/0.000939, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001135/0.001135, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 223.2 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.821/2.821, allocations: 462.6 MB / 0.736 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003934/0.0003935, allocations: 13.06 kB / 0.9021 GB, free: 36.7 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4489/0.4493, allocations: 159.6 MB / 1.058 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002567/0.4519, allocations: 1.414 MB / 1.059 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003026/0.455, allocations: 1.705 MB / 1.061 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.4552, allocations: 3.938 kB / 1.061 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.4554, allocations: 19.84 kB / 1.061 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.4556, allocations: 15.86 kB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001191/0.4568, allocations: 263.4 kB / 1.061 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003743/0.4572, allocations: 187.5 kB / 1.062 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.4574, allocations: 21.55 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002017/0.4576, allocations: 67.75 kB / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.4577, allocations: 63.69 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.4578, allocations: 12 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005791/0.4584, allocations: 231.6 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.4585, allocations: 55.8 kB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.156e-05/0.4586, allocations: 45.64 kB / 1.062 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004574/0.459, allocations: 263.8 kB / 1.062 GB, free: 1 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.4591, allocations: 0 / 1.062 GB, free: 1 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.824e-06/0.4591, allocations: 0 / 1.062 GB, free: 1 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.4591, allocations: 0 / 1.062 GB, free: 1 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.0008919/0.46, allocations: 0.495 MB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.46, allocations: 8.031 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.506e-05/0.4601, allocations: 23.72 kB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002781/0.4604, allocations: 224.1 kB / 1.063 GB, free: 168 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.4604, allocations: 8.188 kB / 1.063 GB, free: 160 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.604e-05/0.4605, allocations: 20 kB / 1.063 GB, free: 140 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003471/0.4608, allocations: 154.1 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.4609, allocations: 0 / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.4609, allocations: 0 / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.4609, allocations: 4 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002187/0.4611, allocations: 84.5 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008987/0.462, allocations: 448.8 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.4623, allocations: 154.4 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.4625, allocations: 68.83 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.4625, allocations: 7.984 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003642/0.4629, allocations: 182.5 kB / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.4629, allocations: 0 / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20): time 0.0006728/0.4636, allocations: 319 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.959e-05/0.4637, allocations: 89.09 kB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.4638, allocations: 171.8 kB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/0.4639, allocations: 37.7 kB / 1.065 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.008e-05/0.4639, allocations: 112.5 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.995e-05/0.464, allocations: 55.27 kB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.111e-05/0.464, allocations: 8.031 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4642, allocations: 334.8 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.4643, allocations: 80.5 kB / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002444/0.4646, allocations: 178 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.4648, allocations: 103.9 kB / 1.065 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4648, allocations: 0 / 1.065 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004803/0.4653, allocations: 305.1 kB / 1.066 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.4653, allocations: 13.61 kB / 1.066 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.4653, allocations: 4.375 kB / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.4653, allocations: 11.98 kB / 1.066 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.4655, allocations: 39.92 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.4655, allocations: 4 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.4656, allocations: 27.83 kB / 1.066 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.4657, allocations: 12 kB / 1.066 GB, free: 13 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,$PRE.kalFil.firstTrigger,kalFil.firstTrigger,$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRIntPre[1],kalFil.uRIntPre[1],$PRE.ran.firstTrigger,ran.firstTrigger,$PRE.ran.uRIntPre[1],ran.uRIntPre[1],$whenCondition1,ran.sampleTrigger,$PRE.ran.uRWri[1],ran.uRWri[1],$PRE.ran.uRWri_temp[1],ran.uRWri_temp[1],$whenCondition2,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],$PRE.kalFil.uRWri_temp[1],kalFil.uRWri_temp[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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001716/0.4658, allocations: 163.9 kB / 1.066 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.96e-05/0.4659, allocations: 15.81 kB / 1.066 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.274e-05/0.4659, allocations: 25.81 kB / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.466, allocations: 0 / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.466, allocations: 4 kB / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.466, allocations: 96 / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008465/0.4668, allocations: 0.5932 MB / 1.067 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.4668, allocations: 0 / 1.067 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.467, allocations: 23.94 kB / 1.067 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.467, allocations: 7.938 kB / 1.067 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.467, allocations: 4 kB / 1.067 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.467, allocations: 0 / 1.067 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.467, allocations: 0 / 1.067 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006644/0.4677, allocations: 451.5 kB / 1.067 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.755e-05/0.4677, allocations: 100.8 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.435e-05/0.4678, allocations: 24.06 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.4679, allocations: 15.98 kB / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.468, allocations: 11.98 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.917e-05/0.468, allocations: 11.98 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001004/0.4681, allocations: 128.2 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4681, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004892/0.4686, allocations: 108 kB / 1.068 GB, free: 11.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009435/0.4696, allocations: 431.5 kB / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004302/0.47, allocations: 212.1 kB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.47, allocations: 4.25 kB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001753/0.4702, allocations: 94.09 kB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.4706, allocations: 27.92 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007503/0.4713, allocations: 411.4 kB / 1.069 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003339/0.4717, allocations: 0.7284 MB / 1.069 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001156/0.4718, allocations: 53.38 kB / 1.069 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.069e-05/0.4718, allocations: 19.44 kB / 1.069 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.4718, allocations: 4 kB / 1.069 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of Templates: time 0.007424/0.4793, allocations: 3.22 MB / 1.073 GB, free: 6.113 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile (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 & ./Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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