Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: 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_11_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_11_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.006788/0.006788, allocations: 97.69 kB / 15.73 MB, free: 6.008 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.001333/0.001333, allocations: 195.5 kB / 16.68 MB, free: 5.934 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.815/2.815, allocations: 469.8 MB / 0.7425 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 67.89 kB / 1.065 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3695, allocations: 159.1 MB / 1.221 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003463/0.373, allocations: 1.742 MB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003279/0.3763, allocations: 1.81 MB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.47e-05/0.3763, allocations: 7.938 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000182/0.3765, allocations: 23.8 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.3767, allocations: 23.72 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.378, allocations: 317.2 kB / 1.224 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002885/0.3783, allocations: 231.3 kB / 1.225 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.3784, allocations: 13.56 kB / 1.225 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.3785, allocations: 87.73 kB / 1.225 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.3786, allocations: 83.59 kB / 1.225 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.3787, allocations: 8 kB / 1.225 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004529/0.3791, allocations: 283.5 kB / 1.225 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.3792, allocations: 55.83 kB / 1.225 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.182e-05/0.3793, allocations: 75.58 kB / 1.225 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004541/0.3798, allocations: 362.8 kB / 1.226 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3798, allocations: 4 kB / 1.226 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3798, allocations: 0 / 1.226 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.146e-05/0.3798, allocations: 0 / 1.226 GB, free: 8.754 MB / 0.9825 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.0009579/0.3807, allocations: 0.5333 MB / 1.226 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.3808, allocations: 8.031 kB / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.143e-05/0.3808, allocations: 16.84 kB / 1.226 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.3811, allocations: 233.5 kB / 1.226 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.3811, allocations: 16.11 kB / 1.226 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.206e-05/0.3811, allocations: 15.98 kB / 1.226 GB, free: 7.848 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.3814, allocations: 151.2 kB / 1.226 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.3814, allocations: 0 / 1.226 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.3815, allocations: 4 kB / 1.226 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3815, allocations: 4 kB / 1.226 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002086/0.3817, allocations: 83.88 kB / 1.227 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008144/0.3825, allocations: 428.7 kB / 1.227 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.3828, allocations: 142.5 kB / 1.227 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.3829, allocations: 68.75 kB / 1.227 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.383, allocations: 4 kB / 1.227 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002985/0.3833, allocations: 166.8 kB / 1.227 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=20): time 1.482e-06/0.3833, allocations: 0 / 1.227 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of matching and sorting (n=20): time 0.0006759/0.3839, allocations: 309.4 kB / 1.228 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.188e-05/0.384, allocations: 93.09 kB / 1.228 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.3841, allocations: 171.4 kB / 1.228 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.3842, allocations: 37.7 kB / 1.228 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.966e-05/0.3843, allocations: 112.5 kB / 1.228 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.441e-05/0.3843, allocations: 55.62 kB / 1.228 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.039e-05/0.3844, allocations: 61.97 kB / 1.228 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.3845, allocations: 334.8 kB / 1.228 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.3847, allocations: 76.5 kB / 1.229 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00022/0.3849, allocations: 185.8 kB / 1.229 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004291/0.3853, allocations: 259.8 kB / 1.229 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3853, allocations: 0 / 1.229 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000539/0.3859, allocations: 301.1 kB / 1.229 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.3859, allocations: 10.03 kB / 1.229 GB, free: 4.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.3859, allocations: 4 kB / 1.229 GB, free: 4.605 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.3859, allocations: 4.375 kB / 1.229 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.3861, allocations: 47.84 kB / 1.229 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.3861, allocations: 4 kB / 1.229 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.3862, allocations: 27.78 kB / 1.229 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.3862, allocations: 19.94 kB / 1.229 GB, free: 4.504 MB / 0.9825 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.0001584/0.3864, allocations: 152.1 kB / 1.23 GB, free: 4.348 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.663e-05/0.3864, allocations: 19.84 kB / 1.23 GB, free: 4.328 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.098e-05/0.3865, allocations: 21.88 kB / 1.23 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3865, allocations: 4 kB / 1.23 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.3865, allocations: 0 / 1.23 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.3865, allocations: 3.984 kB / 1.23 GB, free: 4.293 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009251/0.3874, allocations: 0.5862 MB / 1.23 GB, free: 3.652 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3874, allocations: 0 / 1.23 GB, free: 3.652 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.3875, allocations: 15.98 kB / 1.23 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3875, allocations: 4 kB / 1.23 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.3875, allocations: 11.92 kB / 1.23 GB, free: 3.621 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3875, allocations: 4 kB / 1.23 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3875, allocations: 7.875 kB / 1.23 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006864/0.3882, allocations: 430.5 kB / 1.231 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.357e-05/0.3883, allocations: 101.1 kB / 1.231 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.535e-05/0.3883, allocations: 11.94 kB / 1.231 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.3885, allocations: 15.98 kB / 1.231 GB, free: 3.027 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.49e-05/0.3885, allocations: 11.97 kB / 1.231 GB, free: 3.016 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.172e-05/0.3886, allocations: 12 kB / 1.231 GB, free: 3.004 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.198e-05/0.3886, allocations: 119.2 kB / 1.231 GB, free: 2.887 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3886, allocations: 0 / 1.231 GB, free: 2.887 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005083/0.3892, allocations: 111.7 kB / 1.231 GB, free: 2.777 MB / 0.9825 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.000917/0.3901, allocations: 457.9 kB / 1.231 GB, free: 2.434 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004398/0.3905, allocations: 191.7 kB / 1.232 GB, free: 2.246 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3905, allocations: 0 / 1.232 GB, free: 2.246 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.3907, allocations: 76.64 kB / 1.232 GB, free: 2.172 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.391, allocations: 32.17 kB / 1.232 GB, free: 2.141 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008792/0.3919, allocations: 380.2 kB / 1.232 GB, free: 1.742 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.3922, allocations: 0.732 MB / 1.233 GB, free: 0.9844 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001129/0.3924, allocations: 49.44 kB / 1.233 GB, free: 0.9375 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.904e-05/0.3924, allocations: 23.38 kB / 1.233 GB, free: 0.9141 MB / 0.9825 GB Notification: Performance of SimCode: time 7.61e-07/0.3924, allocations: 0 / 1.233 GB, free: 0.9141 MB / 0.9825 GB Notification: Performance of Templates: time 0.007247/0.3996, allocations: 3.466 MB / 1.236 GB, free: 13.46 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile (rm -f Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & ./Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches