Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001602/0.001602, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001951/0.001951, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.331/1.331, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.73/2.73, allocations: 469.4 MB / 0.742 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 60.72 kB / 0.9083 GB, free: 34.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2952, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter): time 0.003326/0.2985, allocations: 1.749 MB / 1.065 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002525/0.3011, allocations: 1.795 MB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.3012, allocations: 7.938 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001724/0.3014, allocations: 19.8 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.3016, allocations: 35.72 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.3029, allocations: 314.9 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002742/0.3031, allocations: 219.4 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.3033, allocations: 25.55 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.3034, allocations: 87.67 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.3035, allocations: 75.67 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.583e-05/0.3036, allocations: 8 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004707/0.3041, allocations: 267.6 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.3042, allocations: 51.83 kB / 1.068 GB, free: 9.852 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.386e-05/0.3043, allocations: 71.64 kB / 1.068 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004963/0.3048, allocations: 371.3 kB / 1.069 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3048, allocations: 4 kB / 1.069 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.873e-06/0.3048, allocations: 0 / 1.069 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.076e-06/0.3048, allocations: 0 / 1.069 GB, free: 9.414 MB / 0.8262 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.0008447/0.3057, allocations: 0.5145 MB / 1.069 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.3057, allocations: 12.03 kB / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.884e-05/0.3058, allocations: 46.72 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.531e-05/0.3058, allocations: 24.69 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.3061, allocations: 220.7 kB / 1.069 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.3061, allocations: 20.11 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.3061, allocations: 12 kB / 1.069 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003185/0.3065, allocations: 152.7 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.126e-06/0.3065, allocations: 0 / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.974e-05/0.3065, allocations: 4 kB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.3065, allocations: 0 / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000224/0.3068, allocations: 87.88 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008217/0.3076, allocations: 420.8 kB / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/0.3079, allocations: 162.3 kB / 1.07 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.3081, allocations: 72.81 kB / 1.07 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.3081, allocations: 4 kB / 1.07 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002921/0.3084, allocations: 158.7 kB / 1.07 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.864e-06/0.3084, allocations: 7.938 kB / 1.07 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20): time 0.0006636/0.3091, allocations: 311.6 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.582e-05/0.3091, allocations: 89.08 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.3093, allocations: 172.1 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.898e-05/0.3093, allocations: 45.69 kB / 1.071 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.023e-05/0.3094, allocations: 108.5 kB / 1.071 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.57e-05/0.3095, allocations: 51.48 kB / 1.071 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.382e-05/0.3096, allocations: 65.98 kB / 1.071 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.3097, allocations: 338.8 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.3099, allocations: 80.44 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.3101, allocations: 177.9 kB / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004117/0.3105, allocations: 267.8 kB / 1.072 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3105, allocations: 0 / 1.072 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004924/0.311, allocations: 297.4 kB / 1.072 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.311, allocations: 8 kB / 1.072 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.3111, allocations: 4 kB / 1.072 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.3111, allocations: 8 kB / 1.072 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.3112, allocations: 39.86 kB / 1.072 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.3113, allocations: 11.92 kB / 1.072 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.3114, allocations: 19.84 kB / 1.072 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.138e-05/0.3114, allocations: 19.94 kB / 1.072 GB, free: 5.113 MB / 0.8262 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.0001475/0.3116, allocations: 156 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.716e-05/0.3116, allocations: 19.8 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.999e-05/0.3117, allocations: 17.88 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.3117, allocations: 4 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3117, allocations: 0 / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.3117, allocations: 4.078 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008586/0.3126, allocations: 0.5879 MB / 1.073 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3126, allocations: 0 / 1.073 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001079/0.3127, allocations: 19.98 kB / 1.073 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.3127, allocations: 0 / 1.073 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.3127, allocations: 11.92 kB / 1.073 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.3127, allocations: 3.938 kB / 1.073 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3127, allocations: 0 / 1.073 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006552/0.3134, allocations: 433.7 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.777e-05/0.3135, allocations: 92.89 kB / 1.074 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.584e-05/0.3135, allocations: 23.98 kB / 1.074 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.3137, allocations: 11.98 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.88e-05/0.3137, allocations: 11.98 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.983e-05/0.3137, allocations: 11.98 kB / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.85e-05/0.3138, allocations: 123.3 kB / 1.074 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3138, allocations: 0 / 1.074 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004962/0.3143, allocations: 111.9 kB / 1.074 GB, free: 3.391 MB / 0.8262 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.001751/0.3161, allocations: 1.306 MB / 1.075 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004619/0.3166, allocations: 231.5 kB / 1.076 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3166, allocations: 4 kB / 1.076 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001692/0.3168, allocations: 80.64 kB / 1.076 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.3171, allocations: 38.14 kB / 1.076 GB, free: 1.832 MB / 0.8262 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/legal.html") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002814/0.3199, allocations: 2.379 MB / 1.078 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/0.3202, allocations: 0.7281 MB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001209/0.3204, allocations: 45.5 kB / 1.079 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.881e-05/0.3205, allocations: 47.42 kB / 1.079 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of SimCode: time 2.9e-07/0.3205, allocations: 0 / 1.079 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6201/0.9406, allocations: 5.508 MB / 1.084 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.384/8.325, allocations: 4.938 kB / 1.084 GB, free: 9 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_IO_Python_3_8_Examples_KalmanFilter.fmu > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.KalmanFilter.pipe 2>&1)