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.301/1.301, allocations: 251.5 MB / 266.7 MB, free: 11.06 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.0009669/0.0009669, allocations: 167.9 kB / 325.8 MB, free: 2.746 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.523/1.523, allocations: 205 MB / 0.576 GB, free: 21 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.0007274/0.0007274, allocations: 90.05 kB / 0.6797 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003444, allocations: 11.56 kB / 0.7933 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2282, allocations: 105.4 MB / 0.8962 GB, free: 68.17 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Examples.KalmanFilter): time 0.001888/0.2301, allocations: 1.471 MB / 0.8976 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002083/0.2322, allocations: 1.838 MB / 0.8994 GB, free: 64.84 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.719e-05/0.2323, allocations: 7.938 kB / 0.8994 GB, free: 64.83 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.2325, allocations: 19.86 kB / 0.8995 GB, free: 64.81 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.2326, allocations: 27.84 kB / 0.8995 GB, free: 64.78 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.0009803/0.2336, allocations: 271.4 kB / 0.8997 GB, free: 64.52 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001964/0.2338, allocations: 203.5 kB / 0.8999 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.796e-05/0.2339, allocations: 29.55 kB / 0.9 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.234, allocations: 75.69 kB / 0.9 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.128e-05/0.2341, allocations: 71.61 kB / 0.9001 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.066e-05/0.2341, allocations: 4 kB / 0.9001 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003147/0.2344, allocations: 255.6 kB / 0.9003 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.69e-05/0.2345, allocations: 47.88 kB / 0.9004 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.648e-05/0.2346, allocations: 67.59 kB / 0.9005 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003397/0.2349, allocations: 359.1 kB / 0.9008 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.235, allocations: 0 / 0.9008 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.473e-06/0.235, allocations: 3.938 kB / 0.9008 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.235, allocations: 0 / 0.9008 GB, free: 63.42 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.0006511/0.2356, allocations: 0.4991 MB / 0.9013 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.2357, allocations: 12.02 kB / 0.9013 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.371e-05/0.2357, allocations: 42.69 kB / 0.9013 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.456e-05/0.2358, allocations: 24.73 kB / 0.9014 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001687/0.2359, allocations: 224.6 kB / 0.9016 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.236, allocations: 12.12 kB / 0.9016 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.132e-05/0.236, allocations: 16 kB / 0.9016 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002486/0.2363, allocations: 158.7 kB / 0.9018 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.2363, allocations: 0 / 0.9018 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.2363, allocations: 3.984 kB / 0.9018 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.2363, allocations: 4 kB / 0.9018 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.2365, allocations: 87.89 kB / 0.9019 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006607/0.2372, allocations: 440.5 kB / 0.9023 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002349/0.2374, allocations: 158.5 kB / 0.9024 GB, free: 61.6 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.2375, allocations: 87.62 kB / 0.9025 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.2376, allocations: 0 / 0.9025 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002331/0.2378, allocations: 175.3 kB / 0.9027 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=20): time 1.343e-06/0.2378, allocations: 0 / 0.9027 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20): time 0.0005439/0.2384, allocations: 321.7 kB / 0.903 GB, free: 61 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/0.2384, allocations: 89.09 kB / 0.9031 GB, free: 60.9 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.2385, allocations: 175.5 kB / 0.9032 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.2386, allocations: 37.7 kB / 0.9033 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.787e-05/0.2386, allocations: 108.6 kB / 0.9034 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.067e-05/0.2387, allocations: 59.25 kB / 0.9034 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/0.2387, allocations: 33.7 kB / 0.9035 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.511e-05/0.2388, allocations: 334.8 kB / 0.9038 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.2389, allocations: 84.5 kB / 0.9039 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.2391, allocations: 187.6 kB / 0.904 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.2394, allocations: 271.7 kB / 0.9043 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2394, allocations: 4 kB / 0.9043 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003831/0.2398, allocations: 301.2 kB / 0.9046 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.2398, allocations: 8 kB / 0.9046 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2398, allocations: 4 kB / 0.9046 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2398, allocations: 4 kB / 0.9046 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.24, allocations: 47.91 kB / 0.9047 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.24, allocations: 4 kB / 0.9047 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.758e-05/0.2401, allocations: 28 kB / 0.9047 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.2401, allocations: 15.94 kB / 0.9047 GB, free: 59.1 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,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.0001171/0.2402, allocations: 155.9 kB / 0.9048 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.777e-05/0.2403, allocations: 15.81 kB / 0.9049 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.284e-05/0.2403, allocations: 25.84 kB / 0.9049 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2403, allocations: 4 kB / 0.9049 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2403, allocations: 4 kB / 0.9049 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.2403, allocations: 4 kB / 0.9049 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006611/0.241, allocations: 0.5898 MB / 0.9055 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.241, allocations: 0 / 0.9055 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.084e-05/0.2411, allocations: 24.05 kB / 0.9055 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.2411, allocations: 7.938 kB / 0.9055 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.2412, allocations: 15.92 kB / 0.9055 GB, free: 58.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.2412, allocations: 0 / 0.9055 GB, free: 58.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2412, allocations: 0 / 0.9055 GB, free: 58.19 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005357/0.2417, allocations: 457.4 kB / 0.906 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.906e-05/0.2417, allocations: 88.95 kB / 0.906 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.643e-05/0.2418, allocations: 15.92 kB / 0.9061 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.2419, allocations: 15.98 kB / 0.9061 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.943e-05/0.242, allocations: 16.05 kB / 0.9061 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.242, allocations: 8 kB / 0.9061 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.29e-05/0.2421, allocations: 127.5 kB / 0.9062 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2421, allocations: 0 / 0.9062 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003664/0.2424, allocations: 104 kB / 0.9063 GB, free: 57.34 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.00136/0.2438, allocations: 1.299 MB / 0.9076 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003388/0.2442, allocations: 200.3 kB / 0.9078 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2442, allocations: 128 / 0.9078 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.2443, allocations: 98.48 kB / 0.9079 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.2446, allocations: 23.92 kB / 0.9079 GB, free: 55.8 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.002135/0.2468, allocations: 2.458 MB / 0.9103 GB, free: 53.18 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/0.2469, allocations: 0.7358 MB / 0.911 GB, free: 52.42 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.606e-05/0.247, allocations: 41.5 kB / 0.911 GB, free: 52.38 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.249e-05/0.2471, allocations: 47.42 kB / 0.9111 GB, free: 52.33 MB / 0.6042 GB Notification: Performance of SimCode: time 2.31e-07/0.2471, allocations: 3.938 kB / 0.9111 GB, free: 52.33 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3007/0.5478, allocations: 5.083 MB / 0.9161 GB, free: 47.36 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002035/0.5481, allocations: 291.6 kB / 0.9163 GB, free: 46.98 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/2.332, allocations: 8 kB / 0.9163 GB, free: 46.97 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)