Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001545/0.001545, 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.001971/0.00197, allocations: 193.7 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.385/1.385, 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 10.1.1-maint.10.0.x/package.mo): time 2.571/2.571, allocations: 437 MB / 0.71 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 63.91 kB / 0.8687 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5872/0.5891, allocations: 151.6 MB / 1.017 GB, free: 2.73 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002858/0.592, allocations: 1.793 MB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002563/0.5945, allocations: 1.775 MB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.43e-05/0.5946, allocations: 3.938 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001494/0.5948, allocations: 15.86 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001201/0.5949, allocations: 27.84 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.596, allocations: 291.2 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.5963, allocations: 211.5 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.5964, allocations: 41.47 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.5966, allocations: 75.75 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.5967, allocations: 79.61 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.5967, allocations: 12 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004028/0.5971, allocations: 263.6 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.581e-05/0.5972, allocations: 59.81 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.179e-05/0.5973, allocations: 59.66 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004258/0.5978, allocations: 377 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.5978, allocations: 4 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.132e-06/0.5978, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.5978, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 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.0007984/0.5986, allocations: 0.5107 MB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.5986, allocations: 12.03 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.763e-05/0.5987, allocations: 24.67 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.5989, allocations: 229.8 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.775e-05/0.599, allocations: 16.31 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.801e-05/0.599, allocations: 19.92 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003023/0.5993, allocations: 147.2 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.5993, allocations: 0 / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.131e-05/0.5994, allocations: 7.984 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.5994, allocations: 0 / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002182/0.5996, allocations: 83.89 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008492/0.6004, allocations: 436.6 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003079/0.6008, allocations: 150.5 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.6009, allocations: 68.81 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.601, allocations: 4 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002979/0.6013, allocations: 165.3 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.6013, allocations: 4 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20): time 0.0006745/0.602, allocations: 312.3 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.028e-05/0.602, allocations: 81.11 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001611/0.6022, allocations: 170.3 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.825e-05/0.6022, allocations: 45.69 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.829e-05/0.6023, allocations: 108.5 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.574e-05/0.6024, allocations: 59.33 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.066e-05/0.6025, allocations: 61.98 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.6026, allocations: 334.8 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.6028, allocations: 76.52 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.603, allocations: 177.9 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003861/0.6034, allocations: 267.7 kB / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.6034, allocations: 0 / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005114/0.6039, allocations: 297.4 kB / 1.025 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.6039, allocations: 8 kB / 1.025 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.604, allocations: 7.984 kB / 1.025 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.604, allocations: 4 kB / 1.025 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.6041, allocations: 39.92 kB / 1.025 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.6042, allocations: 4 kB / 1.025 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.6043, allocations: 23.83 kB / 1.026 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.6043, allocations: 16 kB / 1.026 GB, free: 9.422 MB / 0.7794 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.0001689/0.6045, allocations: 159.9 kB / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.48e-05/0.6045, allocations: 15.81 kB / 1.026 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.152e-05/0.6046, allocations: 21.86 kB / 1.026 GB, free: 9.227 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.6046, allocations: 7.938 kB / 1.026 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.6046, allocations: 0 / 1.026 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.6046, allocations: 0 / 1.026 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009114/0.6055, allocations: 0.5879 MB / 1.026 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.6055, allocations: 3.984 kB / 1.026 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.6057, allocations: 20.05 kB / 1.026 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.6057, allocations: 4 kB / 1.026 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.6057, allocations: 4 kB / 1.026 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.6057, allocations: 3.938 kB / 1.026 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.6057, allocations: 0 / 1.026 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006882/0.6064, allocations: 449.6 kB / 1.027 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.492e-05/0.6065, allocations: 88.95 kB / 1.027 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.665e-05/0.6065, allocations: 19.92 kB / 1.027 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.6067, allocations: 7.984 kB / 1.027 GB, free: 7.949 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.567e-05/0.6067, allocations: 15.98 kB / 1.027 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.656e-05/0.6067, allocations: 11.98 kB / 1.027 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.385e-05/0.6068, allocations: 121.8 kB / 1.027 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6068, allocations: 4 kB / 1.027 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004858/0.6073, allocations: 111.9 kB / 1.027 GB, free: 7.691 MB / 0.7794 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.0008621/0.6082, allocations: 446.7 kB / 1.028 GB, free: 7.359 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004651/0.6087, allocations: 224.3 kB / 1.028 GB, free: 7.141 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.6087, allocations: 8.062 kB / 1.028 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.6089, allocations: 86.62 kB / 1.028 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.6092, allocations: 23.98 kB / 1.028 GB, free: 7.027 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007047/0.61, allocations: 418.7 kB / 1.028 GB, free: 6.59 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.6102, allocations: 0.7281 MB / 1.029 GB, free: 5.836 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001141/0.6104, allocations: 49.44 kB / 1.029 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.863e-05/0.6104, allocations: 19.42 kB / 1.029 GB, free: 5.766 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.6104, allocations: 0 / 1.029 GB, free: 5.766 MB / 0.7794 GB Notification: Performance of Templates: time 0.007161/0.6176, allocations: 3.39 MB / 1.032 GB, free: 2.383 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & ./Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches