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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.006397/0.006396, allocations: 104.4 kB / 15.73 MB, free: 6.035 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.001369/0.00137, allocations: 196 kB / 16.67 MB, free: 5.969 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.373/2.373, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 58.84 kB / 0.9508 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3028, allocations: 140.4 MB / 1.088 GB, free: 1.492 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.00286/0.3057, allocations: 1.736 MB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002536/0.3083, allocations: 1.806 MB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.02e-05/0.3084, allocations: 3.938 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001659/0.3086, allocations: 23.8 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.3087, allocations: 27.78 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.31, allocations: 316.3 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002764/0.3103, allocations: 215.5 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.3104, allocations: 33.52 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.3105, allocations: 83.69 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.3106, allocations: 79.66 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.857e-05/0.3107, allocations: 12 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004267/0.3111, allocations: 283.5 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.858e-05/0.3112, allocations: 59.81 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.929e-05/0.3113, allocations: 63.66 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004445/0.3117, allocations: 379 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3118, allocations: 0 / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3118, allocations: 0 / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.3118, allocations: 0 / 1.093 GB, free: 12.38 MB / 0.8575 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.0008196/0.3126, allocations: 0.5204 MB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.3126, allocations: 12.03 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.13e-05/0.3127, allocations: 24.73 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.313, allocations: 220.7 kB / 1.094 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.313, allocations: 16.31 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.032e-05/0.313, allocations: 12 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.3133, allocations: 148.4 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.3134, allocations: 7.938 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.589e-05/0.3134, allocations: 3.984 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.3134, allocations: 4 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.3136, allocations: 87.83 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008133/0.3144, allocations: 424.7 kB / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/0.3147, allocations: 146.5 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.3149, allocations: 76.81 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.3149, allocations: 8.25 kB / 1.095 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002672/0.3152, allocations: 156.9 kB / 1.095 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.3152, allocations: 4 kB / 1.095 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20): time 0.0006211/0.3158, allocations: 314.7 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.3159, allocations: 85.11 kB / 1.095 GB, free: 9.941 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.316, allocations: 179.8 kB / 1.095 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.3161, allocations: 37.7 kB / 1.095 GB, free: 9.715 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.105e-05/0.3161, allocations: 116.4 kB / 1.095 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.354e-05/0.3162, allocations: 55.33 kB / 1.095 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.491e-05/0.3163, allocations: 57.98 kB / 1.095 GB, free: 9.477 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3164, allocations: 338.8 kB / 1.096 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.3166, allocations: 76.52 kB / 1.096 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.3168, allocations: 184.8 kB / 1.096 GB, free: 8.84 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003686/0.3171, allocations: 259.8 kB / 1.096 GB, free: 8.543 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.3171, allocations: 4 kB / 1.096 GB, free: 8.539 MB / 0.8575 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004504/0.3176, allocations: 289.1 kB / 1.097 GB, free: 8.25 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.3176, allocations: 6.188 kB / 1.097 GB, free: 8.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3176, allocations: 4.375 kB / 1.097 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.3177, allocations: 11.98 kB / 1.097 GB, free: 8.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.3178, allocations: 40.02 kB / 1.097 GB, free: 8.191 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.3178, allocations: 11.88 kB / 1.097 GB, free: 8.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.318, allocations: 27.73 kB / 1.097 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.318, allocations: 16 kB / 1.097 GB, free: 8.137 MB / 0.8575 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.0001419/0.3181, allocations: 155.9 kB / 1.097 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.299e-05/0.3182, allocations: 23.8 kB / 1.097 GB, free: 7.949 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.626e-05/0.3182, allocations: 21.86 kB / 1.097 GB, free: 7.93 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3182, allocations: 4 kB / 1.097 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3182, allocations: 0 / 1.097 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.3183, allocations: 0 / 1.097 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007767/0.319, allocations: 0.5901 MB / 1.097 GB, free: 7.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.319, allocations: 64 / 1.097 GB, free: 7.281 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.925e-05/0.3191, allocations: 20 kB / 1.097 GB, free: 7.262 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3192, allocations: 0 / 1.097 GB, free: 7.262 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.3192, allocations: 7.984 kB / 1.097 GB, free: 7.254 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3192, allocations: 3.938 kB / 1.097 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3192, allocations: 0 / 1.097 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006158/0.3198, allocations: 443.3 kB / 1.098 GB, free: 6.801 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.557e-05/0.3199, allocations: 92.89 kB / 1.098 GB, free: 6.691 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.315e-05/0.3199, allocations: 19.92 kB / 1.098 GB, free: 6.672 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.3201, allocations: 11.98 kB / 1.098 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.884e-05/0.3201, allocations: 11.98 kB / 1.098 GB, free: 6.648 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.3202, allocations: 11.98 kB / 1.098 GB, free: 6.637 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.286e-05/0.3202, allocations: 119.2 kB / 1.098 GB, free: 6.52 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3203, allocations: 3.938 kB / 1.098 GB, free: 6.516 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004762/0.3207, allocations: 108 kB / 1.098 GB, free: 6.41 MB / 0.8575 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.0008912/0.3216, allocations: 451 kB / 1.099 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004139/0.3221, allocations: 206.1 kB / 1.099 GB, free: 5.871 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3221, allocations: 4.688 kB / 1.099 GB, free: 5.867 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001663/0.3222, allocations: 87.95 kB / 1.099 GB, free: 5.781 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.3226, allocations: 31.91 kB / 1.099 GB, free: 5.75 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006571/0.3232, allocations: 358.7 kB / 1.099 GB, free: 5.371 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.3235, allocations: 0.7281 MB / 1.1 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000105/0.3236, allocations: 45.5 kB / 1.1 GB, free: 4.57 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.826e-05/0.3237, allocations: 23.44 kB / 1.1 GB, free: 4.547 MB / 0.8575 GB Notification: Performance of SimCode: time 3.81e-07/0.3237, allocations: 0 / 1.1 GB, free: 4.547 MB / 0.8575 GB Notification: Performance of Templates: time 0.007173/0.3309, allocations: 3.515 MB / 1.104 GB, free: 1.043 MB / 0.8575 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches