Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0086/0.0086, allocations: 97.41 kB / 15.73 MB, free: 6.039 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.002433/0.002433, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.506/1.506, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.847/2.847, allocations: 437 MB / 0.7105 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 59.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3167, allocations: 151.6 MB / 1.166 GB, free: 7.324 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003268/0.32, allocations: 1.737 MB / 1.168 GB, free: 5.566 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002841/0.3228, allocations: 1.81 MB / 1.17 GB, free: 3.746 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.742e-05/0.3229, allocations: 3.938 kB / 1.17 GB, free: 3.742 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.3231, allocations: 31.78 kB / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.3232, allocations: 27.72 kB / 1.17 GB, free: 3.684 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001223/0.3245, allocations: 317.6 kB / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002982/0.3248, allocations: 215.5 kB / 1.17 GB, free: 3.164 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.3249, allocations: 21.55 kB / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.325, allocations: 87.69 kB / 1.17 GB, free: 3.059 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.3252, allocations: 79.61 kB / 1.17 GB, free: 2.98 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.685e-05/0.3252, allocations: 8 kB / 1.17 GB, free: 2.973 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004855/0.3257, allocations: 283.5 kB / 1.171 GB, free: 2.695 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.3258, allocations: 55.86 kB / 1.171 GB, free: 2.641 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 9.433e-05/0.3259, allocations: 67.61 kB / 1.171 GB, free: 2.574 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005554/0.3265, allocations: 375 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3265, allocations: 4 kB / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3265, allocations: 0 / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.3265, allocations: 0 / 1.171 GB, free: 2.203 MB / 0.92 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.0009154/0.3275, allocations: 0.5333 MB / 1.172 GB, free: 1.621 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.3275, allocations: 8.031 kB / 1.172 GB, free: 1.613 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.561e-05/0.3276, allocations: 42.73 kB / 1.172 GB, free: 1.562 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.446e-05/0.3276, allocations: 20.84 kB / 1.172 GB, free: 1.543 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.3279, allocations: 229.5 kB / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.3279, allocations: 16.06 kB / 1.172 GB, free: 1.262 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.034e-05/0.328, allocations: 19.98 kB / 1.172 GB, free: 1.242 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003273/0.3283, allocations: 153.7 kB / 1.172 GB, free: 1.082 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3283, allocations: 0 / 1.172 GB, free: 1.082 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.3283, allocations: 7.938 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.3284, allocations: 4 kB / 1.172 GB, free: 1.07 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002243/0.3286, allocations: 79.88 kB / 1.172 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009083/0.3295, allocations: 432.7 kB / 1.173 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000316/0.3298, allocations: 156 kB / 1.173 GB, free: 368 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.33, allocations: 68.83 kB / 1.173 GB, free: 296 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.33, allocations: 0 / 1.173 GB, free: 296 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000311/0.3304, allocations: 165.3 kB / 1.173 GB, free: 112 kB / 0.92 GB Notification: Performance of pre-optimization done (n=20): time 1.353e-06/0.3304, allocations: 0 / 1.173 GB, free: 112 kB / 0.92 GB Notification: Performance of matching and sorting (n=20): time 0.0007438/0.3311, allocations: 311.5 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.574e-05/0.3312, allocations: 97.22 kB / 1.173 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.3314, allocations: 171.8 kB / 1.174 GB, free: 15.51 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.3315, allocations: 37.7 kB / 1.174 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.469e-05/0.3316, allocations: 116.5 kB / 1.174 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 7.206e-05/0.3316, allocations: 55.56 kB / 1.174 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.3317, allocations: 61.97 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002087/0.332, allocations: 330.8 kB / 1.174 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001819/0.3321, allocations: 80.5 kB / 1.174 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002945/0.3324, allocations: 181.9 kB / 1.174 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004715/0.3329, allocations: 267.8 kB / 1.175 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3329, allocations: 0 / 1.175 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006201/0.3336, allocations: 297.1 kB / 1.175 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.3336, allocations: 11.94 kB / 1.175 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.3336, allocations: 4 kB / 1.175 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.3336, allocations: 4 kB / 1.175 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.3338, allocations: 40.28 kB / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.3339, allocations: 8.094 kB / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.334, allocations: 27.83 kB / 1.175 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.334, allocations: 15.94 kB / 1.175 GB, free: 13.88 MB / 0.9356 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.0002342/0.3343, allocations: 152 kB / 1.175 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.861e-05/0.3343, allocations: 19.86 kB / 1.175 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.319e-05/0.3344, allocations: 25.8 kB / 1.175 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.3344, allocations: 8 kB / 1.175 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3344, allocations: 0 / 1.175 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.3344, allocations: 0 / 1.175 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.3355, allocations: 0.59 MB / 1.176 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.3355, allocations: 0 / 1.176 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.3356, allocations: 19.92 kB / 1.176 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3356, allocations: 0 / 1.176 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.3357, allocations: 11.92 kB / 1.176 GB, free: 13 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.3357, allocations: 8 kB / 1.176 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3357, allocations: 0 / 1.176 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007942/0.3365, allocations: 436.7 kB / 1.176 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.579e-05/0.3366, allocations: 89.02 kB / 1.176 GB, free: 12.44 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.123e-05/0.3366, allocations: 15.92 kB / 1.176 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.3368, allocations: 20.05 kB / 1.176 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/0.3369, allocations: 8.047 kB / 1.176 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.421e-05/0.3369, allocations: 16 kB / 1.176 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000133/0.337, allocations: 127.2 kB / 1.176 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.337, allocations: 0 / 1.176 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0006056/0.3377, allocations: 107.7 kB / 1.177 GB, free: 12.15 MB / 0.9356 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.002269/0.3399, allocations: 1.306 MB / 1.178 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005004/0.3405, allocations: 203.8 kB / 1.178 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3405, allocations: 0 / 1.178 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.3407, allocations: 83.89 kB / 1.178 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003669/0.341, allocations: 23.98 kB / 1.178 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003475/0.3445, allocations: 2.411 MB / 1.181 GB, free: 8.055 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.345, allocations: 0.7281 MB / 1.181 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001498/0.3452, allocations: 53.44 kB / 1.181 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.2e-05/0.3453, allocations: 43.42 kB / 1.181 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of SimCode: time 6.81e-07/0.3453, allocations: 0 / 1.181 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03198/0.3773, allocations: 5.59 MB / 1.187 GB, free: 1.672 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.515/8.893, allocations: 19.8 kB / 1.187 GB, free: 1.652 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1)