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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.475/0.475, allocations: 94.74 MB / 102 MB, free: 10.36 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.001142/0.001142, allocations: 180.8 kB / 125.3 MB, free: 11.98 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.128/1.128, allocations: 170.5 MB / 319 MB, free: 9.41 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.001524/0.001524, allocations: 111.1 kB / 381 MB, free: 18.18 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.777e-06/3.807e-06, allocations: 224 / 448.6 MB, free: 2.133 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1467, allocations: 61.51 MB / 0.4981 GB, free: 4.523 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3584/0.5053, allocations: 95.99 MB / 0.5919 GB, free: 6.395 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/0.5056, allocations: 83.94 kB / 0.5919 GB, free: 6.312 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.01205/0.5176, allocations: 3.55 MB / 0.5954 GB, free: 2.832 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.856e-05/0.5177, allocations: 8 kB / 0.5954 GB, free: 2.824 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.000976/0.5187, allocations: 0.5714 MB / 0.596 GB, free: 2.188 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.5188, allocations: 16.78 kB / 0.596 GB, free: 2.172 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.192e-05/0.5188, allocations: 15.81 kB / 0.596 GB, free: 2.156 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003431/0.5192, allocations: 215.9 kB / 0.5962 GB, free: 1.906 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.5192, allocations: 8 kB / 0.5962 GB, free: 1.898 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.099e-05/0.5193, allocations: 19.89 kB / 0.5962 GB, free: 1.879 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002066/0.5195, allocations: 89.36 kB / 0.5963 GB, free: 1.793 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.5198, allocations: 171.2 kB / 0.5965 GB, free: 1.613 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.5198, allocations: 0 / 0.5965 GB, free: 1.613 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.5198, allocations: 8 kB / 0.5965 GB, free: 1.605 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.5199, allocations: 4 kB / 0.5965 GB, free: 1.602 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007226/0.5206, allocations: 389.2 kB / 0.5969 GB, free: 1.184 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.5209, allocations: 138.4 kB / 0.597 GB, free: 1.039 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000167/0.521, allocations: 100.8 kB / 0.5971 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-05/0.5211, allocations: 4 kB / 0.5971 GB, free: 0.9336 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003819/0.5215, allocations: 263.2 kB / 0.5974 GB, free: 0.6484 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 2.044e-06/0.5215, allocations: 4 kB / 0.5974 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of matching and sorting (n=20): time 0.0006253/0.5221, allocations: 251.7 kB / 0.5976 GB, free: 404 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001793/0.5223, allocations: 211.8 kB / 0.5978 GB, free: 148 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.5225, allocations: 137.3 kB / 0.5979 GB, free: 4 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.712e-05/0.5225, allocations: 33.69 kB / 0.598 GB, free: 15.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.5226, allocations: 88.58 kB / 0.598 GB, free: 15.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.11e-05/0.5227, allocations: 51.48 kB / 0.5981 GB, free: 15.82 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.224e-05/0.5228, allocations: 4 kB / 0.5981 GB, free: 15.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.523, allocations: 330.9 kB / 0.5984 GB, free: 15.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.5231, allocations: 60.16 kB / 0.5985 GB, free: 15.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.5233, allocations: 135.8 kB / 0.5986 GB, free: 15.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/0.5234, allocations: 85.98 kB / 0.5987 GB, free: 15.17 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.5235, allocations: 0 / 0.5987 GB, free: 15.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004723/0.5239, allocations: 252.1 kB / 0.5989 GB, free: 14.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.524, allocations: 5.406 kB / 0.5989 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.524, allocations: 0 / 0.5989 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.524, allocations: 8 kB / 0.5989 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.5242, allocations: 35.91 kB / 0.599 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.5242, allocations: 4 kB / 0.599 GB, free: 14.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.5244, allocations: 20.06 kB / 0.599 GB, free: 14.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.787e-05/0.5245, allocations: 15.98 kB / 0.599 GB, free: 14.84 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.0003368/0.5248, allocations: 212.5 kB / 0.5992 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.179e-05/0.5249, allocations: 19.81 kB / 0.5992 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.35e-05/0.525, allocations: 20.59 kB / 0.5993 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.525, allocations: 4 kB / 0.5993 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.525, allocations: 0 / 0.5993 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.525, allocations: 7.922 kB / 0.5993 GB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008947/0.5259, allocations: 0.5868 MB / 0.5998 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.5259, allocations: 4 kB / 0.5998 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.5261, allocations: 32.8 kB / 0.5999 GB, free: 13.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.5261, allocations: 0 / 0.5999 GB, free: 13.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.683e-05/0.5261, allocations: 11.98 kB / 0.5999 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.5261, allocations: 0 / 0.5999 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.5262, allocations: 7.469 kB / 0.5999 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007398/0.5269, allocations: 0.5123 MB / 0.6004 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.527, allocations: 124.8 kB / 0.6005 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.821e-05/0.5271, allocations: 21.86 kB / 0.6005 GB, free: 13.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.5273, allocations: 15.98 kB / 0.6005 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.5274, allocations: 11.98 kB / 0.6006 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.5274, allocations: 12.05 kB / 0.6006 GB, free: 13.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.14e-05/0.5275, allocations: 118.1 kB / 0.6007 GB, free: 13.04 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003862/0.5279, allocations: 72.02 kB / 0.6007 GB, free: 12.96 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 [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Utilities/IO/Python27/Functions/BaseClasses/exchange.mo:2:1-59:13:writable] Warning: Could not find library python2.7 in either of: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/x86_64-linux-gnu/omc/libpython2.7.a /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/x86_64-linux-gnu/omc/libpython2.7.so /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib//libpython2.7.a /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib//libpython2.7.so /home/hudson/saved_omc/libraries/.openmodelica/binaries/Buildings/libpython2.7.a /home/hudson/saved_omc/libraries/.openmodelica/binaries/Buildings/libpython2.7.so /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Resources/Library/x86_64-linux/libpython2.7.a /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Resources/Library/x86_64-linux/libpython2.7.so /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Resources/Library/linux64/libpython2.7.a /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Resources/Library/linux64/libpython2.7.so /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Resources/Library/libpython2.7.a /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Resources/Library/libpython2.7.so Notification: Performance of Backend phase and start with SimCode phase: time 0.0005897/0.5285, allocations: 241 kB / 0.601 GB, free: 12.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004756/0.529, allocations: 332.6 kB / 0.6013 GB, free: 12.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.529, allocations: 0 / 0.6013 GB, free: 12.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002862/0.5293, allocations: 243.3 kB / 0.6015 GB, free: 12.16 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002474/0.5295, allocations: 22.02 kB / 0.6015 GB, free: 12.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008498/0.5304, allocations: 354.7 kB / 0.6019 GB, free: 11.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/0.5307, allocations: 0.7431 MB / 0.6026 GB, free: 11 MB / 426.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5308, allocations: 4 kB / 0.6026 GB, free: 11 MB / 426.7 MB Notification: Performance of Templates: time 0.006441/0.5372, allocations: 2.882 MB / 0.6054 GB, free: 8.215 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)