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.0016/0.0016, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002906/0.002906, allocations: 190.9 kB / 16.25 MB, free: 6.586 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.389/1.389, allocations: 222.9 MB / 239.9 MB, free: 4.535 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.434/2.434, allocations: 390.2 MB / 0.6643 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7615/0.7629, allocations: 140.4 MB / 0.9491 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003115/0.7661, allocations: 1.781 MB / 0.9508 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002271/0.7684, allocations: 1.785 MB / 0.9526 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.468e-05/0.7685, allocations: 1.406 kB / 0.9526 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001775/0.7687, allocations: 17.14 kB / 0.9526 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.7688, allocations: 27.38 kB / 0.9526 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001258/0.7701, allocations: 281.4 kB / 0.9529 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003389/0.7704, allocations: 217.3 kB / 0.9531 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.7706, allocations: 39.08 kB / 0.9531 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.7708, allocations: 83.34 kB / 0.9532 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.7709, allocations: 77.73 kB / 0.9533 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.921e-05/0.7709, allocations: 10.94 kB / 0.9533 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004306/0.7714, allocations: 262 kB / 0.9535 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.543e-05/0.7715, allocations: 56.09 kB / 0.9536 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.519e-05/0.7716, allocations: 70.53 kB / 0.9537 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004666/0.772, allocations: 371.3 kB / 0.954 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.7721, allocations: 0 / 0.954 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.763e-06/0.7721, allocations: 0 / 0.954 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.7721, allocations: 4.969 kB / 0.954 GB, free: 5.516 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.0008199/0.7729, allocations: 0.5153 MB / 0.9545 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.7729, allocations: 9.656 kB / 0.9545 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.951e-05/0.773, allocations: 22.45 kB / 0.9546 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002101/0.7732, allocations: 227.8 kB / 0.9548 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.7733, allocations: 12.62 kB / 0.9548 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.532e-05/0.7733, allocations: 21.42 kB / 0.9548 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003115/0.7736, allocations: 148.3 kB / 0.9549 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.7737, allocations: 4.781 kB / 0.9549 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.032e-05/0.7737, allocations: 5.422 kB / 0.955 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.7737, allocations: 2.969 kB / 0.955 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.7739, allocations: 75.17 kB / 0.955 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007837/0.7747, allocations: 436.1 kB / 0.9554 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002781/0.775, allocations: 159 kB / 0.9556 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.7751, allocations: 71.78 kB / 0.9557 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.7752, allocations: 2.781 kB / 0.9557 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002736/0.7754, allocations: 168.2 kB / 0.9558 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 1.512e-06/0.7754, allocations: 1.781 kB / 0.9558 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20): time 0.0006808/0.7761, allocations: 313.5 kB / 0.9561 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.7762, allocations: 83.8 kB / 0.9562 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.7763, allocations: 169.9 kB / 0.9564 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.7764, allocations: 39.02 kB / 0.9564 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.049e-05/0.7764, allocations: 107.2 kB / 0.9565 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.773e-05/0.7765, allocations: 64.52 kB / 0.9566 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.09e-05/0.7766, allocations: 52.92 kB / 0.9566 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.178e-05/0.7766, allocations: 343.6 kB / 0.9569 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.7768, allocations: 75.61 kB / 0.957 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.777, allocations: 178.9 kB / 0.9572 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.7774, allocations: 260.6 kB / 0.9574 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.7774, allocations: 5.438 kB / 0.9574 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004615/0.7778, allocations: 296.7 kB / 0.9577 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.7779, allocations: 6.875 kB / 0.9577 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.7779, allocations: 3.125 kB / 0.9577 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.7779, allocations: 12.11 kB / 0.9577 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.7781, allocations: 36.8 kB / 0.9578 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.7781, allocations: 9.438 kB / 0.9578 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.7782, allocations: 24.08 kB / 0.9578 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.7782, allocations: 13.62 kB / 0.9578 GB, free: 2.406 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.0001402/0.7784, allocations: 152.6 kB / 0.958 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.741e-05/0.7784, allocations: 21.44 kB / 0.958 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.645e-05/0.7785, allocations: 21.98 kB / 0.958 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.7785, allocations: 2.75 kB / 0.958 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.7785, allocations: 0 / 0.958 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.7785, allocations: 1.375 kB / 0.958 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008425/0.7793, allocations: 0.5837 MB / 0.9586 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.7794, allocations: 0.875 kB / 0.9586 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.7795, allocations: 18.81 kB / 0.9586 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.7795, allocations: 1.062 kB / 0.9586 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.7795, allocations: 11.95 kB / 0.9586 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.7795, allocations: 5.969 kB / 0.9586 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.7795, allocations: 0 / 0.9586 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006864/0.7802, allocations: 449.7 kB / 0.9591 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.416e-05/0.7803, allocations: 89.42 kB / 0.9591 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.296e-05/0.7803, allocations: 16.61 kB / 0.9592 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.7805, allocations: 10.52 kB / 0.9592 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.9e-05/0.7805, allocations: 14.73 kB / 0.9592 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.956e-05/0.7806, allocations: 11.3 kB / 0.9592 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.041e-05/0.7807, allocations: 122.2 kB / 0.9593 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7807, allocations: 0 / 0.9593 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000558/0.7812, allocations: 118.1 kB / 0.9594 GB, free: 1.207 MB / 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.001006/0.7822, allocations: 450.2 kB / 0.9598 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005484/0.7828, allocations: 215.3 kB / 0.9601 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.7828, allocations: 1.906 kB / 0.9601 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002147/0.783, allocations: 90.88 kB / 0.9601 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/0.7834, allocations: 25.8 kB / 0.9602 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009262/0.7844, allocations: 422.8 kB / 0.9606 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.7847, allocations: 0.7324 MB / 0.9613 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001475/0.7849, allocations: 48.22 kB / 0.9613 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.567e-05/0.785, allocations: 21.48 kB / 0.9614 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.785, allocations: 0 / 0.9614 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of Templates: time 0.008534/0.7935, allocations: 3.384 MB / 0.9647 GB, free: 14.05 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