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.005059/0.005059, allocations: 104.7 kB / 15.74 MB, free: 6.492 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.001157/0.001157, allocations: 191.7 kB / 16.68 MB, free: 6.375 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 / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.854/2.854, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 71.81 kB / 1.054 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3444, allocations: 157.4 MB / 1.208 GB, free: 9.688 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003292/0.3478, allocations: 1.731 MB / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002938/0.3507, allocations: 1.814 MB / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.3509, allocations: 7.938 kB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001814/0.3511, allocations: 19.8 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001717/0.3513, allocations: 23.78 kB / 1.211 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001502/0.3528, allocations: 328.3 kB / 1.212 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003379/0.3531, allocations: 223.5 kB / 1.212 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.3533, allocations: 21.56 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.3535, allocations: 87.67 kB / 1.212 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.3536, allocations: 75.67 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.185e-05/0.3537, allocations: 8 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005524/0.3542, allocations: 287.5 kB / 1.212 GB, free: 5.062 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.3543, allocations: 63.81 kB / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.017e-05/0.3544, allocations: 67.66 kB / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0006177/0.3551, allocations: 371 kB / 1.213 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.3551, allocations: 4 kB / 1.213 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.903e-06/0.3551, allocations: 0 / 1.213 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.296e-06/0.3551, allocations: 0 / 1.213 GB, free: 4.566 MB / 0.9669 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.0009316/0.3561, allocations: 0.5262 MB / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.3561, allocations: 8.031 kB / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.838e-05/0.3562, allocations: 20.75 kB / 1.213 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.3564, allocations: 228.7 kB / 1.213 GB, free: 3.699 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.3564, allocations: 12.3 kB / 1.213 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.617e-05/0.3565, allocations: 23.91 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003162/0.3568, allocations: 149.2 kB / 1.214 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.3568, allocations: 4 kB / 1.214 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.3569, allocations: 4 kB / 1.214 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.3569, allocations: 4 kB / 1.214 GB, free: 3.496 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00022/0.3571, allocations: 83.81 kB / 1.214 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008436/0.358, allocations: 424.7 kB / 1.214 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.3583, allocations: 146.5 kB / 1.214 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.3584, allocations: 72.81 kB / 1.214 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.906e-05/0.3585, allocations: 7.922 kB / 1.214 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.3588, allocations: 166.5 kB / 1.214 GB, free: 2.535 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=20): time 2.084e-06/0.3588, allocations: 0 / 1.214 GB, free: 2.535 MB / 0.9669 GB Notification: Performance of matching and sorting (n=20): time 0.0006926/0.3595, allocations: 308.1 kB / 1.215 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.427e-05/0.3595, allocations: 93.09 kB / 1.215 GB, free: 2.121 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.3597, allocations: 172 kB / 1.215 GB, free: 1.945 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.3597, allocations: 37.7 kB / 1.215 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.712e-05/0.3598, allocations: 116.6 kB / 1.215 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.786e-05/0.3599, allocations: 55.34 kB / 1.215 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.338e-05/0.36, allocations: 61.97 kB / 1.215 GB, free: 1.66 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.3601, allocations: 330.8 kB / 1.216 GB, free: 1.328 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.3603, allocations: 76.5 kB / 1.216 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.3605, allocations: 181.9 kB / 1.216 GB, free: 1.031 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003715/0.3609, allocations: 267.7 kB / 1.216 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.3609, allocations: 3.938 kB / 1.216 GB, free: 0.7227 MB / 0.9669 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005073/0.3614, allocations: 297.4 kB / 1.216 GB, free: 436 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3614, allocations: 8 kB / 1.216 GB, free: 428 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.3614, allocations: 4 kB / 1.216 GB, free: 424 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.3615, allocations: 4 kB / 1.216 GB, free: 420 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.3616, allocations: 39.91 kB / 1.216 GB, free: 380 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.3616, allocations: 7.938 kB / 1.216 GB, free: 372 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.3618, allocations: 27.84 kB / 1.216 GB, free: 344 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.3618, allocations: 8 kB / 1.216 GB, free: 336 kB / 0.9669 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.0001721/0.362, allocations: 163.9 kB / 1.217 GB, free: 164 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.702e-05/0.362, allocations: 15.81 kB / 1.217 GB, free: 148 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.745e-05/0.3621, allocations: 17.88 kB / 1.217 GB, free: 132 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3621, allocations: 4 kB / 1.217 GB, free: 128 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.3621, allocations: 3.984 kB / 1.217 GB, free: 124 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.3621, allocations: 0 / 1.217 GB, free: 124 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008879/0.363, allocations: 0.5883 MB / 1.217 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.363, allocations: 0 / 1.217 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.3631, allocations: 15.98 kB / 1.217 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.3631, allocations: 0 / 1.217 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.3631, allocations: 7.984 kB / 1.217 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.3632, allocations: 7.938 kB / 1.217 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3632, allocations: 0 / 1.217 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000718/0.3639, allocations: 439 kB / 1.218 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.621e-05/0.364, allocations: 96.84 kB / 1.218 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.028e-05/0.364, allocations: 11.94 kB / 1.218 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.3642, allocations: 15.98 kB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/0.3642, allocations: 11.97 kB / 1.218 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.686e-05/0.3642, allocations: 12 kB / 1.218 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.315e-05/0.3643, allocations: 123.3 kB / 1.218 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2e-07/0.3644, allocations: 0 / 1.218 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.00053/0.3649, allocations: 111.9 kB / 1.218 GB, free: 14.61 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.0009338/0.3658, allocations: 448.8 kB / 1.219 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004373/0.3663, allocations: 196.4 kB / 1.219 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3663, allocations: 3.938 kB / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001871/0.3665, allocations: 83.89 kB / 1.219 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.3668, allocations: 27.92 kB / 1.219 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000768/0.3676, allocations: 377.5 kB / 1.219 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.3679, allocations: 0.7283 MB / 1.22 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001199/0.3681, allocations: 49.5 kB / 1.22 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.133e-05/0.3681, allocations: 19.44 kB / 1.22 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of SimCode: time 2.11e-07/0.3681, allocations: 0 / 1.22 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of Templates: time 0.007656/0.3758, allocations: 3.459 MB / 1.223 GB, free: 9.297 MB / 0.9825 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