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.001095/0.001095, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001362/0.001362, allocations: 189 kB / 16.25 MB, free: 6.152 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.451/1.451, allocations: 222.9 MB / 239.9 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.82/2.82, allocations: 472.6 MB / 0.7448 GB, free: 4.867 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 66.27 kB / 0.9116 GB, free: 33.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3166, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003069/0.3197, allocations: 1.79 MB / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002857/0.3226, allocations: 1.783 MB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.3227, allocations: 7.938 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002035/0.323, allocations: 19.86 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.3231, allocations: 15.86 kB / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001638/0.3248, allocations: 298.3 kB / 1.072 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.3251, allocations: 211.5 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001362/0.3252, allocations: 29.53 kB / 1.072 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.3254, allocations: 79.69 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.3256, allocations: 87.59 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.33e-05/0.3256, allocations: 12 kB / 1.072 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005337/0.3262, allocations: 255.6 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001365/0.3263, allocations: 63.81 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.73e-05/0.3264, allocations: 71.64 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004792/0.3269, allocations: 371.3 kB / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3269, allocations: 0 / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.963e-06/0.3269, allocations: 0 / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.327, allocations: 0 / 1.073 GB, free: 5.668 MB / 0.8262 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.0009244/0.3279, allocations: 0.5223 MB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.3279, allocations: 8.031 kB / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.262e-05/0.328, allocations: 24.75 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.3283, allocations: 232.6 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.3283, allocations: 12.31 kB / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.05e-05/0.3283, allocations: 12 kB / 1.073 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000324/0.3287, allocations: 157.9 kB / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.3287, allocations: 0 / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.3287, allocations: 4 kB / 1.074 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.3287, allocations: 4 kB / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.3289, allocations: 79.88 kB / 1.074 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000838/0.3298, allocations: 432.7 kB / 1.074 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002892/0.3301, allocations: 158.4 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.3302, allocations: 64.83 kB / 1.074 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.3303, allocations: 4 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002975/0.3306, allocations: 171.3 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.3306, allocations: 0 / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20): time 0.0006656/0.3312, allocations: 303.3 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.3313, allocations: 97.22 kB / 1.075 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.3315, allocations: 168.4 kB / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.3315, allocations: 33.7 kB / 1.075 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.559e-05/0.3316, allocations: 120.4 kB / 1.075 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.363e-05/0.3317, allocations: 51.34 kB / 1.075 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-05/0.3317, allocations: 61.97 kB / 1.075 GB, free: 2.766 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.3319, allocations: 330.8 kB / 1.076 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.332, allocations: 84.5 kB / 1.076 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/0.3323, allocations: 179.6 kB / 1.076 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003685/0.3327, allocations: 263.7 kB / 1.076 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3327, allocations: 4 kB / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000479/0.3331, allocations: 297 kB / 1.076 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.3332, allocations: 4 kB / 1.076 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3332, allocations: 4 kB / 1.076 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.3332, allocations: 8.078 kB / 1.076 GB, free: 1.516 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.3334, allocations: 52.16 kB / 1.076 GB, free: 1.465 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.3334, allocations: 12 kB / 1.076 GB, free: 1.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.3335, allocations: 19.84 kB / 1.076 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.3335, allocations: 8 kB / 1.076 GB, free: 1.426 MB / 0.8262 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.0001488/0.3337, allocations: 167.8 kB / 1.077 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.34e-05/0.3337, allocations: 19.81 kB / 1.077 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.482e-05/0.3338, allocations: 17.86 kB / 1.077 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.3338, allocations: 4 kB / 1.077 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.3338, allocations: 4 kB / 1.077 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.3338, allocations: 0 / 1.077 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008407/0.3347, allocations: 0.5724 MB / 1.077 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.3347, allocations: 4 kB / 1.077 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.3348, allocations: 15.92 kB / 1.077 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.3348, allocations: 4 kB / 1.077 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.512e-05/0.3348, allocations: 15.98 kB / 1.077 GB, free: 0.5391 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.3348, allocations: 8 kB / 1.077 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3348, allocations: 0 / 1.077 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006622/0.3355, allocations: 433.7 kB / 1.078 GB, free: 92 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.671e-05/0.3356, allocations: 96.83 kB / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.887e-05/0.3356, allocations: 12 kB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.3358, allocations: 15.98 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.517e-05/0.3358, allocations: 15.97 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-05/0.3359, allocations: 8 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.477e-05/0.336, allocations: 128.7 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.336, allocations: 4 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004396/0.3364, allocations: 103.9 kB / 1.078 GB, free: 15.7 MB / 0.8419 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.00085/0.3373, allocations: 442.7 kB / 1.078 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004611/0.3377, allocations: 223.6 kB / 1.079 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3377, allocations: 0 / 1.079 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000172/0.3379, allocations: 86.7 kB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.3383, allocations: 36.11 kB / 1.079 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007226/0.339, allocations: 414.6 kB / 1.079 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.3393, allocations: 0.7242 MB / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001151/0.3395, allocations: 57.42 kB / 1.08 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.991e-05/0.3395, allocations: 19.44 kB / 1.08 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of SimCode: time 4.51e-07/0.3395, allocations: 0 / 1.08 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of Templates: time 0.006978/0.3465, allocations: 3.391 MB / 1.083 GB, free: 10.39 MB / 0.8419 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