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.336/1.336, allocations: 251.5 MB / 266.7 MB, free: 11 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.0009669/0.0009669, allocations: 178.3 kB / 325.8 MB, free: 2.672 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.713/1.713, allocations: 205 MB / 0.576 GB, free: 20.95 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.0008134/0.0008138, allocations: 106.3 kB / 0.6797 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003379/0.0003379, allocations: 13.33 kB / 0.7932 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2183, allocations: 105.4 MB / 0.8962 GB, free: 68.05 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Examples.SimpleRoom): time 0.001961/0.2203, allocations: 1.513 MB / 0.8977 GB, free: 66.52 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001824/0.2222, allocations: 1.643 MB / 0.8993 GB, free: 64.87 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.852e-05/0.2223, allocations: 4 kB / 0.8993 GB, free: 64.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001828/0.2225, allocations: 23.84 kB / 0.8993 GB, free: 64.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001153/0.2226, allocations: 11.86 kB / 0.8993 GB, free: 64.83 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.0005256/0.2231, allocations: 210.1 kB / 0.8995 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002079/0.2233, allocations: 219.5 kB / 0.8997 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.2235, allocations: 65.88 kB / 0.8998 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.2236, allocations: 71.7 kB / 0.8999 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001198/0.2237, allocations: 71.67 kB / 0.8999 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.159e-05/0.2238, allocations: 4 kB / 0.8999 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002797/0.224, allocations: 187.6 kB / 0.9001 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.084e-05/0.2241, allocations: 71.8 kB / 0.9002 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.857e-05/0.2242, allocations: 83.53 kB / 0.9003 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.2245, allocations: 367 kB / 0.9006 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2245, allocations: 0 / 0.9006 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.392e-06/0.2245, allocations: 0 / 0.9006 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.2245, allocations: 0 / 0.9006 GB, free: 63.5 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.0007069/0.2253, allocations: 0.5186 MB / 0.9011 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.2253, allocations: 12.03 kB / 0.9011 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.299e-05/0.2253, allocations: 50.72 kB / 0.9012 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.939e-05/0.2254, allocations: 28.66 kB / 0.9012 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.2256, allocations: 240.5 kB / 0.9014 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.2256, allocations: 28.45 kB / 0.9015 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.734e-05/0.2257, allocations: 27.98 kB / 0.9015 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.2259, allocations: 200.8 kB / 0.9017 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.226, allocations: 0 / 0.9017 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.226, allocations: 4 kB / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.226, allocations: 4 kB / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.2262, allocations: 128.5 kB / 0.9018 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.2273, allocations: 0.6015 MB / 0.9024 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006876/0.228, allocations: 302.4 kB / 0.9027 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.2281, allocations: 100.8 kB / 0.9028 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.2281, allocations: 0 / 0.9028 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002543/0.2284, allocations: 165.5 kB / 0.9029 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=26): time 1.734e-06/0.2284, allocations: 0 / 0.9029 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of matching and sorting (n=26): time 0.000559/0.229, allocations: 398 kB / 0.9033 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.229, allocations: 67.39 kB / 0.9034 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.2291, allocations: 174.8 kB / 0.9035 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.2292, allocations: 49.69 kB / 0.9036 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.064e-05/0.2292, allocations: 124.7 kB / 0.9037 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.618e-05/0.2293, allocations: 78.98 kB / 0.9038 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.219e-05/0.2293, allocations: 49.7 kB / 0.9038 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.446e-05/0.2294, allocations: 338.8 kB / 0.9042 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.2296, allocations: 120.7 kB / 0.9043 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.2298, allocations: 248.6 kB / 0.9045 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003326/0.2301, allocations: 371.9 kB / 0.9049 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.2301, allocations: 3.938 kB / 0.9049 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0004666/0.2306, allocations: 412.9 kB / 0.9053 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.2306, allocations: 8.406 kB / 0.9053 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.2306, allocations: 11.94 kB / 0.9053 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.2306, allocations: 8 kB / 0.9053 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.2308, allocations: 59.91 kB / 0.9053 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.2308, allocations: 11.94 kB / 0.9054 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.231, allocations: 43.67 kB / 0.9054 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.937e-05/0.231, allocations: 16 kB / 0.9054 GB, free: 58.23 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 (pyt.firstTrigger,$PRE.pyt.firstTrigger,pyt.yR[2],$PRE.pyt.yR[2],pyt.uRIntPre[1],$PRE.pyt.uRIntPre[1],pyt.uRIntPre[2],$PRE.pyt.uRIntPre[2],pyt.uRIntPre[3],$PRE.pyt.uRIntPre[3],pyt.uRIntPre[4],$PRE.pyt.uRIntPre[4],pyt.uRWri_temp[1],$PRE.pyt.uRWri_temp[1],pyt.uRWri[1],$PRE.pyt.uRWri[1],pyt.uRWri_temp[4],$PRE.pyt.uRWri_temp[4],pyt.uRWri[4],$PRE.pyt.uRWri[4],pyt.sampleTrigger,$whenCondition1,onOffCon.y,$PRE.onOffCon.y,pyt.uRWri_temp[3],$PRE.pyt.uRWri_temp[3],pyt.uRWri[3],$PRE.pyt.uRWri[3],pyt.yR[1],$PRE.pyt.yR[1],pyt.uRWri_temp[2],$PRE.pyt.uRWri_temp[2],pyt.uRWri[2],$PRE.pyt.uRWri[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.0001326/0.2312, allocations: 192.4 kB / 0.9056 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.881e-05/0.2312, allocations: 23.72 kB / 0.9056 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.378e-05/0.2313, allocations: 25.84 kB / 0.9056 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2313, allocations: 0 / 0.9056 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.2313, allocations: 0 / 0.9056 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2313, allocations: 3.938 kB / 0.9056 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007691/0.2321, allocations: 0.6855 MB / 0.9063 GB, free: 57.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.2321, allocations: 0 / 0.9063 GB, free: 57.24 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.638e-05/0.2322, allocations: 19.92 kB / 0.9063 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.2322, allocations: 4 kB / 0.9063 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/0.2322, allocations: 11.98 kB / 0.9063 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2322, allocations: 0 / 0.9063 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2322, allocations: 3.984 kB / 0.9064 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005462/0.2328, allocations: 0.5108 MB / 0.9069 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.248e-05/0.2328, allocations: 100.9 kB / 0.9069 GB, free: 56.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.21e-05/0.2329, allocations: 23.92 kB / 0.907 GB, free: 56.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.233, allocations: 20.17 kB / 0.907 GB, free: 56.52 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.242e-05/0.2331, allocations: 27.97 kB / 0.907 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.627e-05/0.2331, allocations: 11.98 kB / 0.907 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.718e-05/0.2332, allocations: 132.2 kB / 0.9072 GB, free: 56.35 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.252e-06/0.2332, allocations: 4 kB / 0.9072 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004197/0.2336, allocations: 111.8 kB / 0.9073 GB, free: 56.23 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.001252/0.2349, allocations: 1.263 MB / 0.9085 GB, free: 55.01 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003829/0.2353, allocations: 280.3 kB / 0.9088 GB, free: 54.73 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2353, allocations: 192 / 0.9088 GB, free: 54.73 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001448/0.2354, allocations: 108.1 kB / 0.9089 GB, free: 54.63 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.2358, allocations: 27.86 kB / 0.9089 GB, free: 54.6 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.002558/0.2383, allocations: 2.959 MB / 0.9118 GB, free: 51.45 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001541/0.2385, allocations: 0.7518 MB / 0.9125 GB, free: 50.67 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001132/0.2386, allocations: 54.25 kB / 0.9126 GB, free: 50.62 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.39e-05/0.2387, allocations: 63.41 kB / 0.9126 GB, free: 50.55 MB / 0.6042 GB Notification: Performance of SimCode: time 3e-07/0.2387, allocations: 0 / 0.9126 GB, free: 50.55 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4355/0.6743, allocations: 5.202 MB / 0.9177 GB, free: 45.48 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/0.6745, allocations: 290.5 kB / 0.918 GB, free: 45.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/2.627, allocations: 0 / 0.918 GB, free: 45.1 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)