Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 191 kB / 16.25 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.259/1.259, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.151/2.151, allocations: 390.2 MB / 0.6644 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 56.09 kB / 0.8122 GB, free: 14.74 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4959/0.497, allocations: 140.4 MB / 0.9492 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.002537/0.4996, allocations: 1.819 MB / 0.951 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001645/0.5013, allocations: 1.585 MB / 0.9526 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.132e-05/0.5014, allocations: 5.281 kB / 0.9526 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001521/0.5015, allocations: 23.73 kB / 0.9526 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.422e-05/0.5016, allocations: 10.38 kB / 0.9526 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005557/0.5022, allocations: 207.7 kB / 0.9528 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002339/0.5024, allocations: 242.3 kB / 0.953 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.5026, allocations: 63.61 kB / 0.9531 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.5027, allocations: 91.55 kB / 0.9532 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.5029, allocations: 83.73 kB / 0.9533 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.026e-05/0.5029, allocations: 13.31 kB / 0.9533 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003245/0.5032, allocations: 193.4 kB / 0.9534 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.9e-05/0.5033, allocations: 78.33 kB / 0.9535 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.809e-05/0.5034, allocations: 95.55 kB / 0.9536 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003823/0.5038, allocations: 375.4 kB / 0.954 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.5038, allocations: 0 / 0.954 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.332e-06/0.5038, allocations: 1.156 kB / 0.954 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.825e-06/0.5038, allocations: 0 / 0.954 GB, free: 5.57 MB / 0.7169 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.0007853/0.5046, allocations: 0.5661 MB / 0.9545 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.5047, allocations: 9.844 kB / 0.9545 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.584e-05/0.5047, allocations: 53.33 kB / 0.9546 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.011e-05/0.5048, allocations: 25.09 kB / 0.9546 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.505, allocations: 245 kB / 0.9548 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.505, allocations: 21.73 kB / 0.9549 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.064e-05/0.505, allocations: 25.47 kB / 0.9549 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.5054, allocations: 208.4 kB / 0.9551 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.5054, allocations: 0 / 0.9551 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.5054, allocations: 10.14 kB / 0.9551 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.5054, allocations: 4.188 kB / 0.9551 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002108/0.5056, allocations: 120.2 kB / 0.9552 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.5067, allocations: 0.5902 MB / 0.9558 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00068/0.5074, allocations: 282.1 kB / 0.9561 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.5075, allocations: 94.28 kB / 0.9562 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.5076, allocations: 3.625 kB / 0.9562 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002423/0.5078, allocations: 175.6 kB / 0.9563 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=26): time 1.823e-06/0.5078, allocations: 0 / 0.9563 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26): time 0.0005866/0.5084, allocations: 380.6 kB / 0.9567 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.5085, allocations: 69.52 kB / 0.9568 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.5086, allocations: 181.8 kB / 0.9569 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.554e-05/0.5086, allocations: 51.44 kB / 0.957 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.454e-05/0.5087, allocations: 117 kB / 0.9571 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.066e-05/0.5087, allocations: 84.58 kB / 0.9572 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.987e-05/0.5088, allocations: 79.53 kB / 0.9572 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.345e-05/0.5089, allocations: 333.7 kB / 0.9576 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.509, allocations: 113.4 kB / 0.9577 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.5092, allocations: 254.4 kB / 0.9579 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003468/0.5096, allocations: 356.6 kB / 0.9583 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.5096, allocations: 9.312 kB / 0.9583 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005173/0.5101, allocations: 408.1 kB / 0.9587 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.5102, allocations: 6.688 kB / 0.9587 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.5102, allocations: 8.562 kB / 0.9587 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.5102, allocations: 10.75 kB / 0.9587 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001779/0.5104, allocations: 72.8 kB / 0.9587 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.5104, allocations: 6.75 kB / 0.9588 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.5106, allocations: 42.7 kB / 0.9588 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.5106, allocations: 14.5 kB / 0.9588 GB, free: 1.902 MB / 0.7169 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.0001317/0.5107, allocations: 191.5 kB / 0.959 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-05/0.5108, allocations: 21.59 kB / 0.959 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.557e-05/0.5108, allocations: 17.12 kB / 0.959 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.5108, allocations: 3.469 kB / 0.959 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5108, allocations: 0 / 0.959 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.5108, allocations: 4.797 kB / 0.959 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007584/0.5116, allocations: 0.6852 MB / 0.9597 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.5116, allocations: 0 / 0.9597 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.608e-05/0.5117, allocations: 16.89 kB / 0.9597 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.5117, allocations: 0.9375 kB / 0.9597 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.5117, allocations: 12.08 kB / 0.9597 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.5117, allocations: 1.25 kB / 0.9597 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.5118, allocations: 1.375 kB / 0.9597 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005729/0.5123, allocations: 0.5097 MB / 0.9602 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.846e-05/0.5124, allocations: 94.08 kB / 0.9603 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.139e-05/0.5124, allocations: 19.77 kB / 0.9603 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.5126, allocations: 17.8 kB / 0.9604 GB, free: 0.7695 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.184e-05/0.5126, allocations: 26.47 kB / 0.9604 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.5127, allocations: 11.58 kB / 0.9604 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.573e-05/0.5127, allocations: 129.5 kB / 0.9605 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5128, allocations: 1.469 kB / 0.9605 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004074/0.5132, allocations: 110.1 kB / 0.9606 GB, free: 0.6094 MB / 0.7169 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.001253/0.5144, allocations: 1.268 MB / 0.9619 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004823/0.5149, allocations: 322.6 kB / 0.9622 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.5149, allocations: 0 / 0.9622 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001672/0.5151, allocations: 106.7 kB / 0.9623 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/0.5154, allocations: 20.98 kB / 0.9623 GB, free: 15.52 MB / 0.7325 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.002979/0.5184, allocations: 2.962 MB / 0.9652 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002463/0.5186, allocations: 0.7515 MB / 0.9659 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001276/0.5188, allocations: 55.59 kB / 0.966 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.296e-05/0.5189, allocations: 60.17 kB / 0.966 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.5189, allocations: 0 / 0.966 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8118/1.331, allocations: 5.546 MB / 0.9714 GB, free: 9.566 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002529/1.331, allocations: 276.4 kB / 0.9717 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.241/3.572, allocations: 7.875 kB / 0.9717 GB, free: 9.18 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom.fmu > Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe 2>&1)