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.001185/0.001185, allocations: 111.3 kB / 15.24 MB, free: 0.6484 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.001273/0.001273, allocations: 203.1 kB / 16.15 MB, free: 6.598 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.407/1.407, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.741/2.741, allocations: 461.9 MB / 0.7342 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 63.89 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3436, allocations: 157.4 MB / 1.052 GB, free: 8.922 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003224/0.3468, allocations: 1.795 MB / 1.054 GB, free: 7.113 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002803/0.3497, allocations: 1.798 MB / 1.056 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.047e-05/0.3498, allocations: 7.875 kB / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001727/0.35, allocations: 23.86 kB / 1.056 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.3501, allocations: 15.84 kB / 1.056 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.3513, allocations: 277.1 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002657/0.3516, allocations: 203.4 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.3517, allocations: 29.55 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.3518, allocations: 75.69 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.352, allocations: 75.67 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.705e-05/0.352, allocations: 4 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004139/0.3524, allocations: 255.6 kB / 1.057 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.3526, allocations: 59.8 kB / 1.057 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.504e-05/0.3527, allocations: 55.67 kB / 1.057 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004911/0.3532, allocations: 375.3 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3532, allocations: 0 / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.01e-07/0.3532, allocations: 0 / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.3532, allocations: 0 / 1.057 GB, free: 3.883 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.0008521/0.354, allocations: 0.5185 MB / 1.058 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.3541, allocations: 12.03 kB / 1.058 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.424e-05/0.3542, allocations: 16.75 kB / 1.058 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.3544, allocations: 229.3 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.3544, allocations: 16.31 kB / 1.058 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.007e-05/0.3545, allocations: 15.98 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.3548, allocations: 148.8 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.3548, allocations: 3.984 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.3548, allocations: 4 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.3548, allocations: 3.984 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002131/0.3551, allocations: 83.88 kB / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008567/0.3559, allocations: 424.7 kB / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003478/0.3563, allocations: 150.5 kB / 1.059 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.3564, allocations: 73.91 kB / 1.059 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.3565, allocations: 8 kB / 1.059 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003099/0.3568, allocations: 162.4 kB / 1.059 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.573e-06/0.3568, allocations: 4 kB / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20): time 0.0007267/0.3575, allocations: 311.2 kB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.3576, allocations: 93.09 kB / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.3578, allocations: 166.9 kB / 1.059 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.193e-05/0.3578, allocations: 37.69 kB / 1.059 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.411e-05/0.3579, allocations: 120.4 kB / 1.059 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.575e-05/0.3579, allocations: 51.34 kB / 1.06 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.442e-05/0.358, allocations: 57.98 kB / 1.06 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.3582, allocations: 338.7 kB / 1.06 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.3584, allocations: 84.5 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.3586, allocations: 181.8 kB / 1.06 GB, free: 352 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003733/0.359, allocations: 259.8 kB / 1.06 GB, free: 48 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.359, allocations: 0 / 1.06 GB, free: 48 kB / 0.8106 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005003/0.3595, allocations: 297.1 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3595, allocations: 4 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.3595, allocations: 4.062 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.3595, allocations: 8 kB / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.3597, allocations: 44.3 kB / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.3597, allocations: 4 kB / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.3598, allocations: 23.83 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.3599, allocations: 12 kB / 1.061 GB, free: 15.65 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.0001643/0.36, allocations: 167.8 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.995e-05/0.3601, allocations: 23.7 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.116e-05/0.3602, allocations: 21.88 kB / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.3602, allocations: 4 kB / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3602, allocations: 0 / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3602, allocations: 0 / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.3612, allocations: 0.5841 MB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3612, allocations: 0 / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.3613, allocations: 15.98 kB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3613, allocations: 4 kB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.256e-05/0.3614, allocations: 4 kB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.3614, allocations: 3.938 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/0.3614, allocations: 7.969 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006664/0.3621, allocations: 433.6 kB / 1.062 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-05/0.3621, allocations: 100.9 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.314e-05/0.3622, allocations: 19.92 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.3623, allocations: 11.98 kB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.73e-05/0.3624, allocations: 11.98 kB / 1.062 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.3624, allocations: 15.97 kB / 1.062 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.922e-05/0.3625, allocations: 119.2 kB / 1.062 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3625, allocations: 0 / 1.062 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004598/0.363, allocations: 108 kB / 1.062 GB, free: 13.91 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.0008614/0.3639, allocations: 433.5 kB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004289/0.3643, allocations: 200.7 kB / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3643, allocations: 0 / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.3645, allocations: 88.62 kB / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/0.3649, allocations: 42.3 kB / 1.063 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007411/0.3656, allocations: 409.6 kB / 1.064 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.3659, allocations: 0.7245 MB / 1.064 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001133/0.3661, allocations: 49.5 kB / 1.064 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.914e-05/0.3661, allocations: 19.42 kB / 1.064 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3661, allocations: 0 / 1.064 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of Templates: time 0.007072/0.3732, allocations: 3.315 MB / 1.068 GB, free: 8.723 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