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/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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.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.00487/0.00487, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001131/0.001131, allocations: 199.2 kB / 16.68 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.171/1.171, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.321/1.321, allocations: 251.7 MB / 0.5094 GB, free: 3.031 MB / 414.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: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 65.78 kB / 0.7258 GB, free: 9.008 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1605, allocations: 104.7 MB / 0.828 GB, free: 200 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.002853/0.1634, allocations: 1.717 MB / 0.8297 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002344/0.1658, allocations: 1.83 MB / 0.8315 GB, free: 12.62 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.313e-05/0.1659, allocations: 3.938 kB / 0.8315 GB, free: 12.62 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.166, allocations: 27.8 kB / 0.8315 GB, free: 12.59 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001107/0.1661, allocations: 27.78 kB / 0.8315 GB, free: 12.56 MB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:310:3-383:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.replace' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/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.Strings.replace'. Notification: Performance of NFTyping.typeClassSections: time 0.001075/0.1672, allocations: 305.7 kB / 0.8318 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002799/0.1675, allocations: 195.5 kB / 0.832 GB, free: 12.07 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 9.082e-05/0.1676, allocations: 17.56 kB / 0.832 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.1677, allocations: 79.73 kB / 0.8321 GB, free: 11.98 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.533e-05/0.1678, allocations: 71.69 kB / 0.8322 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.1679, allocations: 8 kB / 0.8322 GB, free: 11.9 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003835/0.1682, allocations: 283.5 kB / 0.8325 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 8.909e-05/0.1683, allocations: 51.81 kB / 0.8325 GB, free: 11.57 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.79e-05/0.1684, allocations: 67.59 kB / 0.8326 GB, free: 11.5 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004082/0.1688, allocations: 359.2 kB / 0.8329 GB, free: 11.15 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.1688, allocations: 0 / 0.8329 GB, free: 11.15 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1688, allocations: 0 / 0.8329 GB, free: 11.15 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.1689, allocations: 0 / 0.8329 GB, free: 11.15 MB / 0.6544 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.000724/0.1696, allocations: 0.5104 MB / 0.8334 GB, free: 10.59 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 2.861e-05/0.1696, allocations: 12.03 kB / 0.8334 GB, free: 10.58 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.967e-05/0.1697, allocations: 16.75 kB / 0.8334 GB, free: 10.57 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001944/0.1699, allocations: 224.9 kB / 0.8337 GB, free: 10.31 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.1699, allocations: 8.375 kB / 0.8337 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.424e-05/0.1699, allocations: 20.06 kB / 0.8337 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002846/0.1702, allocations: 139.3 kB / 0.8338 GB, free: 10.13 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.1702, allocations: 3.984 kB / 0.8338 GB, free: 10.13 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.1703, allocations: 4 kB / 0.8338 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.1703, allocations: 4 kB / 0.8338 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.1705, allocations: 71.94 kB / 0.8339 GB, free: 10.05 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007023/0.1712, allocations: 412.5 kB / 0.8343 GB, free: 9.598 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002672/0.1715, allocations: 146.6 kB / 0.8344 GB, free: 9.445 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001272/0.1716, allocations: 75.8 kB / 0.8345 GB, free: 9.371 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.1716, allocations: 0 / 0.8345 GB, free: 9.371 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002445/0.1719, allocations: 161 kB / 0.8347 GB, free: 9.195 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=18): time 1.262e-06/0.1719, allocations: 0 / 0.8347 GB, free: 9.195 MB / 0.6544 GB Notification: Performance of matching and sorting (n=18): time 0.0006112/0.1725, allocations: 281.2 kB / 0.8349 GB, free: 8.914 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.1726, allocations: 85.22 kB / 0.835 GB, free: 8.812 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.1727, allocations: 175.2 kB / 0.8352 GB, free: 8.633 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.1727, allocations: 41.69 kB / 0.8352 GB, free: 8.586 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.194e-05/0.1728, allocations: 104.6 kB / 0.8353 GB, free: 8.48 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 4.648e-05/0.1728, allocations: 51.34 kB / 0.8354 GB, free: 8.43 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-05/0.1729, allocations: 49.7 kB / 0.8354 GB, free: 8.375 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.173, allocations: 326.8 kB / 0.8357 GB, free: 8.047 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.1732, allocations: 71.94 kB / 0.8358 GB, free: 7.977 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.1734, allocations: 164.8 kB / 0.8359 GB, free: 7.77 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000327/0.1737, allocations: 239.8 kB / 0.8362 GB, free: 7.492 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1737, allocations: 3.938 kB / 0.8362 GB, free: 7.488 MB / 0.6544 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004234/0.1741, allocations: 269.1 kB / 0.8364 GB, free: 7.219 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.1742, allocations: 10.81 kB / 0.8364 GB, free: 7.211 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.1742, allocations: 0 / 0.8364 GB, free: 7.211 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1742, allocations: 8 kB / 0.8365 GB, free: 7.203 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.1743, allocations: 35.92 kB / 0.8365 GB, free: 7.168 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.1743, allocations: 11.92 kB / 0.8365 GB, free: 7.156 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.1745, allocations: 28.16 kB / 0.8365 GB, free: 7.129 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.1745, allocations: 12 kB / 0.8365 GB, free: 7.117 MB / 0.6544 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,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[1],$PRE.ran.uRWri[1],kalFil.sampleTrigger,$whenCondition2,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 (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.0001302/0.1746, allocations: 147.5 kB / 0.8367 GB, free: 6.965 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.08e-05/0.1746, allocations: 15.81 kB / 0.8367 GB, free: 6.949 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.06e-05/0.1747, allocations: 21.86 kB / 0.8367 GB, free: 6.926 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.1747, allocations: 4 kB / 0.8367 GB, free: 6.922 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1747, allocations: 0 / 0.8367 GB, free: 6.922 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1747, allocations: 7.938 kB / 0.8367 GB, free: 6.914 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007753/0.1755, allocations: 0.549 MB / 0.8373 GB, free: 6.309 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1755, allocations: 0 / 0.8373 GB, free: 6.309 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.1756, allocations: 16.03 kB / 0.8373 GB, free: 6.293 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.1756, allocations: 7.922 kB / 0.8373 GB, free: 6.285 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.1757, allocations: 11.98 kB / 0.8373 GB, free: 6.273 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.1757, allocations: 0 / 0.8373 GB, free: 6.273 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1757, allocations: 7.938 kB / 0.8373 GB, free: 6.266 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005959/0.1763, allocations: 412 kB / 0.8377 GB, free: 5.844 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.222e-05/0.1763, allocations: 92.97 kB / 0.8378 GB, free: 5.734 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/0.1764, allocations: 11.94 kB / 0.8378 GB, free: 5.723 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.1765, allocations: 20.05 kB / 0.8378 GB, free: 5.703 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.711e-05/0.1766, allocations: 7.984 kB / 0.8378 GB, free: 5.695 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.1766, allocations: 15.92 kB / 0.8378 GB, free: 5.68 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001231/0.1767, allocations: 120 kB / 0.838 GB, free: 5.562 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.1767, allocations: 0 / 0.838 GB, free: 5.562 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003981/0.1771, allocations: 107.9 kB / 0.8381 GB, free: 5.457 MB / 0.6544 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.0007155/0.1778, allocations: 418.8 kB / 0.8385 GB, free: 5.148 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000368/0.1782, allocations: 174.9 kB / 0.8386 GB, free: 4.98 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1782, allocations: 0.75 kB / 0.8386 GB, free: 4.98 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001907/0.1784, allocations: 87.94 kB / 0.8387 GB, free: 4.895 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.1787, allocations: 23.98 kB / 0.8387 GB, free: 4.871 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005734/0.1793, allocations: 354.6 kB / 0.8391 GB, free: 4.496 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.1796, allocations: 0.7318 MB / 0.8398 GB, free: 3.738 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001003/0.1797, allocations: 45.44 kB / 0.8398 GB, free: 3.695 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.1797, allocations: 23.44 kB / 0.8398 GB, free: 3.672 MB / 0.6544 GB Notification: Performance of SimCode: time 3.91e-07/0.1797, allocations: 0 / 0.8398 GB, free: 3.672 MB / 0.6544 GB Notification: Performance of Templates: time 0.006242/0.186, allocations: 3.346 MB / 0.8431 GB, free: 344 kB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)