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.001114/0.001115, allocations: 106.2 kB / 16.35 MB, free: 5.824 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: 189.4 kB / 17.29 MB, free: 5.48 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.49/2.49, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 58.59 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2699, allocations: 153 MB / 1.027 GB, free: 2.039 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003421/0.2734, allocations: 1.748 MB / 1.028 GB, free: 288 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002661/0.276, allocations: 1.81 MB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.824e-05/0.2762, allocations: 7.938 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.2763, allocations: 19.8 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.2765, allocations: 27.72 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001282/0.2778, allocations: 323.5 kB / 1.031 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002812/0.2781, allocations: 219.4 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.2782, allocations: 29.56 kB / 1.031 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.2783, allocations: 87.66 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001352/0.2785, allocations: 75.67 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/0.2785, allocations: 8 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004739/0.279, allocations: 279.6 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.2791, allocations: 59.81 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.652e-05/0.2792, allocations: 71.64 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005296/0.2798, allocations: 367 kB / 1.032 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2798, allocations: 0 / 1.032 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.392e-06/0.2798, allocations: 0 / 1.032 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.2798, allocations: 4 kB / 1.032 GB, free: 12.92 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.0008482/0.2806, allocations: 0.53 MB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.2807, allocations: 8.031 kB / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.699e-05/0.2808, allocations: 20.73 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002581/0.281, allocations: 221.4 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.2811, allocations: 20.3 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.007e-05/0.2811, allocations: 12 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002991/0.2814, allocations: 151.8 kB / 1.033 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.2814, allocations: 0 / 1.033 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.2814, allocations: 4 kB / 1.033 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.2815, allocations: 4 kB / 1.033 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002043/0.2817, allocations: 79.88 kB / 1.033 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008451/0.2825, allocations: 420.8 kB / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.2828, allocations: 170.4 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.283, allocations: 72.81 kB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.283, allocations: 0 / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002765/0.2833, allocations: 169.2 kB / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.323e-06/0.2833, allocations: 0 / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20): time 0.0006606/0.284, allocations: 310.8 kB / 1.034 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.284, allocations: 93.22 kB / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.2842, allocations: 163.4 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.2842, allocations: 45.62 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.2843, allocations: 116.4 kB / 1.034 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.599e-05/0.2844, allocations: 63.28 kB / 1.034 GB, free: 10.06 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.438e-05/0.2844, allocations: 49.98 kB / 1.034 GB, free: 10 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.2846, allocations: 338.8 kB / 1.035 GB, free: 9.664 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.2847, allocations: 80.5 kB / 1.035 GB, free: 9.586 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.2849, allocations: 178.5 kB / 1.035 GB, free: 9.367 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003623/0.2853, allocations: 263.8 kB / 1.035 GB, free: 9.066 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.2853, allocations: 0 / 1.035 GB, free: 9.066 MB / 0.8106 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004776/0.2858, allocations: 293.1 kB / 1.035 GB, free: 8.773 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.2858, allocations: 8 kB / 1.035 GB, free: 8.766 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2858, allocations: 4 kB / 1.035 GB, free: 8.762 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.2859, allocations: 4 kB / 1.035 GB, free: 8.758 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.286, allocations: 44.23 kB / 1.035 GB, free: 8.715 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.286, allocations: 11.98 kB / 1.035 GB, free: 8.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.2862, allocations: 23.75 kB / 1.035 GB, free: 8.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.2862, allocations: 12 kB / 1.036 GB, free: 8.668 MB / 0.8106 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.0001452/0.2863, allocations: 163.8 kB / 1.036 GB, free: 8.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.874e-05/0.2864, allocations: 19.89 kB / 1.036 GB, free: 8.48 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.586e-05/0.2864, allocations: 21.81 kB / 1.036 GB, free: 8.461 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2864, allocations: 8 kB / 1.036 GB, free: 8.453 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2865, allocations: 0 / 1.036 GB, free: 8.453 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.2865, allocations: 3.984 kB / 1.036 GB, free: 8.449 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008533/0.2873, allocations: 0.5787 MB / 1.036 GB, free: 7.816 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2874, allocations: 3.984 kB / 1.036 GB, free: 7.812 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.2875, allocations: 15.98 kB / 1.036 GB, free: 7.797 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.2875, allocations: 3.938 kB / 1.036 GB, free: 7.793 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/0.2875, allocations: 11.98 kB / 1.036 GB, free: 7.781 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.2875, allocations: 12 kB / 1.036 GB, free: 7.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.2875, allocations: 4 kB / 1.036 GB, free: 7.766 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006376/0.2882, allocations: 425.5 kB / 1.037 GB, free: 7.332 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.848e-05/0.2882, allocations: 100.9 kB / 1.037 GB, free: 7.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.075e-05/0.2883, allocations: 11.94 kB / 1.037 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.2884, allocations: 12.05 kB / 1.037 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.606e-05/0.2885, allocations: 15.98 kB / 1.037 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/0.2885, allocations: 11.98 kB / 1.037 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.401e-05/0.2886, allocations: 123.2 kB / 1.037 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2886, allocations: 0 / 1.037 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000458/0.2891, allocations: 108 kB / 1.037 GB, free: 6.938 MB / 0.8106 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.0008247/0.2899, allocations: 453.1 kB / 1.038 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00041/0.2903, allocations: 203.6 kB / 1.038 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2903, allocations: 0 / 1.038 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.2905, allocations: 84.7 kB / 1.038 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.2909, allocations: 33.81 kB / 1.038 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006774/0.2915, allocations: 366.7 kB / 1.038 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002473/0.2918, allocations: 0.732 MB / 1.039 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001087/0.2919, allocations: 49.44 kB / 1.039 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.779e-05/0.292, allocations: 19.44 kB / 1.039 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of SimCode: time 3.71e-07/0.292, allocations: 0 / 1.039 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of Templates: time 0.007057/0.299, allocations: 3.433 MB / 1.042 GB, free: 1.656 MB / 0.8106 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 -s gbode -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/jenkins1/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