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: 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_9_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_9_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.001039/0.001039, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.001165/0.001165, allocations: 177.3 kB / 15.94 MB, free: 228 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.466/1.466, allocations: 223.2 MB / 239.9 MB, free: 5.293 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.488/2.488, allocations: 390.3 MB / 0.6653 GB, free: 2.84 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003422/0.0003423, allocations: 8 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8919/0.8923, allocations: 142.3 MB / 0.9535 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002073/0.8944, allocations: 1.403 MB / 0.9549 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002465/0.8969, allocations: 1.702 MB / 0.9565 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.506e-05/0.897, allocations: 5.438 kB / 0.9565 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001547/0.8972, allocations: 17.36 kB / 0.9566 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.8974, allocations: 24.52 kB / 0.9566 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008432/0.8982, allocations: 257.8 kB / 0.9568 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002381/0.8985, allocations: 137.1 kB / 0.957 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.8986, allocations: 22.33 kB / 0.957 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.8987, allocations: 73.97 kB / 0.957 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.8989, allocations: 70.11 kB / 0.9571 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.415e-05/0.8989, allocations: 5.656 kB / 0.9571 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004176/0.8993, allocations: 198.9 kB / 0.9573 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.8994, allocations: 49.09 kB / 0.9574 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.261e-05/0.8995, allocations: 52.94 kB / 0.9574 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003501/0.8999, allocations: 265 kB / 0.9577 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.8999, allocations: 0 / 0.9577 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.384e-06/0.8999, allocations: 0 / 0.9577 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.14e-05/0.8999, allocations: 0 / 0.9577 GB, free: 4.961 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.0007724/0.9007, allocations: 0.4983 MB / 0.9581 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.9007, allocations: 10.16 kB / 0.9582 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.798e-05/0.9008, allocations: 16.16 kB / 0.9582 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.901, allocations: 226.8 kB / 0.9584 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.901, allocations: 10.34 kB / 0.9584 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.9011, allocations: 13.41 kB / 0.9584 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000311/0.9014, allocations: 158.6 kB / 0.9586 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.9014, allocations: 0 / 0.9586 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.9015, allocations: 1.781 kB / 0.9586 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.9015, allocations: 5.797 kB / 0.9586 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.9017, allocations: 94.78 kB / 0.9587 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008444/0.9025, allocations: 439.4 kB / 0.9591 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002852/0.9028, allocations: 154.2 kB / 0.9592 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.114e-05/0.9029, allocations: 6.703 kB / 0.9592 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003239/0.9032, allocations: 171.6 kB / 0.9594 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 1.283e-06/0.9032, allocations: 0 / 0.9594 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20): time 0.0006828/0.9039, allocations: 323.4 kB / 0.9597 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.904, allocations: 84.8 kB / 0.9598 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.9041, allocations: 163.1 kB / 0.9599 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.9041, allocations: 40.67 kB / 0.96 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.212e-05/0.9042, allocations: 110.5 kB / 0.9601 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.855e-05/0.9043, allocations: 64.11 kB / 0.9601 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.113e-05/0.9043, allocations: 6.219 kB / 0.9602 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.111e-05/0.9044, allocations: 335.4 kB / 0.9605 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.9045, allocations: 80.97 kB / 0.9605 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002111/0.9048, allocations: 177.7 kB / 0.9607 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002009/0.905, allocations: 109.1 kB / 0.9608 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.905, allocations: 0.9062 kB / 0.9608 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005037/0.9055, allocations: 306.2 kB / 0.9611 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.9055, allocations: 6.906 kB / 0.9611 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.9055, allocations: 3.062 kB / 0.9611 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.9056, allocations: 5.594 kB / 0.9611 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001613/0.9057, allocations: 46.98 kB / 0.9612 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.9058, allocations: 8.547 kB / 0.9612 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.9059, allocations: 26.42 kB / 0.9612 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.9059, allocations: 13.66 kB / 0.9612 GB, free: 2.098 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,$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.0001546/0.9061, allocations: 157.1 kB / 0.9614 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.308e-05/0.9061, allocations: 20.81 kB / 0.9614 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.203e-05/0.9062, allocations: 21.98 kB / 0.9614 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.9062, allocations: 1.969 kB / 0.9614 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.9062, allocations: 1.031 kB / 0.9614 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.9062, allocations: 4.844 kB / 0.9614 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008419/0.907, allocations: 0.5905 MB / 0.962 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.9071, allocations: 11.98 kB / 0.962 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.969e-05/0.9072, allocations: 21.14 kB / 0.962 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.9072, allocations: 1.344 kB / 0.962 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.9072, allocations: 7.75 kB / 0.962 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.726e-06/0.9072, allocations: 1.25 kB / 0.962 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.9072, allocations: 1.5 kB / 0.962 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00068/0.9079, allocations: 459.3 kB / 0.9625 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.956e-05/0.908, allocations: 94.81 kB / 0.9626 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.866e-05/0.908, allocations: 16.25 kB / 0.9626 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.9081, allocations: 18.55 kB / 0.9626 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.57e-05/0.9082, allocations: 17.98 kB / 0.9626 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.929e-05/0.9082, allocations: 11.72 kB / 0.9626 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.56e-05/0.9083, allocations: 124 kB / 0.9627 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9083, allocations: 0 / 0.9627 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0005118/0.9088, allocations: 106.2 kB / 0.9628 GB, free: 0.875 MB / 0.7169 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.000993/0.9098, allocations: 453.4 kB / 0.9633 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004838/0.9103, allocations: 206.1 kB / 0.9635 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.9104, allocations: 4.125 kB / 0.9635 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001953/0.9106, allocations: 86.89 kB / 0.9636 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.9108, allocations: 24.27 kB / 0.9636 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007501/0.9116, allocations: 412.8 kB / 0.964 GB, free: 212 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.9119, allocations: 0.7418 MB / 0.9647 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001258/0.9121, allocations: 44.62 kB / 0.9647 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.703e-05/0.9121, allocations: 21.91 kB / 0.9648 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.9121, allocations: 0 / 0.9648 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of Templates: time 0.009712/0.9218, allocations: 3.212 MB / 0.9679 GB, free: 13.81 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile (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 & ./Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches