Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Examples_KalmanFilter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Examples_KalmanFilter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.275/1.275, allocations: 252 MB / 267.3 MB, free: 10.85 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008931/0.000893, allocations: 179.1 kB / 327 MB, free: 2.102 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.675/1.675, allocations: 205.4 MB / 0.578 GB, free: 20.13 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007991/0.0007991, allocations: 80.27 kB / 0.6826 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.0003861, allocations: 13.2 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2146, allocations: 106.3 MB / 0.9009 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Examples.KalmanFilter): time 0.001971/0.2166, allocations: 1.45 MB / 0.9023 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002274/0.219, allocations: 1.811 MB / 0.9041 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.2191, allocations: 3.938 kB / 0.9041 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001739/0.2193, allocations: 27.8 kB / 0.9041 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001382/0.2194, allocations: 23.84 kB / 0.9041 GB, free: 60.05 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Utilities/IO/Python36/Functions/exchange.mo:2:1-113:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python36.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.001263/0.2207, allocations: 273.7 kB / 0.9044 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002633/0.221, allocations: 207.4 kB / 0.9046 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.159e-05/0.2211, allocations: 21.55 kB / 0.9046 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.2212, allocations: 75.69 kB / 0.9047 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001113/0.2213, allocations: 67.67 kB / 0.9048 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.379e-05/0.2214, allocations: 12 kB / 0.9048 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004372/0.2218, allocations: 255.6 kB / 0.905 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.2219, allocations: 55.81 kB / 0.9051 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.482e-05/0.222, allocations: 89.36 kB / 0.9052 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004776/0.2225, allocations: 363 kB / 0.9055 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.2225, allocations: 0 / 0.9055 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2225, allocations: 0 / 0.9055 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.2225, allocations: 0 / 0.9055 GB, free: 58.65 MB / 0.6042 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.0007722/0.2233, allocations: 0.4955 MB / 0.906 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.2234, allocations: 12.03 kB / 0.906 GB, free: 58.1 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.85e-05/0.2234, allocations: 42.75 kB / 0.906 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.603e-05/0.2235, allocations: 20.73 kB / 0.9061 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002038/0.2237, allocations: 224.6 kB / 0.9063 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.2237, allocations: 20.12 kB / 0.9063 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.596e-05/0.2238, allocations: 15.98 kB / 0.9063 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/0.224, allocations: 150.5 kB / 0.9065 GB, free: 57.58 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.2241, allocations: 0 / 0.9065 GB, free: 57.58 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/0.2241, allocations: 7.984 kB / 0.9065 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2241, allocations: 0 / 0.9065 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000194/0.2243, allocations: 95.83 kB / 0.9066 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008139/0.2251, allocations: 436.7 kB / 0.907 GB, free: 57 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002618/0.2254, allocations: 150.5 kB / 0.9071 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.2255, allocations: 72.81 kB / 0.9072 GB, free: 56.77 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.201e-05/0.2256, allocations: 11.92 kB / 0.9072 GB, free: 56.76 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002634/0.2259, allocations: 169 kB / 0.9074 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=20): time 1.914e-06/0.2259, allocations: 0 / 0.9074 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20): time 0.0006075/0.2265, allocations: 327.7 kB / 0.9077 GB, free: 56.25 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.2265, allocations: 85.11 kB / 0.9077 GB, free: 56.15 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.2267, allocations: 171.5 kB / 0.9079 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.2267, allocations: 45.69 kB / 0.908 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/0.2268, allocations: 116.4 kB / 0.9081 GB, free: 55.8 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.649e-05/0.2268, allocations: 63.3 kB / 0.9081 GB, free: 55.74 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.121e-05/0.2268, allocations: 4 kB / 0.9081 GB, free: 55.73 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.879e-05/0.2269, allocations: 330.8 kB / 0.9084 GB, free: 55.4 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.2271, allocations: 84.5 kB / 0.9085 GB, free: 55.32 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.2273, allocations: 185.9 kB / 0.9087 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003253/0.2276, allocations: 267.8 kB / 0.909 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2276, allocations: 4 kB / 0.909 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004121/0.228, allocations: 297.1 kB / 0.9092 GB, free: 54.49 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2281, allocations: 8 kB / 0.9093 GB, free: 54.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.2281, allocations: 4 kB / 0.9093 GB, free: 54.48 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.2281, allocations: 4.375 kB / 0.9093 GB, free: 54.47 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.2282, allocations: 47.91 kB / 0.9093 GB, free: 54.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.2283, allocations: 7.938 kB / 0.9093 GB, free: 54.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.2284, allocations: 27.84 kB / 0.9093 GB, free: 54.39 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.2284, allocations: 11.94 kB / 0.9094 GB, free: 54.38 MB / 0.6042 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,$PRE.kalFil.firstTrigger,kalFil.firstTrigger,$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRIntPre[1],kalFil.uRIntPre[1],$PRE.ran.firstTrigger,ran.firstTrigger,$PRE.ran.uRIntPre[1],ran.uRIntPre[1],$whenCondition1,ran.sampleTrigger,$PRE.ran.uRWri[1],ran.uRWri[1],$PRE.ran.uRWri_temp[1],ran.uRWri_temp[1],$whenCondition2,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],$PRE.kalFil.uRWri_temp[1],kalFil.uRWri_temp[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.0001299/0.2285, allocations: 156 kB / 0.9095 GB, free: 54.21 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.2286, allocations: 19.75 kB / 0.9095 GB, free: 54.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.152e-05/0.2286, allocations: 25.86 kB / 0.9095 GB, free: 54.17 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2286, allocations: 0 / 0.9095 GB, free: 54.17 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.2286, allocations: 0 / 0.9095 GB, free: 54.17 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.2287, allocations: 4 kB / 0.9095 GB, free: 54.17 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008034/0.2295, allocations: 0.5935 MB / 0.9101 GB, free: 53.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.2295, allocations: 4.062 kB / 0.9101 GB, free: 53.52 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.986e-05/0.2296, allocations: 19.98 kB / 0.9102 GB, free: 53.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.2296, allocations: 0 / 0.9102 GB, free: 53.5 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/0.2296, allocations: 12.02 kB / 0.9102 GB, free: 53.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.2296, allocations: 3.938 kB / 0.9102 GB, free: 53.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2296, allocations: 0 / 0.9102 GB, free: 53.48 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006434/0.2303, allocations: 457.7 kB / 0.9106 GB, free: 53.02 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.292e-05/0.2304, allocations: 96.89 kB / 0.9107 GB, free: 52.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.849e-05/0.2304, allocations: 11.92 kB / 0.9107 GB, free: 52.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.2305, allocations: 24.05 kB / 0.9107 GB, free: 52.87 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.738e-05/0.2306, allocations: 7.984 kB / 0.9107 GB, free: 52.86 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.2306, allocations: 15.98 kB / 0.9108 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.26e-05/0.2307, allocations: 123.5 kB / 0.9109 GB, free: 52.72 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.2307, allocations: 0 / 0.9109 GB, free: 52.72 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004495/0.2312, allocations: 108 kB / 0.911 GB, free: 52.62 MB / 0.6042 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.001697/0.2329, allocations: 1.3 MB / 0.9122 GB, free: 51.4 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004204/0.2333, allocations: 207.8 kB / 0.9124 GB, free: 51.2 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.2333, allocations: 0 / 0.9124 GB, free: 51.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.2335, allocations: 87.89 kB / 0.9125 GB, free: 51.11 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.2339, allocations: 26.91 kB / 0.9125 GB, free: 51.09 MB / 0.6042 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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.002453/0.2363, allocations: 2.481 MB / 0.915 GB, free: 48.43 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001608/0.2365, allocations: 0.7281 MB / 0.9157 GB, free: 47.68 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001024/0.2366, allocations: 53.36 kB / 0.9157 GB, free: 47.63 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.419e-05/0.2367, allocations: 51.42 kB / 0.9158 GB, free: 47.58 MB / 0.6042 GB Notification: Performance of SimCode: time 4.71e-07/0.2367, allocations: 0 / 0.9158 GB, free: 47.58 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2679/0.5046, allocations: 5.08 MB / 0.9207 GB, free: 42.61 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.5048, allocations: 284.3 kB / 0.921 GB, free: 42.23 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/2.218, allocations: 4.062 kB / 0.921 GB, free: 42.23 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Examples_KalmanFilter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Examples_KalmanFilter.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe 2>&1)