Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.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.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Obsolete_Utilities_IO_Python27_Examples_KalmanFilter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Obsolete_Utilities_IO_Python27_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 2.257/2.257, allocations: 252 MB / 267.3 MB, free: 10.84 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.001101/0.001101, allocations: 172 kB / 327 MB, free: 2.09 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.561/2.561, allocations: 205.4 MB / 0.578 GB, free: 20.15 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.001131/0.001131, allocations: 94.3 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005966/0.0005973, allocations: 8.656 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4485/0.4491, allocations: 106.3 MB / 0.9009 GB, free: 63.37 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002845/0.452, allocations: 1.435 MB / 0.9023 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.005581/0.4577, allocations: 1.783 MB / 0.9041 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.4579, allocations: 0 / 0.9041 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002468/0.4582, allocations: 23.86 kB / 0.9041 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002758/0.4585, allocations: 23.84 kB / 0.9041 GB, free: 60.08 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Obsolete/Utilities/IO/Python27/Functions/exchange.mo:2:1-109:13:writable] Warning: Pure function ‘Buildings.Obsolete.Utilities.IO.Python27.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.002189/0.4607, allocations: 259.4 kB / 0.9044 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0004677/0.4612, allocations: 183.5 kB / 0.9045 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.4613, allocations: 33.52 kB / 0.9046 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.4616, allocations: 59.72 kB / 0.9046 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.4618, allocations: 67.67 kB / 0.9047 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.897e-05/0.4618, allocations: 4 kB / 0.9047 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007156/0.4625, allocations: 255.6 kB / 0.9049 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001571/0.4627, allocations: 47.81 kB / 0.905 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.4629, allocations: 85.36 kB / 0.9051 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0007271/0.4636, allocations: 355.4 kB / 0.9054 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.4636, allocations: 0 / 0.9054 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.846e-06/0.4636, allocations: 4 kB / 0.9054 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.4636, allocations: 0 / 0.9054 GB, free: 58.74 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.001122/0.4648, allocations: 494.8 kB / 0.9059 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.276e-05/0.4649, allocations: 8.031 kB / 0.9059 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.652e-05/0.465, allocations: 46.73 kB / 0.9059 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.388e-05/0.4651, allocations: 16.75 kB / 0.9059 GB, free: 58.13 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.4653, allocations: 216.1 kB / 0.9061 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.4654, allocations: 20.3 kB / 0.9062 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.121e-05/0.4654, allocations: 15.94 kB / 0.9062 GB, free: 57.85 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004002/0.4659, allocations: 153.4 kB / 0.9063 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.4659, allocations: 4 kB / 0.9063 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.4659, allocations: 4 kB / 0.9063 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.4659, allocations: 0 / 0.9063 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002922/0.4662, allocations: 79.94 kB / 0.9064 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.4673, allocations: 416.5 kB / 0.9068 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004003/0.4678, allocations: 154.6 kB / 0.907 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001953/0.468, allocations: 68.83 kB / 0.907 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.468, allocations: 0 / 0.907 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003688/0.4684, allocations: 164.9 kB / 0.9072 GB, free: 56.73 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=18): time 1.874e-06/0.4684, allocations: 4 kB / 0.9072 GB, free: 56.73 MB / 0.6042 GB Notification: Performance of matching and sorting (n=18): time 0.0009084/0.4693, allocations: 288 kB / 0.9075 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.236e-05/0.4694, allocations: 93.08 kB / 0.9075 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.4696, allocations: 170.1 kB / 0.9077 GB, free: 56.16 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.04e-05/0.4697, allocations: 41.62 kB / 0.9077 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.285e-05/0.4698, allocations: 108.6 kB / 0.9079 GB, free: 56 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.019e-05/0.4699, allocations: 55.28 kB / 0.9079 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.619e-05/0.4699, allocations: 4 kB / 0.9079 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.696e-05/0.47, allocations: 326.8 kB / 0.9082 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.4702, allocations: 67.95 kB / 0.9083 GB, free: 55.55 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.4705, allocations: 174.5 kB / 0.9085 GB, free: 55.34 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004763/0.471, allocations: 255.8 kB / 0.9087 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.471, allocations: 0 / 0.9087 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006404/0.4716, allocations: 277.4 kB / 0.909 GB, free: 54.77 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.4717, allocations: 4 kB / 0.909 GB, free: 54.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.4717, allocations: 4 kB / 0.909 GB, free: 54.76 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.4717, allocations: 4 kB / 0.909 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002061/0.4719, allocations: 39.92 kB / 0.909 GB, free: 54.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/0.472, allocations: 11.88 kB / 0.909 GB, free: 54.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001795/0.4722, allocations: 27.83 kB / 0.909 GB, free: 54.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.4722, allocations: 8 kB / 0.9091 GB, free: 54.67 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: 21 ($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],$whenCondition2,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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.000187/0.4724, allocations: 156.2 kB / 0.9092 GB, free: 54.51 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.492e-05/0.4725, allocations: 15.81 kB / 0.9092 GB, free: 54.49 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.948e-05/0.4725, allocations: 21.86 kB / 0.9092 GB, free: 54.47 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.4725, allocations: 0 / 0.9092 GB, free: 54.47 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.4726, allocations: 7.938 kB / 0.9092 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.4726, allocations: 0 / 0.9092 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002643/0.4752, allocations: 0.5606 MB / 0.9098 GB, free: 53.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.4753, allocations: 4 kB / 0.9098 GB, free: 53.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.4754, allocations: 19.98 kB / 0.9098 GB, free: 53.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.4754, allocations: 7.875 kB / 0.9098 GB, free: 53.82 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.4755, allocations: 7.984 kB / 0.9098 GB, free: 53.81 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.4755, allocations: 4 kB / 0.9098 GB, free: 53.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4755, allocations: 0 / 0.9098 GB, free: 53.8 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008732/0.4764, allocations: 426 kB / 0.9102 GB, free: 53.37 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.317e-05/0.4765, allocations: 96.88 kB / 0.9103 GB, free: 53.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.145e-05/0.4765, allocations: 8 kB / 0.9103 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.4767, allocations: 15.98 kB / 0.9104 GB, free: 53.23 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.4768, allocations: 11.98 kB / 0.9104 GB, free: 53.22 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.352e-05/0.4769, allocations: 15.98 kB / 0.9104 GB, free: 53.21 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001294/0.477, allocations: 124.9 kB / 0.9105 GB, free: 53.09 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.71e-07/0.477, allocations: 0 / 0.9105 GB, free: 53.09 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0008035/0.4778, allocations: 104 kB / 0.9106 GB, free: 52.98 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: 13 (kalFil.sampleTrigger,ran.sampleTrigger,$whenCondition2,$whenCondition1,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[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 (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.002449/0.4803, allocations: 1.264 MB / 0.9118 GB, free: 51.8 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006102/0.4809, allocations: 187.7 kB / 0.912 GB, free: 51.62 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.481, allocations: 0 / 0.912 GB, free: 51.62 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002219/0.4812, allocations: 94.17 kB / 0.9121 GB, free: 51.53 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005114/0.4817, allocations: 22.38 kB / 0.9121 GB, free: 51.51 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.003559/0.4853, allocations: 2.336 MB / 0.9144 GB, free: 49.01 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.4855, allocations: 0.7245 MB / 0.9151 GB, free: 48.26 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001735/0.4857, allocations: 53.44 kB / 0.9152 GB, free: 48.2 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.146e-05/0.4858, allocations: 43.42 kB / 0.9152 GB, free: 48.16 MB / 0.6042 GB Notification: Performance of SimCode: time 7.61e-07/0.4858, allocations: 0 / 0.9152 GB, free: 48.16 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7431/1.229, allocations: 4.913 MB / 0.92 GB, free: 43.38 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003504/1.229, allocations: 299 kB / 0.9203 GB, free: 43 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.715/4.945, allocations: 0 / 0.9203 GB, free: 43 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Obsolete_Utilities_IO_Python27_Examples_KalmanFilter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Obsolete_Utilities_IO_Python27_Examples_KalmanFilter.fmu > Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)