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.005606/0.005606, allocations: 106.3 kB / 15.74 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.001354/0.001354, allocations: 199.2 kB / 16.68 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.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.466/2.466, allocations: 437.1 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 75.89 kB / 1.018 GB, free: 9.945 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9311/0.9327, allocations: 151.6 MB / 1.166 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002961/0.9357, allocations: 1.745 MB / 1.168 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00259/0.9383, allocations: 1.802 MB / 1.17 GB, free: 264 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.656e-05/0.9384, allocations: 3.938 kB / 1.17 GB, free: 260 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.9386, allocations: 31.78 kB / 1.17 GB, free: 228 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001371/0.9388, allocations: 23.73 kB / 1.17 GB, free: 204 kB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001391/0.9402, allocations: 323.6 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.000328/0.9405, allocations: 227.4 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.9406, allocations: 25.55 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.9408, allocations: 79.73 kB / 1.17 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.9409, allocations: 83.61 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 2.924e-05/0.941, allocations: 12 kB / 1.17 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005078/0.9415, allocations: 279.5 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.9416, allocations: 55.88 kB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 8.45e-05/0.9417, allocations: 67.59 kB / 1.171 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004545/0.9422, allocations: 369.3 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.9422, allocations: 0 / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.562e-06/0.9422, allocations: 0 / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.9422, allocations: 0 / 1.171 GB, free: 14.71 MB / 0.9044 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.0007937/0.943, allocations: 0.5301 MB / 1.172 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.943, allocations: 8.922 kB / 1.172 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.498e-05/0.9431, allocations: 42.73 kB / 1.172 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.11e-05/0.9432, allocations: 24.69 kB / 1.172 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.9434, allocations: 224.7 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.9434, allocations: 16.11 kB / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.293e-05/0.9434, allocations: 8 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000302/0.9437, allocations: 160.9 kB / 1.172 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.9438, allocations: 0 / 1.172 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.9438, allocations: 4 kB / 1.172 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.9438, allocations: 4 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.944, allocations: 75.88 kB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008418/0.9449, allocations: 432.6 kB / 1.173 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002928/0.9452, allocations: 154.4 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001364/0.9453, allocations: 68.81 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.9453, allocations: 4 kB / 1.173 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002852/0.9456, allocations: 171.2 kB / 1.173 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.9456, allocations: 0 / 1.173 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20): time 0.0006471/0.9463, allocations: 305.5 kB / 1.173 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.053e-05/0.9464, allocations: 93.03 kB / 1.173 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.9465, allocations: 174.4 kB / 1.173 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.205e-05/0.9466, allocations: 41.69 kB / 1.174 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.203e-05/0.9466, allocations: 108.6 kB / 1.174 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.482e-05/0.9467, allocations: 59.28 kB / 1.174 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-05/0.9468, allocations: 53.98 kB / 1.174 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.9469, allocations: 338.8 kB / 1.174 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.947, allocations: 84.44 kB / 1.174 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.9473, allocations: 174.5 kB / 1.174 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003581/0.9476, allocations: 267.8 kB / 1.175 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.9476, allocations: 0 / 1.175 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004708/0.9481, allocations: 297 kB / 1.175 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.9481, allocations: 8 kB / 1.175 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.9481, allocations: 0 / 1.175 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.9482, allocations: 11.94 kB / 1.175 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.9483, allocations: 43.86 kB / 1.175 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.9484, allocations: 7.984 kB / 1.175 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.9485, allocations: 24.22 kB / 1.175 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.9485, allocations: 15.94 kB / 1.175 GB, free: 10.41 MB / 0.9044 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.0001482/0.9486, allocations: 152 kB / 1.175 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.685e-05/0.9487, allocations: 23.78 kB / 1.175 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.79e-05/0.9487, allocations: 17.88 kB / 1.175 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.9488, allocations: 4 kB / 1.175 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.9488, allocations: 0 / 1.175 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.9488, allocations: 7.984 kB / 1.175 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008313/0.9496, allocations: 0.5824 MB / 1.176 GB, free: 9.559 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.9496, allocations: 96 / 1.176 GB, free: 9.559 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.895e-05/0.9497, allocations: 19.92 kB / 1.176 GB, free: 9.539 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.9497, allocations: 0 / 1.176 GB, free: 9.539 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.9498, allocations: 15.92 kB / 1.176 GB, free: 9.523 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.9498, allocations: 3.938 kB / 1.176 GB, free: 9.52 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.9498, allocations: 4 kB / 1.176 GB, free: 9.516 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006543/0.9504, allocations: 430.6 kB / 1.176 GB, free: 9.078 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.584e-05/0.9505, allocations: 93 kB / 1.176 GB, free: 8.969 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.772e-05/0.9505, allocations: 15.94 kB / 1.176 GB, free: 8.953 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.9507, allocations: 12.05 kB / 1.176 GB, free: 8.941 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.825e-05/0.9507, allocations: 19.97 kB / 1.176 GB, free: 8.922 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.9508, allocations: 12 kB / 1.176 GB, free: 8.91 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.234e-05/0.9509, allocations: 120.2 kB / 1.176 GB, free: 8.793 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9509, allocations: 0 / 1.176 GB, free: 8.793 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000476/0.9514, allocations: 111.8 kB / 1.177 GB, free: 8.684 MB / 0.9044 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.001673/0.953, allocations: 1.303 MB / 1.178 GB, free: 7.469 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004168/0.9535, allocations: 192.3 kB / 1.178 GB, free: 7.281 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.9535, allocations: 4.125 kB / 1.178 GB, free: 7.277 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001709/0.9537, allocations: 85.44 kB / 1.178 GB, free: 7.195 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.954, allocations: 34.78 kB / 1.178 GB, free: 7.164 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002675/0.9567, allocations: 2.409 MB / 1.18 GB, free: 4.598 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.957, allocations: 0.7242 MB / 1.181 GB, free: 3.848 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001085/0.9571, allocations: 49.5 kB / 1.181 GB, free: 3.801 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.317e-05/0.9572, allocations: 47.41 kB / 1.181 GB, free: 3.754 MB / 0.9044 GB Notification: Performance of SimCode: time 8.42e-07/0.9572, allocations: 0 / 1.181 GB, free: 3.754 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0249/0.9821, allocations: 5.597 MB / 1.187 GB, free: 14.18 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.537/9.519, allocations: 16.84 kB / 1.187 GB, free: 14.16 MB / 0.92 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_10_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat does not exist to compare? outputFormat=mat