Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_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_8_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.001272/0.001272, allocations: 103.8 kB / 16.29 MB, free: 6.43 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.001414/0.001414, allocations: 187.9 kB / 17.22 MB, free: 5.934 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.489/1.489, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.926/1.926, allocations: 292.3 MB / 0.5495 GB, free: 17.6 MB / 462.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.002462/0.002462, allocations: 75.83 kB / 0.6722 GB, free: 6.473 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3033, allocations: 114.6 MB / 0.7841 GB, free: 3.805 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter): time 0.004454/0.3078, allocations: 1.716 MB / 0.7858 GB, free: 2.066 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.003536/0.3114, allocations: 1.815 MB / 0.7875 GB, free: 244 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.3116, allocations: 3.938 kB / 0.7875 GB, free: 240 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002655/0.3119, allocations: 27.8 kB / 0.7876 GB, free: 212 kB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002232/0.3122, allocations: 27.78 kB / 0.7876 GB, free: 184 kB / 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 8.1.4-maint.8.1.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.5144/0.8266, allocations: 301 kB / 0.7879 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003119/0.8269, allocations: 185.2 kB / 0.7881 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.8271, allocations: 34.39 kB / 0.7881 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.8272, allocations: 74.05 kB / 0.7882 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.8273, allocations: 68.75 kB / 0.7882 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.8274, allocations: 15.19 kB / 0.7882 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005659/0.8279, allocations: 279.7 kB / 0.7885 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.828, allocations: 48.36 kB / 0.7885 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.401e-05/0.8281, allocations: 60.73 kB / 0.7886 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004483/0.8286, allocations: 369 kB / 0.789 GB, free: 46 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.8286, allocations: 0 / 0.789 GB, free: 46 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8286, allocations: 0 / 0.789 GB, free: 46 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.8286, allocations: 0 / 0.789 GB, free: 46 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.0007666/0.8294, allocations: 0.5055 MB / 0.7895 GB, free: 45.58 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.8294, allocations: 8.344 kB / 0.7895 GB, free: 45.58 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.78e-05/0.8295, allocations: 17.72 kB / 0.7895 GB, free: 45.57 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001795/0.8297, allocations: 221.9 kB / 0.7897 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.8297, allocations: 10.16 kB / 0.7897 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.825e-05/0.8298, allocations: 18.61 kB / 0.7897 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002679/0.83, allocations: 138.7 kB / 0.7898 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.83, allocations: 1.875 kB / 0.7898 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/0.8301, allocations: 8.828 kB / 0.7899 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.8301, allocations: 3.203 kB / 0.7899 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001822/0.8303, allocations: 72.11 kB / 0.7899 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007043/0.831, allocations: 419.6 kB / 0.7903 GB, free: 45.04 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002781/0.8313, allocations: 147.2 kB / 0.7905 GB, free: 45.01 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.8314, allocations: 61.12 kB / 0.7905 GB, free: 45 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.8314, allocations: 4.406 kB / 0.7905 GB, free: 45 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002424/0.8317, allocations: 155.7 kB / 0.7907 GB, free: 44.94 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/0.8317, allocations: 0 / 0.7907 GB, free: 44.94 MB / 0.6544 GB Notification: Performance of matching and sorting (n=18): time 0.0005796/0.8323, allocations: 283.6 kB / 0.791 GB, free: 44.9 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.811e-05/0.8323, allocations: 91.88 kB / 0.791 GB, free: 44.8 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.8325, allocations: 163.9 kB / 0.7912 GB, free: 44.71 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.8325, allocations: 36.05 kB / 0.7912 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.333e-05/0.8325, allocations: 110.7 kB / 0.7913 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 4.301e-05/0.8326, allocations: 55.62 kB / 0.7914 GB, free: 44.56 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.954e-05/0.8327, allocations: 50.52 kB / 0.7914 GB, free: 44.55 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.462e-05/0.8327, allocations: 339.6 kB / 0.7918 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.8329, allocations: 62.3 kB / 0.7918 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.833, allocations: 165.1 kB / 0.792 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002835/0.8333, allocations: 244.7 kB / 0.7922 GB, free: 44 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.8333, allocations: 0 / 0.7922 GB, free: 44 MB / 0.6544 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003827/0.8337, allocations: 273.7 kB / 0.7925 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.8337, allocations: 6.031 kB / 0.7925 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.8338, allocations: 2.812 kB / 0.7925 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.8338, allocations: 3.938 kB / 0.7925 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.8339, allocations: 36.14 kB / 0.7925 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.8339, allocations: 11.72 kB / 0.7925 GB, free: 43.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.483e-05/0.834, allocations: 21.58 kB / 0.7925 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.138e-05/0.8341, allocations: 18.69 kB / 0.7926 GB, free: 43.95 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.0001191/0.8342, allocations: 148.8 kB / 0.7927 GB, free: 43.83 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-05/0.8342, allocations: 18.48 kB / 0.7927 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.279e-05/0.8343, allocations: 24.19 kB / 0.7928 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.8343, allocations: 0 / 0.7928 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.8343, allocations: 5.906 kB / 0.7928 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.8343, allocations: 0.9375 kB / 0.7928 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006649/0.835, allocations: 0.5493 MB / 0.7933 GB, free: 43.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.835, allocations: 3.094 kB / 0.7933 GB, free: 43.52 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.764e-05/0.8351, allocations: 13.23 kB / 0.7933 GB, free: 43.52 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.8351, allocations: 7.344 kB / 0.7933 GB, free: 43.52 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.8351, allocations: 11.25 kB / 0.7933 GB, free: 43.51 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.8351, allocations: 4.312 kB / 0.7933 GB, free: 43.51 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.8351, allocations: 0 / 0.7933 GB, free: 43.51 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005236/0.8357, allocations: 408.2 kB / 0.7937 GB, free: 43.36 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.161e-05/0.8357, allocations: 97.73 kB / 0.7938 GB, free: 43.26 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.271e-05/0.8357, allocations: 14.94 kB / 0.7938 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.8359, allocations: 16.56 kB / 0.7938 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.487e-05/0.8359, allocations: 13.84 kB / 0.7939 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.836, allocations: 8.281 kB / 0.7939 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 6.45e-05/0.836, allocations: 119.2 kB / 0.794 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.836, allocations: 0 / 0.794 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000426/0.8365, allocations: 105.2 kB / 0.7941 GB, free: 43.16 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.0008874/0.8374, allocations: 423.2 kB / 0.7945 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003606/0.8377, allocations: 192.4 kB / 0.7947 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.8377, allocations: 3.469 kB / 0.7947 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.8379, allocations: 73.77 kB / 0.7947 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.8382, allocations: 28.12 kB / 0.7948 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005841/0.8388, allocations: 355.2 kB / 0.7951 GB, free: 42.85 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001587/0.839, allocations: 0.7296 MB / 0.7958 GB, free: 42.15 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 8.797e-05/0.8391, allocations: 42.95 kB / 0.7959 GB, free: 42.15 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.326e-05/0.8391, allocations: 24.66 kB / 0.7959 GB, free: 42.14 MB / 0.6544 GB Notification: Performance of SimCode: time 2.3e-07/0.8391, allocations: 0 / 0.7959 GB, free: 42.14 MB / 0.6544 GB Notification: Performance of Templates: time 0.007459/0.8466, allocations: 3.318 MB / 0.7991 GB, free: 41.9 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.makefile (rm -f Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.sim & ./Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)