Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.0009652/0.0009652, allocations: 90.91 kB / 15.36 MB, free: 0.7383 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.009369/0.009369, allocations: 171.8 kB / 16.26 MB, free: 6.613 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.489/1.489, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.537/2.537, allocations: 390.9 MB / 0.6663 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004008/0.0004009, allocations: 11.98 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8346/0.835, allocations: 142.4 MB / 0.955 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002602/0.8377, allocations: 1.438 MB / 0.9564 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003121/0.8408, allocations: 1.76 MB / 0.9582 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.841, allocations: 5.031 kB / 0.9582 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001891/0.8412, allocations: 22.89 kB / 0.9582 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001929/0.8414, allocations: 26.97 kB / 0.9582 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001526/0.8429, allocations: 273.4 kB / 0.9585 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003577/0.8433, allocations: 199.5 kB / 0.9587 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.8434, allocations: 30.09 kB / 0.9587 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.8437, allocations: 72.78 kB / 0.9588 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.8439, allocations: 80.45 kB / 0.9588 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.619e-05/0.8439, allocations: 5.344 kB / 0.9588 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006037/0.8445, allocations: 253.9 kB / 0.9591 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.8446, allocations: 48.5 kB / 0.9591 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.8448, allocations: 96.53 kB / 0.9592 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006486/0.8454, allocations: 357.5 kB / 0.9596 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.8454, allocations: 0 / 0.9596 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.104e-06/0.8455, allocations: 0 / 0.9596 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.8455, allocations: 1.375 kB / 0.9596 GB, free: 4.484 MB / 0.7169 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.000969/0.8464, allocations: 0.4971 MB / 0.9601 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.8465, allocations: 8.25 kB / 0.9601 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.105e-05/0.8466, allocations: 18.38 kB / 0.9601 GB, free: 4 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.8469, allocations: 228.3 kB / 0.9603 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.8469, allocations: 17.8 kB / 0.9603 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.581e-05/0.847, allocations: 13.56 kB / 0.9603 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003823/0.8473, allocations: 153.4 kB / 0.9605 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.8474, allocations: 3.938 kB / 0.9605 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.68e-05/0.8474, allocations: 6.219 kB / 0.9605 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.8474, allocations: 1.969 kB / 0.9605 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002714/0.8477, allocations: 87.81 kB / 0.9606 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.8487, allocations: 438.5 kB / 0.961 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003556/0.8491, allocations: 154.9 kB / 0.9611 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001736/0.8493, allocations: 77.06 kB / 0.9612 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.8493, allocations: 7.203 kB / 0.9612 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003401/0.8497, allocations: 174.6 kB / 0.9614 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 3.647e-06/0.8497, allocations: 0 / 0.9614 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20): time 0.0009062/0.8506, allocations: 323.5 kB / 0.9617 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.634e-05/0.8507, allocations: 96.09 kB / 0.9618 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/0.8509, allocations: 166.1 kB / 0.9619 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.823e-05/0.8509, allocations: 39.44 kB / 0.962 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.098e-05/0.851, allocations: 111.3 kB / 0.9621 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.943e-05/0.8511, allocations: 56.62 kB / 0.9621 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.723e-05/0.8512, allocations: 37.2 kB / 0.9622 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.988e-05/0.8513, allocations: 336 kB / 0.9625 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.8515, allocations: 81.7 kB / 0.9626 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002777/0.8517, allocations: 183.8 kB / 0.9627 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004463/0.8522, allocations: 272.5 kB / 0.963 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.8522, allocations: 1.406 kB / 0.963 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005572/0.8528, allocations: 307.8 kB / 0.9633 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.8528, allocations: 6.281 kB / 0.9633 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.8528, allocations: 2.719 kB / 0.9633 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.621e-05/0.8529, allocations: 4.938 kB / 0.9633 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.853, allocations: 43.3 kB / 0.9634 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.853, allocations: 8.188 kB / 0.9634 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.8532, allocations: 25.98 kB / 0.9634 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.8532, allocations: 13.97 kB / 0.9634 GB, free: 1.395 MB / 0.7169 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.0001685/0.8534, allocations: 161.2 kB / 0.9636 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/0.8534, allocations: 15.97 kB / 0.9636 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.372e-05/0.8535, allocations: 18.73 kB / 0.9636 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.8535, allocations: 2.031 kB / 0.9636 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.8535, allocations: 0.9688 kB / 0.9636 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.8535, allocations: 5 kB / 0.9636 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008894/0.8544, allocations: 0.5906 MB / 0.9642 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.8544, allocations: 3.938 kB / 0.9642 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.8546, allocations: 18.08 kB / 0.9642 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.8546, allocations: 5.219 kB / 0.9642 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.8546, allocations: 7.625 kB / 0.9642 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.8546, allocations: 5.125 kB / 0.9642 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.8546, allocations: 64 / 0.9642 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007882/0.8554, allocations: 456.5 kB / 0.9646 GB, free: 476 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.124e-05/0.8555, allocations: 93.91 kB / 0.9647 GB, free: 368 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.809e-05/0.8555, allocations: 12.03 kB / 0.9647 GB, free: 360 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.8557, allocations: 18.45 kB / 0.9648 GB, free: 352 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.604e-05/0.8558, allocations: 17.69 kB / 0.9648 GB, free: 340 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.313e-05/0.8558, allocations: 11.34 kB / 0.9648 GB, free: 336 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001033/0.8559, allocations: 121.8 kB / 0.9649 GB, free: 240 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8559, allocations: 0 / 0.9649 GB, free: 240 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0006385/0.8566, allocations: 110 kB / 0.965 GB, free: 200 kB / 0.7169 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.001317/0.8579, allocations: 433.8 kB / 0.9654 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006361/0.8586, allocations: 215.3 kB / 0.9656 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.8586, allocations: 0 / 0.9656 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002405/0.8588, allocations: 90.3 kB / 0.9657 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004097/0.8592, allocations: 31.23 kB / 0.9657 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.8603, allocations: 429.2 kB / 0.9662 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.8607, allocations: 0.7283 MB / 0.9669 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001372/0.8608, allocations: 49.09 kB / 0.9669 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.983e-05/0.8609, allocations: 20.53 kB / 0.9669 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of SimCode: time 5.91e-07/0.8609, allocations: 3.938 kB / 0.9669 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of Templates: time 0.008606/0.8695, allocations: 3.299 MB / 0.9702 GB, free: 13.08 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & ./Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches