Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.SimpleRoom.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Python36.Examples.SimpleRoom,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Examples_SimpleRoom",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python36.Examples.SimpleRoom,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Examples_SimpleRoom",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.315/1.315, allocations: 252 MB / 267.3 MB, free: 10.84 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 181.8 kB / 327 MB, free: 2.086 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.742/1.742, allocations: 205.4 MB / 0.578 GB, free: 20.1 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008619/0.0008619, allocations: 78.38 kB / 0.6826 GB, free: 12.78 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003062/0.0003062, allocations: 11.03 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.1834, allocations: 106.3 MB / 0.9009 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Examples.SimpleRoom): time 0.001738/0.1852, allocations: 1.496 MB / 0.9024 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001627/0.1868, allocations: 1.608 MB / 0.9039 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.985e-05/0.1869, allocations: 4 kB / 0.9039 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.187, allocations: 27.84 kB / 0.904 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.873e-05/0.1871, allocations: 11.86 kB / 0.904 GB, free: 60.26 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Utilities/IO/Python36/Functions/exchange.mo:2:1-113:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python36.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0004381/0.1876, allocations: 203.5 kB / 0.9042 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002051/0.1878, allocations: 227.5 kB / 0.9044 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.1879, allocations: 53.89 kB / 0.9044 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.188, allocations: 71.75 kB / 0.9045 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.628e-05/0.1881, allocations: 71.67 kB / 0.9046 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.966e-05/0.1882, allocations: 8 kB / 0.9046 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.1884, allocations: 191.7 kB / 0.9048 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.845e-05/0.1885, allocations: 67.8 kB / 0.9048 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.083e-05/0.1886, allocations: 109.2 kB / 0.9049 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003133/0.1889, allocations: 363.2 kB / 0.9053 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1889, allocations: 0 / 0.9053 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.122e-06/0.1889, allocations: 0 / 0.9053 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.1889, allocations: 0 / 0.9053 GB, free: 58.91 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006824/0.1896, allocations: 0.5226 MB / 0.9058 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.1897, allocations: 19.97 kB / 0.9058 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.496e-05/0.1897, allocations: 50.73 kB / 0.9059 GB, free: 58.26 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.16e-05/0.1898, allocations: 32.64 kB / 0.9059 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.19, allocations: 240.6 kB / 0.9061 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.19, allocations: 24.44 kB / 0.9061 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.387e-05/0.19, allocations: 27.98 kB / 0.9062 GB, free: 57.9 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.1903, allocations: 196.8 kB / 0.9064 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.1903, allocations: 0 / 0.9064 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.1904, allocations: 11.98 kB / 0.9064 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.1904, allocations: 8 kB / 0.9064 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.1906, allocations: 128.5 kB / 0.9065 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.1916, allocations: 0.5977 MB / 0.9071 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006939/0.1923, allocations: 303.2 kB / 0.9074 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.1925, allocations: 96.84 kB / 0.9075 GB, free: 56.52 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.1925, allocations: 0 / 0.9075 GB, free: 56.52 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002428/0.1927, allocations: 177.5 kB / 0.9076 GB, free: 56.33 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=26): time 1.633e-06/0.1928, allocations: 0 / 0.9076 GB, free: 56.33 MB / 0.6042 GB Notification: Performance of matching and sorting (n=26): time 0.0005394/0.1933, allocations: 386.1 kB / 0.908 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.1934, allocations: 75.31 kB / 0.9081 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.1935, allocations: 182.8 kB / 0.9083 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.1935, allocations: 45.69 kB / 0.9083 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.761e-05/0.1936, allocations: 124.6 kB / 0.9084 GB, free: 55.5 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.619e-05/0.1936, allocations: 79 kB / 0.9085 GB, free: 55.42 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.236e-05/0.1936, allocations: 7.938 kB / 0.9085 GB, free: 55.41 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.632e-05/0.1937, allocations: 338.8 kB / 0.9088 GB, free: 55.07 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.1938, allocations: 116.8 kB / 0.9089 GB, free: 54.96 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001967/0.194, allocations: 253.6 kB / 0.9092 GB, free: 54.66 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003298/0.1944, allocations: 371.8 kB / 0.9095 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1944, allocations: 3.938 kB / 0.9095 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0004707/0.1949, allocations: 413.2 kB / 0.9099 GB, free: 53.82 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.1949, allocations: 8 kB / 0.9099 GB, free: 53.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1949, allocations: 4 kB / 0.9099 GB, free: 53.81 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.1949, allocations: 4 kB / 0.9099 GB, free: 53.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.1951, allocations: 68.03 kB / 0.91 GB, free: 53.74 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.1951, allocations: 7.938 kB / 0.91 GB, free: 53.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.1953, allocations: 47.89 kB / 0.9101 GB, free: 53.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.1953, allocations: 19.98 kB / 0.9101 GB, free: 53.66 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.pyt.firstTrigger,pyt.firstTrigger,$PRE.pyt.yR[2],pyt.yR[2],$PRE.pyt.uRIntPre[1],pyt.uRIntPre[1],$PRE.pyt.uRIntPre[2],pyt.uRIntPre[2],$PRE.pyt.uRIntPre[3],pyt.uRIntPre[3],$PRE.pyt.uRIntPre[4],pyt.uRIntPre[4],$PRE.pyt.uRWri[1],pyt.uRWri[1],$PRE.pyt.uRWri_temp[1],pyt.uRWri_temp[1],$PRE.pyt.uRWri[4],pyt.uRWri[4],$PRE.pyt.uRWri_temp[4],pyt.uRWri_temp[4],$whenCondition1,pyt.sampleTrigger,$PRE.pyt.yR[1],pyt.yR[1],$PRE.pyt.uRWri[3],pyt.uRWri[3],$PRE.pyt.uRWri_temp[3],pyt.uRWri_temp[3],$PRE.onOffCon.y,onOffCon.y,$PRE.pyt.uRWri[2],pyt.uRWri[2],$PRE.pyt.uRWri_temp[2],pyt.uRWri_temp[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 50 * 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.0001189/0.1954, allocations: 188.4 kB / 0.9103 GB, free: 53.47 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.186e-05/0.1955, allocations: 19.72 kB / 0.9103 GB, free: 53.45 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.694e-05/0.1955, allocations: 25.86 kB / 0.9103 GB, free: 53.43 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1955, allocations: 0 / 0.9103 GB, free: 53.43 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1955, allocations: 4 kB / 0.9103 GB, free: 53.43 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1955, allocations: 3.984 kB / 0.9103 GB, free: 53.42 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007063/0.1962, allocations: 0.6854 MB / 0.911 GB, free: 52.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1963, allocations: 0 / 0.911 GB, free: 52.68 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.714e-05/0.1964, allocations: 23.92 kB / 0.911 GB, free: 52.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.1964, allocations: 4 kB / 0.911 GB, free: 52.65 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.1964, allocations: 11.98 kB / 0.911 GB, free: 52.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1964, allocations: 0 / 0.911 GB, free: 52.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1964, allocations: 0 / 0.911 GB, free: 52.64 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005725/0.197, allocations: 0.5069 MB / 0.9115 GB, free: 52.12 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.385e-05/0.197, allocations: 108.8 kB / 0.9116 GB, free: 51.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.142e-05/0.1971, allocations: 15.98 kB / 0.9116 GB, free: 51.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.1972, allocations: 19.98 kB / 0.9116 GB, free: 51.96 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.1973, allocations: 19.97 kB / 0.9117 GB, free: 51.94 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.1973, allocations: 15.98 kB / 0.9117 GB, free: 51.92 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.718e-05/0.1974, allocations: 132.2 kB / 0.9118 GB, free: 51.79 MB / 0.6042 GB Notification: Performance of sort global known variables: time 6.42e-07/0.1974, allocations: 4 kB / 0.9118 GB, free: 51.79 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000369/0.1978, allocations: 107.9 kB / 0.9119 GB, free: 51.68 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (pyt.uRInt[1],pyt.uRInt[2],pyt.uRInt[3],pyt.uRInt[4]) * Number of discrete variables: 18 (pyt.sampleTrigger,$whenCondition1,pyt.firstTrigger,pyt.yR[1],pyt.yR[2],pyt.uRIntPre[1],pyt.uRIntPre[2],pyt.uRIntPre[3],pyt.uRIntPre[4],pyt.uRWri[1],pyt.uRWri[2],pyt.uRWri[3],pyt.uRWri[4],pyt.uRWri_temp[1],pyt.uRWri_temp[2],pyt.uRWri_temp[3],pyt.uRWri_temp[4],onOffCon.y) * Number of discrete states: 5 (pyt.uR[1],pyt.uR[2],pyt.uR[3],pyt.uR[4],onOffCon.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.001124/0.1989, allocations: 1.275 MB / 0.9132 GB, free: 50.45 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003567/0.1993, allocations: 283.6 kB / 0.9134 GB, free: 50.17 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1993, allocations: 0 / 0.9134 GB, free: 50.17 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00014/0.1994, allocations: 103.9 kB / 0.9135 GB, free: 50.07 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.1997, allocations: 30.45 kB / 0.9136 GB, free: 50.04 MB / 0.6042 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/legal.html") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002486/0.2022, allocations: 2.993 MB / 0.9165 GB, free: 46.85 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001351/0.2024, allocations: 0.7517 MB / 0.9172 GB, free: 46.07 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001081/0.2025, allocations: 50.25 kB / 0.9173 GB, free: 46.03 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.888e-05/0.2026, allocations: 63.41 kB / 0.9173 GB, free: 45.96 MB / 0.6042 GB Notification: Performance of SimCode: time 2.01e-07/0.2026, allocations: 0 / 0.9173 GB, free: 45.96 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2456/0.4482, allocations: 5.21 MB / 0.9224 GB, free: 40.88 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001501/0.4484, allocations: 293.2 kB / 0.9227 GB, free: 40.49 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/2.144, allocations: 0 / 0.9227 GB, free: 40.49 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.SimpleRoom.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.SimpleRoom.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.SimpleRoom.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Examples_SimpleRoom_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Examples_SimpleRoom.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Examples.SimpleRoom.pipe 2>&1)