Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Utilities.IO.Python27.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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 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: translateModel(Buildings.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001057, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001218/0.001218, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5723/0.5723, allocations: 95.58 MB / 366 MB, free: 10.39 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008202/0.0008203, allocations: 16 kB / 446.8 MB, free: 9.398 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3103, allocations: 70.34 MB / 0.505 GB, free: 16.49 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Examples.KalmanFilter): time 0.001737/0.3121, allocations: 1.349 MB / 0.5063 GB, free: 15.13 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.3134, allocations: 0.901 MB / 0.5072 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.981e-05/0.3135, allocations: 4 kB / 0.5072 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.97e-05/0.3136, allocations: 15.86 kB / 0.5072 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.3137, allocations: 15.97 kB / 0.5072 GB, free: 14.19 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000683/0.3144, allocations: 167.5 kB / 0.5074 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002056/0.3146, allocations: 115.8 kB / 0.5075 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.3148, allocations: 33.05 kB / 0.5075 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001898/0.315, allocations: 75.75 kB / 0.5076 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.3151, allocations: 71.72 kB / 0.5077 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.3152, allocations: 8 kB / 0.5077 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.3154, allocations: 79.88 kB / 0.5078 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.531e-05/0.3154, allocations: 27.89 kB / 0.5078 GB, free: 13.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.313e-05/0.3155, allocations: 57.64 kB / 0.5078 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002774/0.3158, allocations: 177.6 kB / 0.508 GB, free: 13.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3158, allocations: 0 / 0.508 GB, free: 13.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3158, allocations: 0 / 0.508 GB, free: 13.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.3158, allocations: 4 kB / 0.508 GB, free: 13.38 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007642/0.3166, allocations: 0.5796 MB / 0.5086 GB, free: 12.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.3166, allocations: 15.98 kB / 0.5086 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.275e-05/0.3167, allocations: 19.81 kB / 0.5086 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001862/0.3169, allocations: 210.8 kB / 0.5088 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.3169, allocations: 19.89 kB / 0.5088 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.762e-05/0.317, allocations: 12 kB / 0.5088 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000324/0.3173, allocations: 187.3 kB / 0.509 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.3173, allocations: 0 / 0.509 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.3173, allocations: 7.984 kB / 0.509 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.3174, allocations: 0 / 0.509 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002451/0.3176, allocations: 127.9 kB / 0.5092 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005178/0.3182, allocations: 412.5 kB / 0.5095 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002554/0.3184, allocations: 154.5 kB / 0.5097 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.3185, allocations: 0 / 0.5097 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003492/0.3188, allocations: 292.2 kB / 0.51 GB, free: 11.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.353e-06/0.3188, allocations: 0 / 0.51 GB, free: 11.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0008749/0.3197, allocations: 0.7091 MB / 0.5107 GB, free: 10.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.219e-05/0.3198, allocations: 199.9 kB / 0.5109 GB, free: 10.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.364e-05/0.3199, allocations: 156.6 kB / 0.511 GB, free: 10 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.3199, allocations: 33.83 kB / 0.511 GB, free: 9.961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.433e-05/0.32, allocations: 104.5 kB / 0.5111 GB, free: 9.852 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.405e-05/0.32, allocations: 59.48 kB / 0.5112 GB, free: 9.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.048e-05/0.32, allocations: 0 / 0.5112 GB, free: 9.793 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.534e-05/0.3201, allocations: 334.8 kB / 0.5115 GB, free: 9.457 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.3202, allocations: 75.94 kB / 0.5116 GB, free: 9.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.3204, allocations: 159.1 kB / 0.5117 GB, free: 9.188 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/0.3206, allocations: 214.7 kB / 0.5119 GB, free: 8.953 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3206, allocations: 3.938 kB / 0.5119 GB, free: 8.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004879/0.3211, allocations: 427.9 kB / 0.5124 GB, free: 8.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/0.3212, allocations: 114.8 kB / 0.5125 GB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.3212, allocations: 4 kB / 0.5125 GB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.3212, allocations: 4 kB / 0.5125 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.3214, allocations: 31.92 kB / 0.5125 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.3214, allocations: 4.281 kB / 0.5125 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001322/0.3215, allocations: 23.89 kB / 0.5125 GB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.941e-05/0.3216, allocations: 16 kB / 0.5125 GB, free: 8.281 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 variables: ran.uRWri[1]:DISCRETE(fixed = true ) "Value to be sent to Python" type: Real [1] kalFil.yR[1]:DISCRETE(flow=false fixed = true ) "Real outputs received from Python" type: Real [1] kalFil.uRWri[1]:DISCRETE(fixed = true ) "Value to be sent to Python" type: Real [1] ran.yR[1]:DISCRETE(flow=false fixed = true ) "Real outputs received from Python" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 23 ($whenCondition5,$PRE.ran.uRIntPre[1],ran.uRIntPre[1],$PRE.ran.uRWri[1],ran.uRWri[1],$PRE.kalFil.uRIntPre[1],kalFil.uRIntPre[1],$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],$PRE.kalFil.firstTrigger,kalFil.firstTrigger,$PRE.ran.firstTrigger,ran.firstTrigger,$whenCondition1,$whenCondition4,ran.sampleTrigger,$whenCondition2,$whenCondition3,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 4 * 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.0002069/0.3218, allocations: 239.8 kB / 0.5128 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.125e-05/0.3218, allocations: 15.91 kB / 0.5128 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.476e-05/0.3219, allocations: 21.17 kB / 0.5128 GB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.3219, allocations: 4 kB / 0.5128 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.3219, allocations: 0 / 0.5128 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.3219, allocations: 7.875 kB / 0.5128 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009079/0.3228, allocations: 0.8256 MB / 0.5136 GB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3229, allocations: 0 / 0.5136 GB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.323, allocations: 19.92 kB / 0.5136 GB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.323, allocations: 0 / 0.5136 GB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.323, allocations: 15.98 kB / 0.5137 GB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.323, allocations: 0 / 0.5137 GB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.323, allocations: 3.984 kB / 0.5137 GB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008539/0.3239, allocations: 0.7379 MB / 0.5144 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.773e-05/0.3239, allocations: 96.95 kB / 0.5145 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.334e-05/0.324, allocations: 27.94 kB / 0.5145 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.3241, allocations: 19.92 kB / 0.5145 GB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.642e-05/0.3242, allocations: 19.92 kB / 0.5145 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.3242, allocations: 4 kB / 0.5145 GB, free: 6.086 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.335e-05/0.3243, allocations: 120.7 kB / 0.5147 GB, free: 5.969 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3243, allocations: 0 / 0.5147 GB, free: 5.969 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003716/0.3247, allocations: 75.98 kB / 0.5147 GB, free: 5.895 MB / 382.1 MB 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,$whenCondition3,$whenCondition4,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[1],$whenCondition5) * Number of discrete states: 11 (ran.uRIntPre[1],ran.yR[1],ran.uRWri[1],$whenCondition4,i,ran.uR[i],kalFil.uRIntPre[1],kalFil.yR[1],kalFil.uRWri[1],$whenCondition3,kalFil.uR[i]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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.0005082/0.3252, allocations: 280.8 kB / 0.515 GB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005538/0.3258, allocations: 498.5 kB / 0.5155 GB, free: 5.133 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3258, allocations: 0 / 0.5155 GB, free: 5.133 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002834/0.3261, allocations: 310.6 kB / 0.5158 GB, free: 4.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002489/0.3263, allocations: 24.56 kB / 0.5158 GB, free: 4.781 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006991/0.327, allocations: 484.9 kB / 0.5163 GB, free: 4.281 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001389/0.3272, allocations: 0.7283 MB / 0.517 GB, free: 3.527 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.693e-05/0.3273, allocations: 37.39 kB / 0.517 GB, free: 3.492 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.385e-05/0.3273, allocations: 15.44 kB / 0.517 GB, free: 3.477 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3273, allocations: 0 / 0.517 GB, free: 3.477 MB / 382.1 MB Notification: Performance of Templates: time 0.005814/0.3331, allocations: 2.949 MB / 0.5199 GB, free: 0.5469 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.makefile Environment - environmentSimulation: (rm -f Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.sim & ./Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1) Environment - environmentSimulation: