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.006957/0.006957, allocations: 100.1 kB / 15.73 MB, free: 6.062 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.001645/0.001645, allocations: 192.6 kB / 16.67 MB, free: 5.973 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.228/2.228, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.91 kB / 0.9504 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7641/0.7656, allocations: 140.4 MB / 1.087 GB, free: 5.246 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.002822/0.7684, allocations: 1.738 MB / 1.089 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002305/0.7707, allocations: 1.805 MB / 1.091 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.025e-05/0.7708, allocations: 1.375 kB / 1.091 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.771, allocations: 31.94 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001167/0.7711, allocations: 21.31 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.7722, allocations: 339.4 kB / 1.091 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002847/0.7725, allocations: 214.3 kB / 1.091 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.7727, allocations: 29.81 kB / 1.092 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.7728, allocations: 84.16 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001191/0.7729, allocations: 80.12 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.773, allocations: 10.38 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004496/0.7734, allocations: 284.3 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.7735, allocations: 57.77 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.628e-05/0.7736, allocations: 66.11 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005078/0.7741, allocations: 371.7 kB / 1.092 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.7741, allocations: 4.734 kB / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.232e-06/0.7742, allocations: 5.281 kB / 1.092 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.087e-05/0.7742, allocations: 0 / 1.092 GB, free: 2.102 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.0007612/0.7749, allocations: 0.5239 MB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.775, allocations: 10.14 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.411e-05/0.775, allocations: 42.03 kB / 1.093 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.24e-05/0.7751, allocations: 18.64 kB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.7753, allocations: 235 kB / 1.093 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.7753, allocations: 15.08 kB / 1.093 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.037e-05/0.7753, allocations: 14.08 kB / 1.093 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003301/0.7757, allocations: 149.4 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.7757, allocations: 0 / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/0.7757, allocations: 2.891 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.7757, allocations: 2.5 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.776, allocations: 94.44 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008147/0.7768, allocations: 425.7 kB / 1.094 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003094/0.7771, allocations: 147.4 kB / 1.094 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.7773, allocations: 76.27 kB / 1.094 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.7773, allocations: 2.156 kB / 1.094 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002962/0.7776, allocations: 164.1 kB / 1.094 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 1.673e-06/0.7776, allocations: 0.7812 kB / 1.094 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20): time 0.0007294/0.7784, allocations: 312.9 kB / 1.095 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.7784, allocations: 91.05 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.7786, allocations: 177.6 kB / 1.095 GB, free: 396 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.7786, allocations: 37.83 kB / 1.095 GB, free: 360 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.545e-05/0.7787, allocations: 110.8 kB / 1.095 GB, free: 256 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.38e-05/0.7787, allocations: 57.98 kB / 1.095 GB, free: 212 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.145e-05/0.7788, allocations: 57.41 kB / 1.095 GB, free: 172 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.7789, allocations: 339.2 kB / 1.095 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.7791, allocations: 77.11 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002491/0.7794, allocations: 186.3 kB / 1.096 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004232/0.7798, allocations: 261.4 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.7798, allocations: 6.094 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005519/0.7804, allocations: 292.9 kB / 1.096 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.7804, allocations: 6.125 kB / 1.096 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.7804, allocations: 8.797 kB / 1.096 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.7804, allocations: 4.812 kB / 1.096 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.7806, allocations: 42.61 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/0.7806, allocations: 9.797 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.7808, allocations: 21.58 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.471e-05/0.7808, allocations: 18.31 kB / 1.096 GB, free: 15.32 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.000162/0.781, allocations: 150.1 kB / 1.096 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.178e-05/0.781, allocations: 18.17 kB / 1.096 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.926e-05/0.7811, allocations: 23.52 kB / 1.096 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.7811, allocations: 2.531 kB / 1.096 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.7811, allocations: 2.062 kB / 1.096 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.7811, allocations: 4.688 kB / 1.096 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009616/0.7821, allocations: 0.5876 MB / 1.097 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/0.7821, allocations: 0.5625 kB / 1.097 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.7822, allocations: 18.09 kB / 1.097 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.7822, allocations: 5.938 kB / 1.097 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.7822, allocations: 10.02 kB / 1.097 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.7822, allocations: 1.359 kB / 1.097 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.7822, allocations: 1.094 kB / 1.097 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008141/0.7831, allocations: 436.8 kB / 1.098 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.304e-05/0.7832, allocations: 94.78 kB / 1.098 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7e-05/0.7832, allocations: 15.8 kB / 1.098 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.7835, allocations: 14.41 kB / 1.098 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.187e-05/0.7836, allocations: 11.56 kB / 1.098 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-05/0.7836, allocations: 17.95 kB / 1.098 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000153/0.7838, allocations: 119.9 kB / 1.098 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.51e-07/0.7838, allocations: 1.125 kB / 1.098 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0008332/0.7847, allocations: 112 kB / 1.098 GB, free: 14.29 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.002548/0.7872, allocations: 1.301 MB / 1.099 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005811/0.7878, allocations: 205.2 kB / 1.099 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.7878, allocations: 1.094 kB / 1.099 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002833/0.7881, allocations: 84.08 kB / 1.099 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005652/0.7887, allocations: 29.25 kB / 1.099 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003221/0.7919, allocations: 2.412 MB / 1.102 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.7924, allocations: 0.7281 MB / 1.103 GB, free: 10.81 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001925/0.7926, allocations: 56.12 kB / 1.103 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.7927, allocations: 46.48 kB / 1.103 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of SimCode: time 5.31e-07/0.7927, allocations: 7.875 kB / 1.103 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03638/0.8291, allocations: 5.582 MB / 1.108 GB, free: 9.852 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.151/8.98, allocations: 13.81 kB / 1.108 GB, free: 9.844 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 & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1)