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.001099/0.001099, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001126/0.001126, allocations: 194.6 kB / 16.25 MB, free: 6.629 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.359/1.359, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.69/2.69, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 72.8 kB / 0.8986 GB, free: 37.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3264, allocations: 157.4 MB / 1.052 GB, free: 8.762 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003405/0.3298, allocations: 1.801 MB / 1.054 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002855/0.3327, allocations: 1.779 MB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.891e-05/0.3328, allocations: 3.938 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001953/0.333, allocations: 23.86 kB / 1.056 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.3332, allocations: 23.84 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001115/0.3343, allocations: 277.3 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002667/0.3346, allocations: 219.4 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.3347, allocations: 25.56 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.3348, allocations: 87.67 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.335, allocations: 79.61 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.577e-05/0.335, allocations: 8 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003819/0.3354, allocations: 263.6 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.3355, allocations: 63.81 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.144e-05/0.3356, allocations: 71.59 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004182/0.336, allocations: 371.3 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.336, allocations: 0 / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.416e-06/0.336, allocations: 8 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.224e-05/0.336, allocations: 0 / 1.057 GB, free: 3.668 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.00092/0.337, allocations: 0.5146 MB / 1.058 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.337, allocations: 8.031 kB / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.616e-05/0.3371, allocations: 20.75 kB / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.3374, allocations: 229.3 kB / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.3374, allocations: 16.31 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.271e-05/0.3374, allocations: 19.94 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003202/0.3378, allocations: 147.3 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.3378, allocations: 0 / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.3378, allocations: 0 / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.3378, allocations: 4 kB / 1.058 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.338, allocations: 83.88 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000808/0.3388, allocations: 428.7 kB / 1.059 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002863/0.3391, allocations: 150.5 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/0.3393, allocations: 72.83 kB / 1.059 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.3393, allocations: 11.97 kB / 1.059 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002889/0.3396, allocations: 162.7 kB / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.744e-06/0.3396, allocations: 0 / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20): time 0.0006721/0.3403, allocations: 306.7 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.58e-05/0.3404, allocations: 97.03 kB / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.3405, allocations: 170.9 kB / 1.06 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.653e-05/0.3406, allocations: 33.7 kB / 1.06 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.488e-05/0.3406, allocations: 120.4 kB / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.387e-05/0.3407, allocations: 51.34 kB / 1.06 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.348e-05/0.3408, allocations: 62.09 kB / 1.06 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.3409, allocations: 334.8 kB / 1.06 GB, free: 448 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.3411, allocations: 76.5 kB / 1.06 GB, free: 372 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002046/0.3413, allocations: 181.9 kB / 1.06 GB, free: 144 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003723/0.3417, allocations: 259.7 kB / 1.061 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3417, allocations: 11.94 kB / 1.061 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004739/0.3421, allocations: 289.1 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3422, allocations: 8 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3422, allocations: 4.375 kB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.3422, allocations: 8 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.3424, allocations: 39.91 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.3424, allocations: 4 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.3425, allocations: 27.78 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.3425, allocations: 15.98 kB / 1.061 GB, free: 15.44 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.0001551/0.3427, allocations: 159.9 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.672e-05/0.3427, allocations: 23.72 kB / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.012e-05/0.3428, allocations: 25.8 kB / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3428, allocations: 4 kB / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3428, allocations: 0 / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.3428, allocations: 4 kB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008223/0.3436, allocations: 0.5724 MB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.3437, allocations: 0 / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.3438, allocations: 23.92 kB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.3438, allocations: 0 / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.283e-05/0.3438, allocations: 8.047 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.3438, allocations: 11.94 kB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3438, allocations: 0 / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006624/0.3445, allocations: 440.1 kB / 1.062 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.227e-05/0.3446, allocations: 92.89 kB / 1.062 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.509e-05/0.3446, allocations: 15.92 kB / 1.062 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.3448, allocations: 15.98 kB / 1.062 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.695e-05/0.3448, allocations: 11.92 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/0.3448, allocations: 11.98 kB / 1.062 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.481e-05/0.3449, allocations: 119.2 kB / 1.063 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3449, allocations: 0 / 1.063 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004575/0.3454, allocations: 112 kB / 1.063 GB, free: 13.71 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.0008685/0.3463, allocations: 434.7 kB / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004678/0.3468, allocations: 224.3 kB / 1.063 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3468, allocations: 7.875 kB / 1.063 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.347, allocations: 93.48 kB / 1.063 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.3473, allocations: 31.91 kB / 1.063 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006981/0.348, allocations: 411.9 kB / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002705/0.3483, allocations: 0.7281 MB / 1.064 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001136/0.3484, allocations: 45.5 kB / 1.065 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.845e-05/0.3485, allocations: 19.44 kB / 1.065 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3485, allocations: 0 / 1.065 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of Templates: time 0.006716/0.3552, allocations: 3.396 MB / 1.068 GB, free: 8.406 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