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.004771/0.004771, allocations: 100.1 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.001145/0.001145, allocations: 194.3 kB / 16.67 MB, free: 5.93 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.229/2.229, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.001371, allocations: 59.91 kB / 0.9508 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9172/0.9186, allocations: 140.4 MB / 1.088 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003286/0.9219, allocations: 1.742 MB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00286/0.9248, allocations: 1.804 MB / 1.091 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.603e-05/0.9249, allocations: 1.969 kB / 1.091 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002028/0.9251, allocations: 31.66 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.9253, allocations: 25.53 kB / 1.091 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001546/0.9268, allocations: 310.5 kB / 1.092 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003518/0.9272, allocations: 214.2 kB / 1.092 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.9273, allocations: 29.86 kB / 1.092 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.9275, allocations: 79.55 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.9277, allocations: 80.19 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.32e-05/0.9277, allocations: 14.8 kB / 1.092 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005689/0.9283, allocations: 279.6 kB / 1.092 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.9284, allocations: 56.88 kB / 1.092 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001111/0.9286, allocations: 79.53 kB / 1.093 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006746/0.9292, allocations: 367.4 kB / 1.093 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.9292, allocations: 5.281 kB / 1.093 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.114e-06/0.9293, allocations: 3.938 kB / 1.093 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.116e-06/0.9293, allocations: 0 / 1.093 GB, free: 2.398 MB / 0.8575 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.0009089/0.9302, allocations: 0.5122 MB / 1.093 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.9302, allocations: 13.16 kB / 1.093 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.27e-05/0.9303, allocations: 22.75 kB / 1.093 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/0.9305, allocations: 227.7 kB / 1.094 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.9306, allocations: 14.27 kB / 1.094 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.922e-05/0.9306, allocations: 11.25 kB / 1.094 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003576/0.931, allocations: 147.5 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.931, allocations: 0 / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.931, allocations: 7.172 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.9311, allocations: 6.25 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002341/0.9313, allocations: 78.03 kB / 1.094 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008759/0.9322, allocations: 434 kB / 1.094 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003301/0.9325, allocations: 150.6 kB / 1.094 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001955/0.9327, allocations: 75.12 kB / 1.094 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/0.9328, allocations: 3.219 kB / 1.094 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003634/0.9331, allocations: 168.2 kB / 1.095 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 1.803e-06/0.9331, allocations: 0 / 1.095 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20): time 0.0009402/0.9341, allocations: 313.3 kB / 1.095 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.171e-05/0.9342, allocations: 90.41 kB / 1.095 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.9344, allocations: 174.5 kB / 1.095 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.9345, allocations: 37.39 kB / 1.095 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.948e-05/0.9345, allocations: 114.7 kB / 1.095 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.079e-05/0.9346, allocations: 57.8 kB / 1.095 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.9347, allocations: 61.92 kB / 1.095 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.9348, allocations: 334.9 kB / 1.096 GB, free: 200 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002254/0.9351, allocations: 76.42 kB / 1.096 GB, free: 180 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.9354, allocations: 179.3 kB / 1.096 GB, free: 28 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005655/0.9359, allocations: 269.4 kB / 1.096 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.936, allocations: 1.469 kB / 1.096 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005884/0.9365, allocations: 294 kB / 1.097 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.9366, allocations: 6.812 kB / 1.097 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.9366, allocations: 6.844 kB / 1.097 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.9366, allocations: 5.578 kB / 1.097 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.9368, allocations: 42.64 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.665e-05/0.9368, allocations: 4.953 kB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.9369, allocations: 26.02 kB / 1.097 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.937, allocations: 10.47 kB / 1.097 GB, free: 15.68 MB / 0.8731 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.0001948/0.9372, allocations: 166.1 kB / 1.097 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.471e-05/0.9372, allocations: 17.55 kB / 1.097 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.044e-05/0.9373, allocations: 20.17 kB / 1.097 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.9373, allocations: 3.562 kB / 1.097 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.9373, allocations: 0 / 1.097 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.9373, allocations: 2.484 kB / 1.097 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000983/0.9383, allocations: 0.5778 MB / 1.097 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.9383, allocations: 4.906 kB / 1.097 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001079/0.9385, allocations: 18.19 kB / 1.097 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.9385, allocations: 5.406 kB / 1.097 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.064e-05/0.9385, allocations: 11.3 kB / 1.097 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.9385, allocations: 4.5 kB / 1.097 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.9385, allocations: 1.156 kB / 1.097 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008711/0.9394, allocations: 441.3 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.754e-05/0.9395, allocations: 89.86 kB / 1.098 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.438e-05/0.9395, allocations: 12.59 kB / 1.098 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.9397, allocations: 14.64 kB / 1.098 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.019e-05/0.9398, allocations: 10.53 kB / 1.098 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-05/0.9398, allocations: 14.31 kB / 1.098 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001291/0.94, allocations: 120.4 kB / 1.098 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.94, allocations: 64 / 1.098 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006032/0.9406, allocations: 113.3 kB / 1.098 GB, free: 14.65 MB / 0.8731 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.001065/0.9416, allocations: 444.4 kB / 1.099 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005361/0.9422, allocations: 201.1 kB / 1.099 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.9422, allocations: 128 / 1.099 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.9424, allocations: 89.52 kB / 1.099 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.9428, allocations: 31.39 kB / 1.099 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008148/0.9436, allocations: 368.1 kB / 1.099 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.9439, allocations: 0.732 MB / 1.1 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001276/0.9441, allocations: 52.73 kB / 1.1 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.552e-05/0.9441, allocations: 17.83 kB / 1.1 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of SimCode: time 3.9e-07/0.9441, allocations: 5.156 kB / 1.1 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of Templates: time 0.009429/0.9536, allocations: 3.463 MB / 1.104 GB, free: 13.06 MB / 0.8731 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