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.005192/0.005192, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.001277/0.001277, allocations: 198.4 kB / 16.68 MB, free: 5.938 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 15.13 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.223/2.223, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 63.91 kB / 0.9504 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7984/0.8005, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002825/0.8034, allocations: 1.737 MB / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002512/0.8059, allocations: 1.806 MB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.135e-05/0.806, allocations: 1.031 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.8062, allocations: 24.14 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.8063, allocations: 33.86 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.8075, allocations: 312.5 kB / 1.091 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002963/0.8078, allocations: 213.7 kB / 1.091 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.808, allocations: 33.84 kB / 1.091 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.8081, allocations: 84.23 kB / 1.092 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.8083, allocations: 79.36 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.136e-05/0.8083, allocations: 11.44 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004923/0.8088, allocations: 275.7 kB / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.809, allocations: 57.67 kB / 1.092 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.03e-05/0.809, allocations: 70.72 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005482/0.8096, allocations: 378.2 kB / 1.092 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.8096, allocations: 0.7969 kB / 1.092 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.502e-06/0.8096, allocations: 0.9062 kB / 1.092 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.8096, allocations: 0 / 1.092 GB, free: 2.145 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.0008142/0.8105, allocations: 0.517 MB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.8105, allocations: 10.05 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.965e-05/0.8106, allocations: 45.61 kB / 1.093 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.515e-05/0.8106, allocations: 18.45 kB / 1.093 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.8108, allocations: 228.3 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.8109, allocations: 14.58 kB / 1.093 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/0.8109, allocations: 13.53 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.8113, allocations: 150.5 kB / 1.093 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.8113, allocations: 4.75 kB / 1.093 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.17e-05/0.8113, allocations: 6.75 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.8113, allocations: 9.562 kB / 1.093 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002249/0.8115, allocations: 78.48 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008426/0.8124, allocations: 438.3 kB / 1.094 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/0.8127, allocations: 154.6 kB / 1.094 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.8129, allocations: 69 kB / 1.094 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.8129, allocations: 6.797 kB / 1.094 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003799/0.8133, allocations: 163.7 kB / 1.094 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.8133, allocations: 0 / 1.094 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20): time 0.0007673/0.8141, allocations: 313.4 kB / 1.095 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.181e-05/0.8142, allocations: 87.38 kB / 1.095 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.8144, allocations: 174.3 kB / 1.095 GB, free: 444 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.407e-05/0.8144, allocations: 41.02 kB / 1.095 GB, free: 404 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.331e-05/0.8145, allocations: 111 kB / 1.095 GB, free: 300 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.312e-05/0.8145, allocations: 61.8 kB / 1.095 GB, free: 252 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.575e-05/0.8146, allocations: 58 kB / 1.095 GB, free: 212 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.8147, allocations: 339.1 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.8149, allocations: 77.12 kB / 1.095 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002673/0.8152, allocations: 173.3 kB / 1.096 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000451/0.8157, allocations: 266.6 kB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.8157, allocations: 0.8125 kB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000579/0.8163, allocations: 293.3 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.8163, allocations: 7.5 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.8163, allocations: 7.562 kB / 1.096 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.8163, allocations: 4.359 kB / 1.096 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.8165, allocations: 42.36 kB / 1.096 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.519e-05/0.8166, allocations: 10.16 kB / 1.096 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.8167, allocations: 22.12 kB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.938e-05/0.8167, allocations: 18.02 kB / 1.096 GB, free: 15.37 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.0001888/0.8169, allocations: 158.3 kB / 1.096 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.628e-05/0.817, allocations: 21.62 kB / 1.096 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.381e-05/0.817, allocations: 20.22 kB / 1.096 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.817, allocations: 2.375 kB / 1.096 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.8171, allocations: 1.203 kB / 1.096 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.8171, allocations: 1.453 kB / 1.096 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009885/0.8181, allocations: 0.577 MB / 1.097 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.8181, allocations: 17.09 kB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.8182, allocations: 13.84 kB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.8182, allocations: 2.312 kB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.112e-05/0.8182, allocations: 14.3 kB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.8182, allocations: 0.6875 kB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.8183, allocations: 0.75 kB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007851/0.819, allocations: 441.3 kB / 1.097 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.832e-05/0.8191, allocations: 90.78 kB / 1.098 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/0.8192, allocations: 15.16 kB / 1.098 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.8193, allocations: 10.8 kB / 1.098 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.039e-05/0.8194, allocations: 15.73 kB / 1.098 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.284e-05/0.8194, allocations: 14.23 kB / 1.098 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001165/0.8195, allocations: 119.7 kB / 1.098 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.7e-07/0.8195, allocations: 4.062 kB / 1.098 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006023/0.8201, allocations: 109.3 kB / 1.098 GB, free: 14.33 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.002161/0.8223, allocations: 1.3 MB / 1.099 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005172/0.8228, allocations: 203.3 kB / 1.099 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.8229, allocations: 0.9688 kB / 1.099 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001961/0.8231, allocations: 83.8 kB / 1.099 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003887/0.8235, allocations: 39.59 kB / 1.099 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.8267, allocations: 2.401 MB / 1.102 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.8271, allocations: 0.7279 MB / 1.102 GB, free: 10.87 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001568/0.8273, allocations: 45.44 kB / 1.103 GB, free: 10.87 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.618e-05/0.8274, allocations: 50.72 kB / 1.103 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of SimCode: time 6.42e-07/0.8274, allocations: 0 / 1.103 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03135/0.8587, allocations: 5.677 MB / 1.108 GB, free: 9.883 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.14/8.999, allocations: 6.047 kB / 1.108 GB, free: 9.883 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