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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.007649/0.007649, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001432/0.001432, allocations: 197.3 kB / 16.67 MB, free: 5.934 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.436/1.436, 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 12.0.0-master/package.mo): time 2.745/2.745, allocations: 472.6 MB / 0.7453 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.91 kB / 1.069 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8536/0.8549, allocations: 159.9 MB / 1.226 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002747/0.8577, allocations: 1.73 MB / 1.227 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002459/0.8601, allocations: 1.823 MB / 1.229 GB, free: 9.941 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.371e-05/0.8602, allocations: 0 / 1.229 GB, free: 9.941 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.8604, allocations: 31.72 kB / 1.229 GB, free: 9.91 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000114/0.8606, allocations: 19.8 kB / 1.229 GB, free: 9.891 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.8617, allocations: 322.7 kB / 1.229 GB, free: 9.578 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002702/0.862, allocations: 219.4 kB / 1.23 GB, free: 9.363 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.8621, allocations: 25.53 kB / 1.23 GB, free: 9.34 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.8623, allocations: 87.69 kB / 1.23 GB, free: 9.254 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.8624, allocations: 75.67 kB / 1.23 GB, free: 9.18 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.807e-05/0.8624, allocations: 8 kB / 1.23 GB, free: 9.172 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004382/0.8629, allocations: 283.5 kB / 1.23 GB, free: 8.895 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.863, allocations: 51.83 kB / 1.23 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 8.336e-05/0.8631, allocations: 75.58 kB / 1.23 GB, free: 8.77 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004445/0.8635, allocations: 367.3 kB / 1.231 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.8636, allocations: 4 kB / 1.231 GB, free: 8.41 MB / 0.9512 GB Notification: Performance of FrontEnd: time 8.42e-07/0.8636, allocations: 0 / 1.231 GB, free: 8.41 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.052e-06/0.8636, allocations: 4 kB / 1.231 GB, free: 8.406 MB / 0.9512 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.0008262/0.8644, allocations: 0.5333 MB / 1.231 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.8644, allocations: 8.031 kB / 1.231 GB, free: 7.816 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.108e-05/0.8645, allocations: 24.84 kB / 1.231 GB, free: 7.793 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.8647, allocations: 232.7 kB / 1.231 GB, free: 7.523 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.8648, allocations: 8.312 kB / 1.231 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.56e-05/0.8648, allocations: 20 kB / 1.231 GB, free: 7.496 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003051/0.8651, allocations: 147.3 kB / 1.232 GB, free: 7.34 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.8651, allocations: 3.984 kB / 1.232 GB, free: 7.336 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.8652, allocations: 4 kB / 1.232 GB, free: 7.332 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.8652, allocations: 4 kB / 1.232 GB, free: 7.328 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002046/0.8654, allocations: 79.88 kB / 1.232 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008224/0.8662, allocations: 436.7 kB / 1.232 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000283/0.8665, allocations: 146.5 kB / 1.232 GB, free: 6.621 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.8667, allocations: 68.83 kB / 1.232 GB, free: 6.551 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.8667, allocations: 3.984 kB / 1.232 GB, free: 6.547 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002708/0.867, allocations: 168.9 kB / 1.232 GB, free: 6.363 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=20): time 1.683e-06/0.867, allocations: 0 / 1.232 GB, free: 6.363 MB / 0.9512 GB Notification: Performance of matching and sorting (n=20): time 0.0006499/0.8676, allocations: 310.7 kB / 1.233 GB, free: 6.055 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.8677, allocations: 101.2 kB / 1.233 GB, free: 5.938 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.8679, allocations: 162.4 kB / 1.233 GB, free: 5.77 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.8679, allocations: 37.7 kB / 1.233 GB, free: 5.727 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.278e-05/0.868, allocations: 116.5 kB / 1.233 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.999e-05/0.868, allocations: 51.59 kB / 1.233 GB, free: 5.559 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.395e-05/0.8681, allocations: 61.97 kB / 1.233 GB, free: 5.488 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.8682, allocations: 334.7 kB / 1.234 GB, free: 5.152 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.8684, allocations: 80.5 kB / 1.234 GB, free: 5.074 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/0.8686, allocations: 183 kB / 1.234 GB, free: 4.852 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003566/0.869, allocations: 263.7 kB / 1.234 GB, free: 4.551 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.869, allocations: 0 / 1.234 GB, free: 4.551 MB / 0.9512 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004753/0.8695, allocations: 293.2 kB / 1.234 GB, free: 4.258 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.8695, allocations: 8 kB / 1.234 GB, free: 4.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.8695, allocations: 4 kB / 1.234 GB, free: 4.246 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.8695, allocations: 4 kB / 1.234 GB, free: 4.242 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001582/0.8697, allocations: 40.28 kB / 1.234 GB, free: 4.203 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.8697, allocations: 8 kB / 1.234 GB, free: 4.195 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.8698, allocations: 27.84 kB / 1.234 GB, free: 4.168 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.8698, allocations: 12 kB / 1.234 GB, free: 4.156 MB / 0.9512 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.0001435/0.87, allocations: 164.3 kB / 1.235 GB, free: 3.988 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.301e-05/0.87, allocations: 15.91 kB / 1.235 GB, free: 3.973 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.148e-05/0.8701, allocations: 21.86 kB / 1.235 GB, free: 3.941 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.8701, allocations: 8.062 kB / 1.235 GB, free: 3.934 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.8701, allocations: 4 kB / 1.235 GB, free: 3.93 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.8701, allocations: 0 / 1.235 GB, free: 3.93 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008263/0.871, allocations: 0.5845 MB / 1.235 GB, free: 3.289 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.871, allocations: 3.938 kB / 1.235 GB, free: 3.285 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.739e-05/0.8711, allocations: 15.98 kB / 1.235 GB, free: 3.27 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.8711, allocations: 0 / 1.235 GB, free: 3.27 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.8711, allocations: 7.984 kB / 1.235 GB, free: 3.262 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.8711, allocations: 11.94 kB / 1.235 GB, free: 3.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.8711, allocations: 0 / 1.235 GB, free: 3.25 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006444/0.8718, allocations: 440 kB / 1.236 GB, free: 2.805 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.897e-05/0.8718, allocations: 92.95 kB / 1.236 GB, free: 2.695 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.152e-05/0.8719, allocations: 19.91 kB / 1.236 GB, free: 2.676 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.872, allocations: 20.05 kB / 1.236 GB, free: 2.656 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.209e-05/0.8721, allocations: 7.984 kB / 1.236 GB, free: 2.648 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-05/0.8721, allocations: 12 kB / 1.236 GB, free: 2.637 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.658e-05/0.8722, allocations: 124.2 kB / 1.236 GB, free: 2.516 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8722, allocations: 0 / 1.236 GB, free: 2.516 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004486/0.8727, allocations: 111.6 kB / 1.236 GB, free: 2.406 MB / 0.9512 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.0009031/0.8736, allocations: 446 kB / 1.236 GB, free: 2.078 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004153/0.874, allocations: 203.6 kB / 1.237 GB, free: 1.879 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.874, allocations: 0 / 1.237 GB, free: 1.879 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.8742, allocations: 83.89 kB / 1.237 GB, free: 1.797 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.8745, allocations: 32.72 kB / 1.237 GB, free: 1.766 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000714/0.8753, allocations: 383.3 kB / 1.237 GB, free: 1.363 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.8756, allocations: 0.7281 MB / 1.238 GB, free: 0.6094 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001053/0.8757, allocations: 45.5 kB / 1.238 GB, free: 0.5664 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.938e-05/0.8757, allocations: 23.44 kB / 1.238 GB, free: 0.543 MB / 0.9512 GB Notification: Performance of SimCode: time 2e-07/0.8757, allocations: 0 / 1.238 GB, free: 0.543 MB / 0.9512 GB Notification: Performance of Templates: time 0.007189/0.8829, allocations: 3.46 MB / 1.241 GB, free: 13.09 MB / 0.9669 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