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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.006411/0.006411, allocations: 104.3 kB / 15.74 MB, free: 6.039 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.001411/0.001411, allocations: 187.8 kB / 16.67 MB, free: 5.957 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.609/2.609, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 60.12 kB / 1.054 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7655/0.7668, allocations: 157.4 MB / 1.208 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002886/0.7697, allocations: 1.728 MB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00264/0.7724, allocations: 1.81 MB / 1.211 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.423e-05/0.7725, allocations: 0 / 1.211 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.7726, allocations: 31.78 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.7728, allocations: 27.72 kB / 1.211 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.7739, allocations: 311.1 kB / 1.212 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002712/0.7742, allocations: 223.4 kB / 1.212 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.914e-05/0.7743, allocations: 33.53 kB / 1.212 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001354/0.7745, allocations: 79.69 kB / 1.212 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.7746, allocations: 75.67 kB / 1.212 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.935e-05/0.7746, allocations: 12 kB / 1.212 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004228/0.7751, allocations: 283.5 kB / 1.212 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.829e-05/0.7752, allocations: 55.86 kB / 1.212 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.731e-05/0.7753, allocations: 67.61 kB / 1.212 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004443/0.7757, allocations: 378.8 kB / 1.213 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.7757, allocations: 4 kB / 1.213 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7757, allocations: 0 / 1.213 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.7757, allocations: 0 / 1.213 GB, free: 8.5 MB / 0.9356 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.0008495/0.7766, allocations: 0.5202 MB / 1.213 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.7766, allocations: 8.031 kB / 1.213 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.196e-05/0.7767, allocations: 20.75 kB / 1.213 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.777, allocations: 224.7 kB / 1.213 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.777, allocations: 20.19 kB / 1.213 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.537e-05/0.777, allocations: 16 kB / 1.213 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.7773, allocations: 147.3 kB / 1.214 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.7774, allocations: 0 / 1.214 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.094e-05/0.7774, allocations: 11.98 kB / 1.214 GB, free: 7.441 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.7774, allocations: 4 kB / 1.214 GB, free: 7.438 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.7776, allocations: 75.89 kB / 1.214 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008396/0.7785, allocations: 436.6 kB / 1.214 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/0.7788, allocations: 154.4 kB / 1.214 GB, free: 6.727 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.7789, allocations: 70.84 kB / 1.214 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.779, allocations: 4 kB / 1.214 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002842/0.7793, allocations: 166.3 kB / 1.214 GB, free: 6.473 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 1.643e-06/0.7793, allocations: 0 / 1.214 GB, free: 6.473 MB / 0.9356 GB Notification: Performance of matching and sorting (n=20): time 0.0006755/0.78, allocations: 304 kB / 1.215 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.78, allocations: 93.05 kB / 1.215 GB, free: 6.062 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.7802, allocations: 176.1 kB / 1.215 GB, free: 5.883 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.909e-05/0.7802, allocations: 33.7 kB / 1.215 GB, free: 5.844 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.074e-05/0.7803, allocations: 120.6 kB / 1.215 GB, free: 5.723 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.017e-05/0.7804, allocations: 59.27 kB / 1.215 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.958e-05/0.7805, allocations: 57.98 kB / 1.215 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.7806, allocations: 334.8 kB / 1.216 GB, free: 5.262 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/0.7808, allocations: 72.52 kB / 1.216 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.781, allocations: 181.9 kB / 1.216 GB, free: 4.969 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003845/0.7814, allocations: 263.7 kB / 1.216 GB, free: 4.668 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.7814, allocations: 4 kB / 1.216 GB, free: 4.664 MB / 0.9356 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004854/0.7819, allocations: 293.2 kB / 1.216 GB, free: 4.371 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.7819, allocations: 8.094 kB / 1.216 GB, free: 4.363 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.782, allocations: 7.938 kB / 1.216 GB, free: 4.355 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.782, allocations: 4 kB / 1.216 GB, free: 4.352 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.7821, allocations: 47.84 kB / 1.216 GB, free: 4.305 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.7821, allocations: 4 kB / 1.216 GB, free: 4.301 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.7823, allocations: 27.83 kB / 1.216 GB, free: 4.273 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.7823, allocations: 8 kB / 1.216 GB, free: 4.266 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.0001602/0.7825, allocations: 160.1 kB / 1.217 GB, free: 4.102 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.486e-05/0.7825, allocations: 19.75 kB / 1.217 GB, free: 4.082 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.948e-05/0.7825, allocations: 25.86 kB / 1.217 GB, free: 4.055 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.7826, allocations: 3.984 kB / 1.217 GB, free: 4.051 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.7826, allocations: 0 / 1.217 GB, free: 4.051 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.7826, allocations: 4 kB / 1.217 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000889/0.7835, allocations: 0.5765 MB / 1.217 GB, free: 3.414 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.7835, allocations: 8.047 kB / 1.217 GB, free: 3.406 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.744e-05/0.7836, allocations: 15.94 kB / 1.217 GB, free: 3.391 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.7836, allocations: 0 / 1.217 GB, free: 3.391 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.7836, allocations: 11.98 kB / 1.217 GB, free: 3.379 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.7836, allocations: 7.938 kB / 1.217 GB, free: 3.371 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.7837, allocations: 0 / 1.217 GB, free: 3.371 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006846/0.7843, allocations: 438.8 kB / 1.218 GB, free: 2.926 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.025e-05/0.7844, allocations: 88.92 kB / 1.218 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.076e-05/0.7844, allocations: 15.92 kB / 1.218 GB, free: 2.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.7846, allocations: 15.92 kB / 1.218 GB, free: 2.789 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.031e-05/0.7847, allocations: 11.98 kB / 1.218 GB, free: 2.777 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.832e-05/0.7847, allocations: 16.05 kB / 1.218 GB, free: 2.762 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.279e-05/0.7848, allocations: 119.2 kB / 1.218 GB, free: 2.645 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7848, allocations: 0 / 1.218 GB, free: 2.645 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004522/0.7853, allocations: 115.8 kB / 1.218 GB, free: 2.531 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.0008973/0.7862, allocations: 435.3 kB / 1.218 GB, free: 2.207 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004373/0.7866, allocations: 202.8 kB / 1.219 GB, free: 2.012 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.7866, allocations: 0 / 1.219 GB, free: 2.012 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001757/0.7868, allocations: 83.89 kB / 1.219 GB, free: 1.93 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.7871, allocations: 27.97 kB / 1.219 GB, free: 1.902 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006997/0.7878, allocations: 379.1 kB / 1.219 GB, free: 1.5 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.7882, allocations: 0.7281 MB / 1.22 GB, free: 0.7461 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001049/0.7883, allocations: 49.5 kB / 1.22 GB, free: 0.6992 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.782e-05/0.7884, allocations: 15.44 kB / 1.22 GB, free: 0.6836 MB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/0.7884, allocations: 0 / 1.22 GB, free: 0.6836 MB / 0.9356 GB Notification: Performance of Templates: time 0.00778/0.7962, allocations: 3.531 MB / 1.223 GB, free: 13.16 MB / 0.9512 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","/var/lib/jenkins/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