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.001071/0.001071, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001142/0.001142, allocations: 195.1 kB / 16.14 MB, free: 6.711 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.446/1.446, allocations: 222.9 MB / 239.8 MB, free: 4.598 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.417/2.417, allocations: 390.2 MB / 0.6642 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 63.89 kB / 0.8118 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8006/0.8021, allocations: 140.4 MB / 0.9489 GB, free: 9.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.005219/0.8073, allocations: 1.786 MB / 0.9507 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003388/0.8108, allocations: 1.797 MB / 0.9524 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.8109, allocations: 1.156 kB / 0.9524 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002532/0.8112, allocations: 18.42 kB / 0.9524 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.8114, allocations: 30.41 kB / 0.9525 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001383/0.8128, allocations: 268.7 kB / 0.9527 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003494/0.8132, allocations: 207.1 kB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.8133, allocations: 35 kB / 0.9529 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001782/0.8135, allocations: 77.72 kB / 0.953 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.8136, allocations: 72.58 kB / 0.9531 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.211e-05/0.8137, allocations: 7.094 kB / 0.9531 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004916/0.8142, allocations: 254.5 kB / 0.9533 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001355/0.8143, allocations: 60.45 kB / 0.9534 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.8144, allocations: 55.05 kB / 0.9535 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005541/0.815, allocations: 369.3 kB / 0.9538 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.815, allocations: 0 / 0.9538 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.162e-06/0.815, allocations: 4 kB / 0.9538 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.815, allocations: 0 / 0.9538 GB, free: 5.395 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.001107/0.8161, allocations: 0.5194 MB / 0.9543 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.885e-05/0.8162, allocations: 10.03 kB / 0.9543 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.534e-05/0.8163, allocations: 17.5 kB / 0.9543 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.8167, allocations: 231.8 kB / 0.9546 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.8167, allocations: 13.97 kB / 0.9546 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-05/0.8168, allocations: 17.64 kB / 0.9546 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004298/0.8172, allocations: 149.6 kB / 0.9547 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.8172, allocations: 0 / 0.9547 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.868e-05/0.8173, allocations: 5.219 kB / 0.9547 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.8173, allocations: 2.531 kB / 0.9547 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002535/0.8175, allocations: 83.38 kB / 0.9548 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.8186, allocations: 428.4 kB / 0.9552 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004146/0.819, allocations: 147.7 kB / 0.9554 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000189/0.8192, allocations: 80.25 kB / 0.9554 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.828e-05/0.8193, allocations: 3.406 kB / 0.9554 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003826/0.8197, allocations: 163.9 kB / 0.9556 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 1.322e-06/0.8197, allocations: 0 / 0.9556 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20): time 0.000814/0.8205, allocations: 315.9 kB / 0.9559 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.384e-05/0.8206, allocations: 91.94 kB / 0.956 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.8208, allocations: 165.9 kB / 0.9562 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.8208, allocations: 39.75 kB / 0.9562 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.941e-05/0.8209, allocations: 111 kB / 0.9563 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.622e-05/0.821, allocations: 53.27 kB / 0.9563 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.8211, allocations: 56.8 kB / 0.9564 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.8213, allocations: 339.1 kB / 0.9567 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001799/0.8214, allocations: 79 kB / 0.9568 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/0.8217, allocations: 179.4 kB / 0.957 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004387/0.8222, allocations: 269 kB / 0.9572 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.8222, allocations: 5.375 kB / 0.9572 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005712/0.8227, allocations: 296.6 kB / 0.9575 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.985e-05/0.8228, allocations: 5.625 kB / 0.9575 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.8228, allocations: 4.375 kB / 0.9575 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.876e-05/0.8228, allocations: 8.625 kB / 0.9575 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001647/0.823, allocations: 36.61 kB / 0.9576 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.067e-05/0.823, allocations: 8.562 kB / 0.9576 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.8232, allocations: 25.14 kB / 0.9576 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.327e-05/0.8232, allocations: 12.84 kB / 0.9576 GB, free: 2.289 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,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.000206/0.8234, allocations: 157.1 kB / 0.9578 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.699e-05/0.8235, allocations: 28.52 kB / 0.9578 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.795e-05/0.8235, allocations: 19 kB / 0.9578 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.8235, allocations: 1.375 kB / 0.9578 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.8236, allocations: 1.594 kB / 0.9578 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.8236, allocations: 3.984 kB / 0.9578 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009846/0.8246, allocations: 0.5874 MB / 0.9584 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.8246, allocations: 0 / 0.9584 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.8247, allocations: 19.64 kB / 0.9584 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.8247, allocations: 1.125 kB / 0.9584 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.791e-05/0.8247, allocations: 3.281 kB / 0.9584 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.045e-06/0.8247, allocations: 10.11 kB / 0.9584 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.8247, allocations: 0 / 0.9584 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009086/0.8257, allocations: 443.2 kB / 0.9588 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.495e-05/0.8257, allocations: 86.52 kB / 0.9589 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/0.8258, allocations: 16.05 kB / 0.9589 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.8259, allocations: 14.86 kB / 0.959 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.221e-05/0.826, allocations: 10.86 kB / 0.959 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.232e-05/0.8261, allocations: 14.89 kB / 0.959 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001255/0.8262, allocations: 121.1 kB / 0.9591 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8262, allocations: 1.031 kB / 0.9591 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0006176/0.8268, allocations: 117.7 kB / 0.9592 GB, free: 1.086 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 (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.001318/0.8282, allocations: 431.8 kB / 0.9596 GB, free: 0.8711 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000551/0.8287, allocations: 201 kB / 0.9598 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.8287, allocations: 0 / 0.9598 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002148/0.8289, allocations: 90.81 kB / 0.9599 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/0.8293, allocations: 29.11 kB / 0.9599 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008002/0.8301, allocations: 418.8 kB / 0.9603 GB, free: 432 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.8305, allocations: 0.7247 MB / 0.961 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001216/0.8306, allocations: 44.72 kB / 0.9611 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.668e-05/0.8307, allocations: 21.8 kB / 0.9611 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.8307, allocations: 0 / 0.9611 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of Templates: time 0.008444/0.8391, allocations: 3.326 MB / 0.9643 GB, free: 13.98 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","/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