Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.799/2.799, allocations: 287.5 MB / 302.4 MB, free: 8.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001289/0.001289, allocations: 178.5 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.131/2.131, allocations: 205.4 MB / 0.6297 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009275/0.0009273, allocations: 99.97 kB / 0.743 GB, free: 6.609 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007353/0.0007356, allocations: 12.67 kB / 0.8658 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2282, allocations: 115.3 MB / 0.9784 GB, free: 28.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Examples.KalmanFilter): time 0.00215/0.2304, allocations: 1.42 MB / 0.9797 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003004/0.2334, allocations: 1.73 MB / 0.9814 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.504e-05/0.2335, allocations: 0 / 0.9814 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.2337, allocations: 19.86 kB / 0.9814 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001435/0.2339, allocations: 23.78 kB / 0.9815 GB, free: 25.14 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.00104/0.2349, allocations: 263.4 kB / 0.9817 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002835/0.2352, allocations: 191.5 kB / 0.9819 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.2354, allocations: 17.56 kB / 0.9819 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.2355, allocations: 79.67 kB / 0.982 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.2357, allocations: 63.69 kB / 0.9821 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.136e-05/0.2357, allocations: 4 kB / 0.9821 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005895/0.2363, allocations: 231.6 kB / 0.9823 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.2364, allocations: 55.88 kB / 0.9823 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.61e-05/0.2365, allocations: 53.62 kB / 0.9824 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004233/0.2369, allocations: 255.8 kB / 0.9826 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.237, allocations: 0 / 0.9826 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.174e-06/0.237, allocations: 0 / 0.9826 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.237, allocations: 0 / 0.9826 GB, free: 23.95 MB / 0.6198 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.0009857/0.238, allocations: 0.4988 MB / 0.9831 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.238, allocations: 12.02 kB / 0.9831 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.026e-05/0.2381, allocations: 27.75 kB / 0.9832 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002537/0.2384, allocations: 219.5 kB / 0.9834 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.2384, allocations: 4.188 kB / 0.9834 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.044e-05/0.2385, allocations: 19.98 kB / 0.9834 GB, free: 23.08 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004156/0.2389, allocations: 156.9 kB / 0.9835 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.2389, allocations: 3.984 kB / 0.9835 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.239, allocations: 11.92 kB / 0.9835 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.239, allocations: 4 kB / 0.9836 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003282/0.2393, allocations: 85.78 kB / 0.9836 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.2405, allocations: 428.9 kB / 0.984 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004153/0.2409, allocations: 158.4 kB / 0.9842 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.2412, allocations: 77.12 kB / 0.9843 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.2412, allocations: 4 kB / 0.9843 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004302/0.2417, allocations: 170.8 kB / 0.9844 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=20): time 3.116e-06/0.2417, allocations: 0 / 0.9844 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of matching and sorting (n=20): time 0.0009586/0.2427, allocations: 323.4 kB / 0.9847 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.2427, allocations: 89.11 kB / 0.9848 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.2429, allocations: 174.8 kB / 0.985 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.041e-05/0.2429, allocations: 37.69 kB / 0.985 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.038e-05/0.243, allocations: 112.5 kB / 0.9851 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.389e-05/0.2431, allocations: 55.33 kB / 0.9852 GB, free: 21.1 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.482e-05/0.2431, allocations: 7.938 kB / 0.9852 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.28e-05/0.2432, allocations: 334.8 kB / 0.9855 GB, free: 20.76 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002382/0.2434, allocations: 84.5 kB / 0.9856 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.2437, allocations: 185.9 kB / 0.9858 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002949/0.2441, allocations: 103.9 kB / 0.9859 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.2441, allocations: 4 kB / 0.9859 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007438/0.2448, allocations: 305 kB / 0.9862 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.2449, allocations: 4 kB / 0.9862 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.2449, allocations: 8.062 kB / 0.9862 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.85e-05/0.2449, allocations: 8 kB / 0.9862 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.2452, allocations: 36.3 kB / 0.9862 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/0.2452, allocations: 15.92 kB / 0.9862 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/0.2454, allocations: 31.75 kB / 0.9863 GB, free: 19.94 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.2454, allocations: 12 kB / 0.9863 GB, free: 19.93 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001984/0.2457, allocations: 155.9 kB / 0.9864 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.186e-05/0.2457, allocations: 23.89 kB / 0.9865 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.839e-05/0.2458, allocations: 21.81 kB / 0.9865 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.2458, allocations: 4 kB / 0.9865 GB, free: 19.72 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.2458, allocations: 0 / 0.9865 GB, free: 19.72 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.2458, allocations: 3.984 kB / 0.9865 GB, free: 19.72 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.247, allocations: 0.5841 MB / 0.9871 GB, free: 19.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.247, allocations: 8 kB / 0.9871 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.2472, allocations: 15.98 kB / 0.9871 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.2472, allocations: 0 / 0.9871 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/0.2473, allocations: 4 kB / 0.9871 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.2473, allocations: 3.984 kB / 0.9871 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.2473, allocations: 4 kB / 0.9871 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009805/0.2483, allocations: 451.7 kB / 0.9875 GB, free: 18.59 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.929e-05/0.2484, allocations: 100.8 kB / 0.9876 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.689e-05/0.2484, allocations: 11.98 kB / 0.9876 GB, free: 18.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002097/0.2487, allocations: 20.05 kB / 0.9876 GB, free: 18.44 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.656e-05/0.2487, allocations: 15.97 kB / 0.9877 GB, free: 18.42 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.761e-05/0.2488, allocations: 8 kB / 0.9877 GB, free: 18.41 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.984e-05/0.2489, allocations: 123.2 kB / 0.9878 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2489, allocations: 0 / 0.9878 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000607/0.2495, allocations: 103.9 kB / 0.9879 GB, free: 18.19 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001081/0.2506, allocations: 443 kB / 0.9883 GB, free: 17.85 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006745/0.2513, allocations: 204 kB / 0.9885 GB, free: 17.65 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.2513, allocations: 0 / 0.9885 GB, free: 17.65 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002669/0.2516, allocations: 90.3 kB / 0.9886 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004576/0.2521, allocations: 27.92 kB / 0.9886 GB, free: 17.54 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.2531, allocations: 427.5 kB / 0.989 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.2534, allocations: 0.7281 MB / 0.9897 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001766/0.2535, allocations: 49.5 kB / 0.9898 GB, free: 16.29 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.308e-05/0.2536, allocations: 19.42 kB / 0.9898 GB, free: 16.27 MB / 0.6198 GB Notification: Performance of SimCode: time 1.272e-06/0.2536, allocations: 0 / 0.9898 GB, free: 16.27 MB / 0.6198 GB Notification: Performance of Templates: time 0.009183/0.2628, allocations: 3.242 MB / 0.993 GB, free: 13.04 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.sim & ./Buildings_8.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe 2>&1)