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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.007277/0.007277, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001658/0.001659, allocations: 201.2 kB / 16.68 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.7/2.7, allocations: 437 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 64.12 kB / 1.018 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.348, allocations: 151.6 MB / 1.167 GB, free: 6.789 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002876/0.351, allocations: 1.734 MB / 1.168 GB, free: 5.035 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002484/0.3535, allocations: 1.81 MB / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.295e-05/0.3536, allocations: 0 / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.3538, allocations: 31.73 kB / 1.17 GB, free: 3.184 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000139/0.3539, allocations: 31.78 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001173/0.3551, allocations: 316 kB / 1.17 GB, free: 2.848 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002753/0.3554, allocations: 211.5 kB / 1.171 GB, free: 2.641 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.3555, allocations: 29.55 kB / 1.171 GB, free: 2.613 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001379/0.3557, allocations: 83.67 kB / 1.171 GB, free: 2.531 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.3558, allocations: 79.61 kB / 1.171 GB, free: 2.453 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.3558, allocations: 8 kB / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004289/0.3563, allocations: 279.6 kB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.3564, allocations: 55.86 kB / 1.171 GB, free: 2.117 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.205e-05/0.3565, allocations: 75.53 kB / 1.171 GB, free: 2.043 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004494/0.3569, allocations: 374.7 kB / 1.172 GB, free: 1.676 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3569, allocations: 8 kB / 1.172 GB, free: 1.668 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.443e-06/0.357, allocations: 0 / 1.172 GB, free: 1.668 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.357, allocations: 0 / 1.172 GB, free: 1.668 MB / 0.92 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.0009374/0.3579, allocations: 0.5294 MB / 1.172 GB, free: 1.09 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.358, allocations: 8.031 kB / 1.172 GB, free: 1.082 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.693e-05/0.358, allocations: 20.84 kB / 1.172 GB, free: 1.062 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002292/0.3583, allocations: 228.8 kB / 1.172 GB, free: 0.7969 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.3583, allocations: 12.31 kB / 1.172 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.193e-05/0.3583, allocations: 23.92 kB / 1.172 GB, free: 0.7617 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002976/0.3586, allocations: 143.3 kB / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3587, allocations: 0 / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.3587, allocations: 4 kB / 1.172 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.3587, allocations: 4 kB / 1.172 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002089/0.3589, allocations: 86.5 kB / 1.173 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000839/0.3597, allocations: 428.7 kB / 1.173 GB, free: 52 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.3601, allocations: 154.5 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.3602, allocations: 72.81 kB / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.3603, allocations: 4 kB / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002802/0.3605, allocations: 163.5 kB / 1.173 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 1.333e-06/0.3605, allocations: 0 / 1.173 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of matching and sorting (n=20): time 0.000654/0.3612, allocations: 313.4 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.445e-05/0.3613, allocations: 93.09 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.3614, allocations: 167.9 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.3615, allocations: 37.69 kB / 1.174 GB, free: 15 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.221e-05/0.3615, allocations: 116.5 kB / 1.174 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.042e-05/0.3616, allocations: 55.48 kB / 1.174 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.255e-05/0.3617, allocations: 57.98 kB / 1.174 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.3618, allocations: 338.8 kB / 1.174 GB, free: 14.42 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.362, allocations: 76.5 kB / 1.175 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.3622, allocations: 181.9 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003774/0.3626, allocations: 259.7 kB / 1.175 GB, free: 13.83 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.3626, allocations: 8 kB / 1.175 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004727/0.3631, allocations: 301.1 kB / 1.175 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.3631, allocations: 8 kB / 1.175 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.3631, allocations: 4.375 kB / 1.175 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.3631, allocations: 8 kB / 1.175 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.3633, allocations: 39.92 kB / 1.175 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.3633, allocations: 7.984 kB / 1.175 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.3634, allocations: 23.89 kB / 1.175 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.3634, allocations: 8 kB / 1.175 GB, free: 13.42 MB / 0.9356 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.0001678/0.3636, allocations: 159.9 kB / 1.176 GB, free: 13.26 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.639e-05/0.3636, allocations: 27.94 kB / 1.176 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.885e-05/0.3637, allocations: 25.81 kB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.3637, allocations: 3.938 kB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3637, allocations: 0 / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.3637, allocations: 7.984 kB / 1.176 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008366/0.3646, allocations: 0.5786 MB / 1.176 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3646, allocations: 3.938 kB / 1.176 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.855e-05/0.3647, allocations: 15.98 kB / 1.176 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3647, allocations: 4 kB / 1.176 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.3647, allocations: 8 kB / 1.176 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.3647, allocations: 11.92 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3647, allocations: 0 / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006482/0.3654, allocations: 439 kB / 1.177 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.889e-05/0.3655, allocations: 89.02 kB / 1.177 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.3655, allocations: 11.92 kB / 1.177 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.3656, allocations: 15.98 kB / 1.177 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/0.3657, allocations: 11.98 kB / 1.177 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.3657, allocations: 11.98 kB / 1.177 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.414e-05/0.3658, allocations: 119.2 kB / 1.177 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3658, allocations: 0 / 1.177 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004315/0.3663, allocations: 111.7 kB / 1.177 GB, free: 11.69 MB / 0.9356 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.0008752/0.3671, allocations: 443.7 kB / 1.177 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004242/0.3676, allocations: 199.7 kB / 1.178 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3676, allocations: 0.75 kB / 1.178 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001867/0.3678, allocations: 91.94 kB / 1.178 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.3681, allocations: 28.11 kB / 1.178 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006956/0.3688, allocations: 389 kB / 1.178 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.3691, allocations: 0.7281 MB / 1.179 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001041/0.3692, allocations: 49.42 kB / 1.179 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.892e-05/0.3693, allocations: 23.42 kB / 1.179 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of SimCode: time 2.81e-07/0.3693, allocations: 0 / 1.179 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of Templates: time 0.007634/0.3769, allocations: 3.461 MB / 1.182 GB, free: 6.359 MB / 0.9356 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