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: "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter,fileNamePrefix="Buildings_9_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_9_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.006666/0.006666, allocations: 99.31 kB / 15.73 MB, free: 6.051 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.001945/0.001945, allocations: 188.9 kB / 16.67 MB, free: 5.977 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.396/2.396, allocations: 390.2 MB / 0.6648 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 61.97 kB / 0.9504 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2604, allocations: 140.4 MB / 1.087 GB, free: 2.035 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003075/0.2635, allocations: 1.739 MB / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002589/0.2661, allocations: 1.802 MB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.2663, allocations: 3.938 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.2665, allocations: 31.78 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001338/0.2666, allocations: 23.73 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001291/0.2679, allocations: 320.1 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003037/0.2682, allocations: 223.4 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.2683, allocations: 33.52 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.2685, allocations: 79.75 kB / 1.092 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.2686, allocations: 79.61 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.452e-05/0.2687, allocations: 8 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004614/0.2691, allocations: 283.5 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.2693, allocations: 59.8 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.989e-05/0.2693, allocations: 63.67 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005201/0.2699, allocations: 373.9 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2699, allocations: 4 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2699, allocations: 0 / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.714e-06/0.2699, allocations: 4 kB / 1.092 GB, free: 12.92 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.000849/0.2708, allocations: 0.5153 MB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.2708, allocations: 8.031 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.315e-05/0.2709, allocations: 50.67 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.587e-05/0.2709, allocations: 20.75 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/0.2712, allocations: 224.7 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.2712, allocations: 16.12 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.645e-05/0.2712, allocations: 16 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002943/0.2715, allocations: 148.4 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.2716, allocations: 0 / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.2716, allocations: 4 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.2716, allocations: 7.984 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.2718, allocations: 79.89 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008032/0.2726, allocations: 428.6 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002924/0.2729, allocations: 166.4 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.2731, allocations: 69.12 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.2731, allocations: 7.906 kB / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002885/0.2734, allocations: 163.1 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 2.114e-06/0.2734, allocations: 0 / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20): time 0.0006428/0.2741, allocations: 310.9 kB / 1.095 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/0.2741, allocations: 89.11 kB / 1.095 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.2743, allocations: 171.9 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.2743, allocations: 41.64 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.959e-05/0.2744, allocations: 116.5 kB / 1.095 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.866e-05/0.2745, allocations: 55.33 kB / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.841e-05/0.2745, allocations: 61.92 kB / 1.095 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.2747, allocations: 334.8 kB / 1.095 GB, free: 9.621 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.2748, allocations: 76.52 kB / 1.095 GB, free: 9.547 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.2751, allocations: 181.9 kB / 1.096 GB, free: 9.324 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003587/0.2754, allocations: 259.8 kB / 1.096 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.2754, allocations: 0 / 1.096 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005084/0.276, allocations: 297 kB / 1.096 GB, free: 8.73 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.276, allocations: 10.34 kB / 1.096 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.276, allocations: 4 kB / 1.096 GB, free: 8.719 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.276, allocations: 4 kB / 1.096 GB, free: 8.715 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.2762, allocations: 52.22 kB / 1.096 GB, free: 8.664 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.669e-06/0.2762, allocations: 4 kB / 1.096 GB, free: 8.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.2763, allocations: 27.83 kB / 1.096 GB, free: 8.633 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.2763, allocations: 11.94 kB / 1.096 GB, free: 8.621 MB / 0.8575 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.000161/0.2765, allocations: 156 kB / 1.096 GB, free: 8.457 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.831e-05/0.2766, allocations: 19.75 kB / 1.096 GB, free: 8.438 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.919e-05/0.2766, allocations: 25.86 kB / 1.096 GB, free: 8.414 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2766, allocations: 4 kB / 1.096 GB, free: 8.41 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/0.2766, allocations: 3.984 kB / 1.096 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2766, allocations: 0 / 1.096 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008387/0.2775, allocations: 0.5765 MB / 1.097 GB, free: 7.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.2775, allocations: 3.984 kB / 1.097 GB, free: 7.77 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.811e-05/0.2776, allocations: 12 kB / 1.097 GB, free: 7.758 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.2776, allocations: 0 / 1.097 GB, free: 7.758 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.752e-05/0.2776, allocations: 27.92 kB / 1.097 GB, free: 7.73 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.2777, allocations: 4 kB / 1.097 GB, free: 7.727 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2777, allocations: 0 / 1.097 GB, free: 7.727 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006303/0.2783, allocations: 434.8 kB / 1.097 GB, free: 7.285 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.646e-05/0.2784, allocations: 92.86 kB / 1.098 GB, free: 7.176 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.2784, allocations: 19.98 kB / 1.098 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.2785, allocations: 11.98 kB / 1.098 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.067e-05/0.2786, allocations: 11.98 kB / 1.098 GB, free: 7.133 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.7e-05/0.2786, allocations: 11.98 kB / 1.098 GB, free: 7.121 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.646e-05/0.2787, allocations: 123.2 kB / 1.098 GB, free: 7 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2787, allocations: 0 / 1.098 GB, free: 7 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004441/0.2792, allocations: 108 kB / 1.098 GB, free: 6.895 MB / 0.8575 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.00164/0.2808, allocations: 1.309 MB / 1.099 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004024/0.2812, allocations: 199.7 kB / 1.099 GB, free: 5.477 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2812, allocations: 0 / 1.099 GB, free: 5.477 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000162/0.2814, allocations: 84.08 kB / 1.099 GB, free: 5.395 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.2818, allocations: 27.92 kB / 1.099 GB, free: 5.367 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002701/0.2845, allocations: 2.398 MB / 1.102 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.2848, allocations: 0.7242 MB / 1.102 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001108/0.2849, allocations: 49.5 kB / 1.103 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.095e-05/0.285, allocations: 47.42 kB / 1.103 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of SimCode: time 3.81e-07/0.285, allocations: 0 / 1.103 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/0.3095, allocations: 5.668 MB / 1.108 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.757/8.066, allocations: 15.92 kB / 1.108 GB, free: 12.3 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter_res.mat does not exist to compare? outputFormat=mat