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: 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.001062/0.001062, allocations: 98.11 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.009034/0.009034, allocations: 169.4 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.424/1.424, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.808/2.808, allocations: 462.6 MB / 0.7364 GB, free: 256 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003922/0.0003922, allocations: 9 kB / 0.9028 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3577, allocations: 159.6 MB / 1.059 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002184/0.3599, allocations: 1.452 MB / 1.06 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002613/0.3626, allocations: 1.767 MB / 1.062 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.916e-05/0.3627, allocations: 0 / 1.062 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001573/0.3628, allocations: 27.83 kB / 1.062 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.363, allocations: 15.81 kB / 1.062 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.3641, allocations: 279.4 kB / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002665/0.3644, allocations: 207.4 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.3645, allocations: 29.55 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.3647, allocations: 75.69 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.3648, allocations: 67.67 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.05e-05/0.3648, allocations: 4 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003918/0.3652, allocations: 251.6 kB / 1.063 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.3653, allocations: 51.81 kB / 1.063 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.3655, allocations: 97.28 kB / 1.063 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004365/0.3659, allocations: 363.4 kB / 1.063 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.32e-05/0.3659, allocations: 4 kB / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.764e-06/0.3659, allocations: 0 / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.241e-06/0.3659, allocations: 0 / 1.063 GB, free: 0.75 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.0008321/0.3668, allocations: 0.4913 MB / 1.064 GB, free: 216 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.3668, allocations: 12.03 kB / 1.064 GB, free: 204 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.491e-05/0.3669, allocations: 20.66 kB / 1.064 GB, free: 184 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00027/0.3672, allocations: 225.4 kB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.3672, allocations: 16.31 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.081e-05/0.3672, allocations: 12 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000325/0.3676, allocations: 161.3 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.3676, allocations: 3.984 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.3676, allocations: 4 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3676, allocations: 0 / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000218/0.3678, allocations: 91.88 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008649/0.3687, allocations: 432.7 kB / 1.065 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.369, allocations: 162.4 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.3692, allocations: 68.83 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.3692, allocations: 7.984 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003017/0.3695, allocations: 166.4 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.392e-06/0.3695, allocations: 0 / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20): time 0.000693/0.3702, allocations: 318.8 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/0.3703, allocations: 93.22 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.3705, allocations: 174.8 kB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.3705, allocations: 37.7 kB / 1.066 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.25e-05/0.3706, allocations: 116.4 kB / 1.066 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.994e-05/0.3707, allocations: 59.28 kB / 1.066 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.655e-05/0.3708, allocations: 33.7 kB / 1.066 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3709, allocations: 334.8 kB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/0.3711, allocations: 84.5 kB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000247/0.3713, allocations: 185.9 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000407/0.3718, allocations: 275.7 kB / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3718, allocations: 0 / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005006/0.3723, allocations: 301.4 kB / 1.067 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3723, allocations: 8 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3723, allocations: 0 / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.551e-05/0.3723, allocations: 8 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.3725, allocations: 43.86 kB / 1.067 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.3725, allocations: 11.98 kB / 1.067 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.3726, allocations: 19.84 kB / 1.067 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.3727, allocations: 16.06 kB / 1.067 GB, free: 12.5 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.0001629/0.3728, allocations: 163.9 kB / 1.067 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.711e-05/0.3729, allocations: 19.75 kB / 1.067 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.843e-05/0.3729, allocations: 17.88 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3729, allocations: 4 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.373, allocations: 4.062 kB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.373, allocations: 7.984 kB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008538/0.3738, allocations: 0.5854 MB / 1.068 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3738, allocations: 0 / 1.068 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.705e-05/0.3739, allocations: 15.98 kB / 1.068 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.374, allocations: 7.938 kB / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.374, allocations: 11.98 kB / 1.068 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.374, allocations: 7.938 kB / 1.068 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.374, allocations: 0 / 1.068 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006826/0.3747, allocations: 445.5 kB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.282e-05/0.3747, allocations: 100.9 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.01e-05/0.3748, allocations: 19.91 kB / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.3749, allocations: 11.98 kB / 1.068 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.691e-05/0.375, allocations: 16.08 kB / 1.068 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.375, allocations: 16 kB / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.326e-05/0.3751, allocations: 123.2 kB / 1.069 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3751, allocations: 0 / 1.069 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004475/0.3756, allocations: 99.98 kB / 1.069 GB, free: 10.74 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.0008869/0.3765, allocations: 449.6 kB / 1.069 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004333/0.3769, allocations: 209 kB / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3769, allocations: 0 / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001747/0.3771, allocations: 88.7 kB / 1.069 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.3774, allocations: 31.92 kB / 1.069 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007251/0.3782, allocations: 428.9 kB / 1.07 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.3785, allocations: 0.7284 MB / 1.071 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001226/0.3786, allocations: 53.38 kB / 1.071 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.198e-05/0.3787, allocations: 23.42 kB / 1.071 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3787, allocations: 0 / 1.071 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of Templates: time 0.006964/0.3856, allocations: 3.284 MB / 1.074 GB, free: 5.527 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