Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0009459/0.0009466, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.00101/0.001011, allocations: 172.7 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.423/1.423, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.761/2.761, allocations: 437.7 MB / 0.7117 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0006037/0.000604, allocations: 8 kB / 0.8722 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7861/0.7867, allocations: 153.8 MB / 1.022 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.00231/0.7891, allocations: 1.423 MB / 1.024 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002677/0.7918, allocations: 1.694 MB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.7919, allocations: 0 / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001798/0.7921, allocations: 19.86 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001915/0.7923, allocations: 23.78 kB / 1.025 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.7934, allocations: 263.4 kB / 1.026 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003331/0.7938, allocations: 183.5 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.7939, allocations: 21.55 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/0.7941, allocations: 75.67 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/0.7943, allocations: 71.69 kB / 1.026 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/0.7943, allocations: 4 kB / 1.026 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005234/0.7948, allocations: 235.6 kB / 1.026 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.7949, allocations: 43.88 kB / 1.026 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.084e-05/0.795, allocations: 53.62 kB / 1.026 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004312/0.7955, allocations: 253.5 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.7955, allocations: 0 / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.676e-06/0.7955, allocations: 4 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.035e-06/0.7955, allocations: 3.938 kB / 1.027 GB, free: 11.65 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.0008802/0.7964, allocations: 0.4949 MB / 1.027 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.7964, allocations: 12.03 kB / 1.027 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.976e-05/0.7965, allocations: 15.81 kB / 1.027 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.7968, allocations: 228.6 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.7968, allocations: 16.14 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.138e-05/0.7969, allocations: 12 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003451/0.7972, allocations: 157.7 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.7972, allocations: 0 / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.7973, allocations: 7.984 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.7973, allocations: 0 / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.7975, allocations: 84.52 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008825/0.7984, allocations: 440.8 kB / 1.028 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.7987, allocations: 158.4 kB / 1.028 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.7988, allocations: 72.81 kB / 1.028 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.7989, allocations: 3.984 kB / 1.028 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003303/0.7992, allocations: 165 kB / 1.028 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.453e-06/0.7992, allocations: 4 kB / 1.028 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20): time 0.0006978/0.7999, allocations: 327.3 kB / 1.029 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.8, allocations: 85.11 kB / 1.029 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.8002, allocations: 166.3 kB / 1.029 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.8002, allocations: 41.7 kB / 1.029 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.211e-05/0.8003, allocations: 104.6 kB / 1.029 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.643e-05/0.8004, allocations: 71.3 kB / 1.029 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.162e-05/0.8004, allocations: 4 kB / 1.029 GB, free: 8.805 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.8005, allocations: 326.8 kB / 1.03 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.8007, allocations: 84.44 kB / 1.03 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002348/0.801, allocations: 177.9 kB / 1.03 GB, free: 8.172 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002116/0.8012, allocations: 111.9 kB / 1.03 GB, free: 8.062 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.8012, allocations: 0 / 1.03 GB, free: 8.062 MB / 0.7794 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000509/0.8017, allocations: 312.8 kB / 1.03 GB, free: 7.75 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.8017, allocations: 8 kB / 1.03 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.537e-06/0.8018, allocations: 4.375 kB / 1.03 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/0.8018, allocations: 11.95 kB / 1.03 GB, free: 7.727 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.8019, allocations: 43.92 kB / 1.03 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.581e-05/0.802, allocations: 7.938 kB / 1.03 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.8021, allocations: 27.83 kB / 1.03 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.8021, allocations: 12 kB / 1.03 GB, free: 7.637 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.0001644/0.8023, allocations: 160 kB / 1.03 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.003e-05/0.8023, allocations: 15.81 kB / 1.03 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.486e-05/0.8024, allocations: 21.86 kB / 1.03 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.8024, allocations: 7.953 kB / 1.03 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.8024, allocations: 0 / 1.03 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.8024, allocations: 0 / 1.03 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000884/0.8033, allocations: 0.5932 MB / 1.031 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.8033, allocations: 0 / 1.031 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.8034, allocations: 20.05 kB / 1.031 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.8034, allocations: 4 kB / 1.031 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/0.8035, allocations: 11.95 kB / 1.031 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.8035, allocations: 0 / 1.031 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.8035, allocations: 0 / 1.031 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006731/0.8042, allocations: 449.9 kB / 1.032 GB, free: 6.293 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.367e-05/0.8043, allocations: 97 kB / 1.032 GB, free: 6.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.336e-05/0.8043, allocations: 12 kB / 1.032 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.8044, allocations: 19.94 kB / 1.032 GB, free: 6.148 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.547e-05/0.8045, allocations: 15.97 kB / 1.032 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.8046, allocations: 8 kB / 1.032 GB, free: 6.125 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.347e-05/0.8047, allocations: 117.8 kB / 1.032 GB, free: 6.012 MB / 0.7794 GB Notification: Performance of sort global known variables: time 5.41e-07/0.8047, allocations: 0 / 1.032 GB, free: 6.012 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005048/0.8052, allocations: 119.8 kB / 1.032 GB, free: 5.895 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.001131/0.8063, allocations: 454.6 kB / 1.032 GB, free: 5.551 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00048/0.8068, allocations: 202.2 kB / 1.033 GB, free: 5.355 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.8068, allocations: 4 kB / 1.033 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001871/0.807, allocations: 91.84 kB / 1.033 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.8074, allocations: 27.97 kB / 1.033 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007475/0.8081, allocations: 407.6 kB / 1.033 GB, free: 4.809 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.8084, allocations: 0.7322 MB / 1.034 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001238/0.8086, allocations: 45.5 kB / 1.034 GB, free: 4 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.825e-05/0.8086, allocations: 19.44 kB / 1.034 GB, free: 3.98 MB / 0.7794 GB Notification: Performance of SimCode: time 4.01e-07/0.8086, allocations: 0 / 1.034 GB, free: 3.98 MB / 0.7794 GB Notification: Performance of Templates: time 0.007385/0.816, allocations: 3.237 MB / 1.037 GB, free: 0.7578 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & ./Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches