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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009263/0.0009265, allocations: 101.4 kB / 15.06 MB, free: 1.094 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.001021/0.001021, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.801/2.801, allocations: 436.5 MB / 0.7104 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000371/0.000371, allocations: 8 kB / 0.8707 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9337/0.934, allocations: 153.7 MB / 1.021 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002079/0.9362, allocations: 1.419 MB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002443/0.9387, allocations: 1.701 MB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.9388, allocations: 3.938 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001754/0.939, allocations: 19.86 kB / 1.024 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.9391, allocations: 23.91 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008256/0.94, allocations: 255.3 kB / 1.024 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002253/0.9402, allocations: 139.8 kB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.9403, allocations: 25.53 kB / 1.024 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.9405, allocations: 71.75 kB / 1.024 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001313/0.9406, allocations: 71.61 kB / 1.024 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/0.9406, allocations: 4 kB / 1.024 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004433/0.9411, allocations: 195.7 kB / 1.025 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.9412, allocations: 55.8 kB / 1.025 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.73e-05/0.9413, allocations: 45.64 kB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003784/0.9417, allocations: 261.5 kB / 1.025 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.9417, allocations: 0 / 1.025 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.216e-06/0.9417, allocations: 0 / 1.025 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.9417, allocations: 0 / 1.025 GB, free: 12.84 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.0009585/0.9427, allocations: 0.4989 MB / 1.025 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 8.193e-05/0.9428, allocations: 15.98 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.502e-05/0.9428, allocations: 15.81 kB / 1.025 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003076/0.9432, allocations: 219.5 kB / 1.026 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.9432, allocations: 24.12 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.096e-05/0.9433, allocations: 15.91 kB / 1.026 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003369/0.9436, allocations: 154.1 kB / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.9436, allocations: 0 / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.9436, allocations: 0 / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.9437, allocations: 4 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002187/0.9439, allocations: 87.31 kB / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009555/0.9448, allocations: 448.8 kB / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002861/0.9451, allocations: 146.5 kB / 1.027 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.9452, allocations: 7.984 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003623/0.9456, allocations: 169 kB / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.803e-06/0.9456, allocations: 3.938 kB / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20): time 0.0006873/0.9463, allocations: 319.4 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.059e-05/0.9463, allocations: 93.09 kB / 1.027 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.9465, allocations: 170.8 kB / 1.027 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.9465, allocations: 33.7 kB / 1.027 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.993e-05/0.9466, allocations: 112.6 kB / 1.027 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.46e-05/0.9467, allocations: 55.28 kB / 1.027 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.031e-05/0.9467, allocations: 4 kB / 1.027 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.9468, allocations: 342.8 kB / 1.028 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.947, allocations: 80.5 kB / 1.028 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.9472, allocations: 185.1 kB / 1.028 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/0.9474, allocations: 111.9 kB / 1.028 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.9474, allocations: 0 / 1.028 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004511/0.9479, allocations: 308.9 kB / 1.028 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.9479, allocations: 4 kB / 1.028 GB, free: 9 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.9479, allocations: 7.984 kB / 1.028 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.9479, allocations: 7.953 kB / 1.028 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.9481, allocations: 48.3 kB / 1.029 GB, free: 8.938 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.9481, allocations: 4 kB / 1.029 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.9482, allocations: 27.83 kB / 1.029 GB, free: 8.906 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.9483, allocations: 8 kB / 1.029 GB, free: 8.898 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,$PRE.kalFil.firstTrigger,kalFil.firstTrigger,$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRIntPre[1],kalFil.uRIntPre[1],$PRE.ran.firstTrigger,ran.firstTrigger,$PRE.ran.uRIntPre[1],ran.uRIntPre[1],$whenCondition1,ran.sampleTrigger,$PRE.ran.uRWri[1],ran.uRWri[1],$PRE.ran.uRWri_temp[1],ran.uRWri_temp[1],$whenCondition2,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],$PRE.kalFil.uRWri_temp[1],kalFil.uRWri_temp[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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000147/0.9484, allocations: 152 kB / 1.029 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.003e-05/0.9485, allocations: 23.81 kB / 1.029 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.163e-05/0.9485, allocations: 25.84 kB / 1.029 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.9485, allocations: 0 / 1.029 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.9485, allocations: 7.953 kB / 1.029 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.9485, allocations: 0 / 1.029 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008533/0.9494, allocations: 0.5893 MB / 1.029 GB, free: 8.043 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.9494, allocations: 0 / 1.029 GB, free: 8.043 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.9495, allocations: 15.94 kB / 1.029 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.9495, allocations: 8.078 kB / 1.029 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.9496, allocations: 11.94 kB / 1.029 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.9496, allocations: 3.953 kB / 1.029 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.9496, allocations: 0 / 1.029 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007135/0.9503, allocations: 455.4 kB / 1.03 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.055e-05/0.9504, allocations: 92.95 kB / 1.03 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.434e-05/0.9504, allocations: 16 kB / 1.03 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.9506, allocations: 19.98 kB / 1.03 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.88e-05/0.9507, allocations: 11.98 kB / 1.03 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.183e-05/0.9507, allocations: 15.92 kB / 1.03 GB, free: 7.363 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001249/0.9508, allocations: 121.2 kB / 1.03 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9508, allocations: 0 / 1.03 GB, free: 7.246 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005086/0.9513, allocations: 115.8 kB / 1.03 GB, free: 7.133 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009389/0.9523, allocations: 444.2 kB / 1.031 GB, free: 6.801 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004379/0.9527, allocations: 204.2 kB / 1.031 GB, free: 6.602 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 7.515e-06/0.9528, allocations: 8.188 kB / 1.031 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.9529, allocations: 89.59 kB / 1.031 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002522/0.9532, allocations: 24.11 kB / 1.031 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007114/0.9539, allocations: 399.6 kB / 1.031 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.9542, allocations: 0.7362 MB / 1.032 GB, free: 5.305 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001261/0.9544, allocations: 53.38 kB / 1.032 GB, free: 5.254 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.644e-05/0.9544, allocations: 19.44 kB / 1.032 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of SimCode: time 2.91e-07/0.9544, allocations: 4 kB / 1.032 GB, free: 5.23 MB / 0.7794 GB Notification: Performance of Templates: time 0.006899/0.9613, allocations: 3.213 MB / 1.035 GB, free: 2.023 MB / 0.7794 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","../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches