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/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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/Buildings 1.6.0+build.1/package.mo): time 0.5049/0.5049, allocations: 94.78 MB / 102.2 MB, free: 10.16 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009953/0.0009953, allocations: 171.3 kB / 125.5 MB, free: 11.91 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.443/1.443, allocations: 170.6 MB / 319.4 MB, free: 9.391 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001586/0.001586, allocations: 113.9 kB / 381.3 MB, free: 18.27 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.606e-05/1.608e-05, allocations: 0 / 449.1 MB, free: 1.777 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1721/0.1721, allocations: 61.53 MB / 0.4987 GB, free: 4.156 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.534/0.7062, allocations: 96.05 MB / 0.5925 GB, free: 5.93 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003399/0.7066, allocations: 85.45 kB / 0.5925 GB, free: 5.848 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01328/0.7199, allocations: 3.858 MB / 0.5963 GB, free: 2.051 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.72, allocations: 0 / 0.5963 GB, free: 2.051 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.122e-05/0.72, allocations: 8 kB / 0.5963 GB, free: 2.043 MB / 410.7 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.001079/0.7211, allocations: 0.5799 MB / 0.5969 GB, free: 1.406 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.7212, allocations: 8.031 kB / 0.5969 GB, free: 1.398 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.862e-05/0.7213, allocations: 19.81 kB / 0.5969 GB, free: 1.379 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.7216, allocations: 219.8 kB / 0.5971 GB, free: 1.125 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.7217, allocations: 14.22 kB / 0.5971 GB, free: 1.113 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.964e-05/0.7217, allocations: 8 kB / 0.5971 GB, free: 1.105 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002125/0.7219, allocations: 87.95 kB / 0.5972 GB, free: 1.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.7223, allocations: 163.2 kB / 0.5974 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.7223, allocations: 0 / 0.5974 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.7223, allocations: 6.062 kB / 0.5974 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.7223, allocations: 0 / 0.5974 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007411/0.7231, allocations: 389.9 kB / 0.5978 GB, free: 436 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002452/0.7233, allocations: 130.5 kB / 0.5979 GB, free: 296 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.7235, allocations: 100.8 kB / 0.598 GB, free: 192 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.878e-05/0.7235, allocations: 7.938 kB / 0.598 GB, free: 184 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003779/0.7239, allocations: 259.1 kB / 0.5982 GB, free: 15.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=20): time 2.034e-06/0.7239, allocations: 0 / 0.5982 GB, free: 15.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=20): time 0.0006036/0.7246, allocations: 257.3 kB / 0.5985 GB, free: 15.64 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/0.7247, allocations: 203.9 kB / 0.5987 GB, free: 15.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.7248, allocations: 137.4 kB / 0.5988 GB, free: 15.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.706e-05/0.7249, allocations: 37.72 kB / 0.5988 GB, free: 15.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.391e-05/0.725, allocations: 101.6 kB / 0.5989 GB, free: 15.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.001e-05/0.725, allocations: 51.48 kB / 0.599 GB, free: 15.06 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.193e-05/0.7251, allocations: 0 / 0.599 GB, free: 15.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.7252, allocations: 334.8 kB / 0.5993 GB, free: 14.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.7254, allocations: 56.16 kB / 0.5994 GB, free: 14.67 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.7255, allocations: 136.6 kB / 0.5995 GB, free: 14.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.7257, allocations: 81.84 kB / 0.5996 GB, free: 14.42 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.7257, allocations: 4.109 kB / 0.5996 GB, free: 14.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004985/0.7262, allocations: 253.1 kB / 0.5998 GB, free: 14.16 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.3e-05/0.7263, allocations: 122.8 kB / 0.5999 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.7264, allocations: 4 kB / 0.5999 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.492e-05/0.7264, allocations: 4 kB / 0.5999 GB, free: 14.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.7266, allocations: 37.78 kB / 0.6 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.7266, allocations: 4 kB / 0.6 GB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.7267, allocations: 19.84 kB / 0.6 GB, free: 13.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.73e-05/0.7268, allocations: 12 kB / 0.6 GB, free: 13.94 MB / 426.7 MB Warning: Assuming fixed start value for the following 6 variables: ran.uRWri[1]:DISCRETE(fixed = false ) "Value to be sent to Python" type: Real [1] kalFil.yR[1]:DISCRETE(fixed = false ) "Real outputs received from Python" type: Real [1] kalFil.uRWri[1]:DISCRETE(fixed = false ) "Value to be sent to Python" type: Real [1] kalFil.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean ran.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean ran.yR[1]:DISCRETE(fixed = false ) "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 () * 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.0002932/0.7271, allocations: 211 kB / 0.6002 GB, free: 13.72 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.459e-05/0.7271, allocations: 23.77 kB / 0.6002 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.942e-05/0.7272, allocations: 20.73 kB / 0.6003 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.7272, allocations: 3.938 kB / 0.6003 GB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.7272, allocations: 0 / 0.6003 GB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.7272, allocations: 0.8438 kB / 0.6003 GB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009369/0.7282, allocations: 0.5978 MB / 0.6008 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.7282, allocations: 0 / 0.6008 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.7283, allocations: 23.92 kB / 0.6009 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.7284, allocations: 0 / 0.6009 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.7284, allocations: 9.062 kB / 0.6009 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.7284, allocations: 7.953 kB / 0.6009 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.7284, allocations: 0 / 0.6009 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007865/0.7292, allocations: 0.5157 MB / 0.6014 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.7294, allocations: 125 kB / 0.6015 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.712e-05/0.7294, allocations: 15.98 kB / 0.6015 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.7296, allocations: 15.98 kB / 0.6015 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.107e-05/0.7297, allocations: 15.92 kB / 0.6016 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-05/0.7297, allocations: 27.09 kB / 0.6016 GB, free: 12.25 MB / 426.7 MB Notification: Performance of sorting global known variables: time 8.154e-05/0.7298, allocations: 111 kB / 0.6017 GB, free: 12.14 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7298, allocations: 3.938 kB / 0.6017 GB, free: 12.14 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004402/0.7303, allocations: 64 kB / 0.6017 GB, free: 12.07 MB / 426.7 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]) * 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.0005874/0.7309, allocations: 225 kB / 0.602 GB, free: 11.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005399/0.7314, allocations: 437.4 kB / 0.6024 GB, free: 11.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.7314, allocations: 0 / 0.6024 GB, free: 11.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003074/0.7317, allocations: 299.2 kB / 0.6027 GB, free: 11.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.732, allocations: 26.27 kB / 0.6027 GB, free: 11.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008049/0.7328, allocations: 338.3 kB / 0.603 GB, free: 10.72 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.7332, allocations: 0.7319 MB / 0.6037 GB, free: 9.961 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.7333, allocations: 33.19 kB / 0.6038 GB, free: 9.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.121e-05/0.7334, allocations: 19.42 kB / 0.6038 GB, free: 9.914 MB / 426.7 MB Notification: Performance of SimCode: time 2.31e-07/0.7334, allocations: 0 / 0.6038 GB, free: 9.914 MB / 426.7 MB Notification: Performance of Templates: time 0.006975/0.7403, allocations: 2.647 MB / 0.6064 GB, free: 7.371 MB / 426.7 MB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Python27.Examples.KalmanFilter.makefile (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)