Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python27.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.2356/0.2376, allocations: 80.84 MB / 0.6706 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Examples.KalmanFilter): time 0.003559/0.2412, allocations: 1.678 MB / 0.6722 GB, free: 352 kB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002425/0.2437, allocations: 0.9669 MB / 0.6732 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.635e-05/0.2438, allocations: 3.938 kB / 0.6732 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001633/0.244, allocations: 19.8 kB / 0.6732 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.2441, allocations: 19.8 kB / 0.6732 GB, free: 15.32 MB / 0.5137 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/Utilities/IO/Python27/Functions/exchange.mo:2:1-99:13:writable] Warning: Pure function 'Buildings.Utilities.IO.Python27.Functions.exchange' contains a call to impure function 'Modelica.Utilities.System.getEnvironmentVariable'. Notification: Performance of NFTyping.typeClassSections: time 0.0007617/0.2449, allocations: 199.4 kB / 0.6734 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0003225/0.2452, allocations: 183.5 kB / 0.6736 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.2454, allocations: 33.03 kB / 0.6736 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.2455, allocations: 75.75 kB / 0.6737 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.2457, allocations: 67.62 kB / 0.6738 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.09e-05/0.2457, allocations: 12 kB / 0.6738 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002065/0.2459, allocations: 119.8 kB / 0.6739 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.246, allocations: 55.88 kB / 0.6739 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 8.704e-05/0.2461, allocations: 59.66 kB / 0.674 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0004618/0.2466, allocations: 223.2 kB / 0.6742 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2466, allocations: 0 / 0.6742 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.014e-06/0.2466, allocations: 0 / 0.6742 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.2466, allocations: 4 kB / 0.6742 GB, free: 14.31 MB / 0.5137 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.00104/0.2477, allocations: 490.5 kB / 0.6747 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.2477, allocations: 8.031 kB / 0.6747 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.47e-05/0.2478, allocations: 20.83 kB / 0.6747 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.2481, allocations: 216.1 kB / 0.6749 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.2481, allocations: 12.36 kB / 0.6749 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.728e-05/0.2482, allocations: 8.375 kB / 0.6749 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003094/0.2485, allocations: 147 kB / 0.6751 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.2485, allocations: 4 kB / 0.6751 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.916e-05/0.2485, allocations: 4 kB / 0.6751 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.2485, allocations: 0 / 0.6751 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.2487, allocations: 71.95 kB / 0.6751 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009429/0.2497, allocations: 408.5 kB / 0.6755 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003115/0.25, allocations: 150.6 kB / 0.6757 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.2501, allocations: 63.92 kB / 0.6757 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.2502, allocations: 0 / 0.6757 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003836/0.2506, allocations: 157 kB / 0.6759 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=18): time 1.382e-06/0.2506, allocations: 0 / 0.6759 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of matching and sorting (n=18): time 0.0007312/0.2513, allocations: 278.1 kB / 0.6762 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.875e-05/0.2514, allocations: 89.09 kB / 0.6762 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001553/0.2516, allocations: 155.7 kB / 0.6764 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.2516, allocations: 33.7 kB / 0.6764 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 8.542e-05/0.2517, allocations: 112.6 kB / 0.6765 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 6.597e-05/0.2518, allocations: 55.62 kB / 0.6766 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.854e-05/0.2518, allocations: 49.7 kB / 0.6766 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001804/0.252, allocations: 338.8 kB / 0.677 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001553/0.2522, allocations: 67.95 kB / 0.677 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.2524, allocations: 157.3 kB / 0.6772 GB, free: 11 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003683/0.2528, allocations: 251.8 kB / 0.6774 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.2528, allocations: 0 / 0.6774 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000434/0.2533, allocations: 261.5 kB / 0.6777 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.2533, allocations: 8 kB / 0.6777 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.2533, allocations: 4 kB / 0.6777 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.2533, allocations: 4 kB / 0.6777 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.2535, allocations: 43.84 kB / 0.6777 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.2535, allocations: 15.88 kB / 0.6777 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.848e-05/0.2536, allocations: 19.89 kB / 0.6777 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.635e-05/0.2536, allocations: 8 kB / 0.6778 GB, free: 10.35 MB / 0.5137 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.0001614/0.2538, allocations: 155.5 kB / 0.6779 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.983e-05/0.2538, allocations: 19.89 kB / 0.6779 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.198e-05/0.2539, allocations: 17.19 kB / 0.6779 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.2539, allocations: 4 kB / 0.6779 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.2539, allocations: 0 / 0.6779 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.2539, allocations: 3.984 kB / 0.6779 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009539/0.2549, allocations: 0.5518 MB / 0.6785 GB, free: 9.535 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.2549, allocations: 4 kB / 0.6785 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.201e-05/0.255, allocations: 12 kB / 0.6785 GB, free: 9.52 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.255, allocations: 0 / 0.6785 GB, free: 9.52 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.2551, allocations: 7.984 kB / 0.6785 GB, free: 9.512 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.2551, allocations: 3.938 kB / 0.6785 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2551, allocations: 0 / 0.6785 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008085/0.2559, allocations: 408 kB / 0.6789 GB, free: 9.09 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.529e-05/0.256, allocations: 89.05 kB / 0.679 GB, free: 8.984 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.703e-05/0.256, allocations: 8 kB / 0.679 GB, free: 8.977 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.2561, allocations: 19.92 kB / 0.679 GB, free: 8.957 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.745e-05/0.2562, allocations: 11.97 kB / 0.679 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.538e-05/0.2562, allocations: 8 kB / 0.679 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 8.475e-05/0.2563, allocations: 124 kB / 0.6792 GB, free: 8.816 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2563, allocations: 0 / 0.6792 GB, free: 8.816 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003744/0.2567, allocations: 63.86 kB / 0.6792 GB, free: 8.754 MB / 0.5137 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.0006076/0.2573, allocations: 278.6 kB / 0.6795 GB, free: 8.523 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000409/0.2577, allocations: 175.8 kB / 0.6796 GB, free: 8.352 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2578, allocations: 0 / 0.6796 GB, free: 8.352 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000158/0.2579, allocations: 78.7 kB / 0.6797 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.2583, allocations: 24.8 kB / 0.6797 GB, free: 8.254 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006741/0.259, allocations: 348.9 kB / 0.6801 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/0.2594, allocations: 0.7202 MB / 0.6808 GB, free: 7.137 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 9.178e-05/0.2595, allocations: 37.52 kB / 0.6808 GB, free: 7.102 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.844e-05/0.2595, allocations: 19.44 kB / 0.6808 GB, free: 7.082 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.2595, allocations: 0 / 0.6808 GB, free: 7.082 MB / 0.5137 GB Notification: Performance of Templates: time 0.006803/0.2663, allocations: 2.401 MB / 0.6832 GB, free: 4.691 MB / 0.5137 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.sim & ./Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.pipe 2>&1)