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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008825/0.0008825, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005004/0.005004, allocations: 172.8 kB / 16.27 MB, free: 6.652 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.183/1.183, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.1/2.1, allocations: 390.9 MB / 0.6664 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002648/0.0002648, allocations: 12 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5102/0.5105, allocations: 142.4 MB / 0.9552 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.001616/0.5121, allocations: 1.476 MB / 0.9566 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001744/0.5139, allocations: 1.574 MB / 0.9581 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.044e-05/0.514, allocations: 5.75 kB / 0.9581 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.5141, allocations: 17.61 kB / 0.9582 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.971e-05/0.5143, allocations: 23.48 kB / 0.9582 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005134/0.5148, allocations: 190 kB / 0.9584 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002326/0.515, allocations: 228.2 kB / 0.9586 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.5151, allocations: 58.14 kB / 0.9586 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.5153, allocations: 79.64 kB / 0.9587 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.5154, allocations: 72.56 kB / 0.9588 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.5154, allocations: 4.438 kB / 0.9588 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003315/0.5158, allocations: 185 kB / 0.959 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.334e-05/0.5159, allocations: 61.59 kB / 0.959 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.772e-05/0.516, allocations: 117.8 kB / 0.9591 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003566/0.5163, allocations: 356.9 kB / 0.9595 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.5163, allocations: 0 / 0.9595 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.493e-06/0.5163, allocations: 1.375 kB / 0.9595 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.251e-06/0.5163, allocations: 0 / 0.9595 GB, free: 4.641 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.0007474/0.5171, allocations: 0.5314 MB / 0.96 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.5171, allocations: 9.625 kB / 0.96 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.798e-05/0.5172, allocations: 53.61 kB / 0.9601 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.96e-05/0.5172, allocations: 26.5 kB / 0.9601 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.5174, allocations: 255.9 kB / 0.9603 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.5175, allocations: 22.08 kB / 0.9603 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.36e-05/0.5175, allocations: 24.5 kB / 0.9604 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003184/0.5178, allocations: 202.6 kB / 0.9606 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.5179, allocations: 5.375 kB / 0.9606 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.5179, allocations: 9.359 kB / 0.9606 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.5179, allocations: 4.125 kB / 0.9606 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002168/0.5181, allocations: 122.9 kB / 0.9607 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.5192, allocations: 0.6015 MB / 0.9613 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007595/0.52, allocations: 293.4 kB / 0.9616 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.5201, allocations: 97.03 kB / 0.9617 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.5202, allocations: 2.188 kB / 0.9617 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002526/0.5204, allocations: 176.7 kB / 0.9618 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=26): time 1.633e-06/0.5204, allocations: 1.031 kB / 0.9618 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26): time 0.0006102/0.521, allocations: 386.4 kB / 0.9622 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/0.5211, allocations: 77.61 kB / 0.9623 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.5212, allocations: 181.4 kB / 0.9624 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.485e-05/0.5213, allocations: 48.53 kB / 0.9625 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.734e-05/0.5213, allocations: 117.1 kB / 0.9626 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.5214, allocations: 83.83 kB / 0.9627 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.908e-05/0.5214, allocations: 47.41 kB / 0.9627 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.807e-05/0.5215, allocations: 337.2 kB / 0.963 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.5217, allocations: 116.4 kB / 0.9632 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.5219, allocations: 256.9 kB / 0.9634 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003713/0.5223, allocations: 360.2 kB / 0.9637 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.5223, allocations: 6.188 kB / 0.9638 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005277/0.5228, allocations: 423 kB / 0.9642 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.5228, allocations: 7.062 kB / 0.9642 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.5228, allocations: 3.938 kB / 0.9642 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.5229, allocations: 7.25 kB / 0.9642 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.5231, allocations: 65.72 kB / 0.9642 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.5231, allocations: 7.219 kB / 0.9642 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.5232, allocations: 50.2 kB / 0.9643 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.5233, allocations: 17.25 kB / 0.9643 GB, free: 1 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.000129/0.5234, allocations: 191.8 kB / 0.9645 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.5234, allocations: 20.86 kB / 0.9645 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.524e-05/0.5235, allocations: 18.03 kB / 0.9645 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.5235, allocations: 3.062 kB / 0.9645 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.5235, allocations: 0 / 0.9645 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.5235, allocations: 5.234 kB / 0.9645 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007712/0.5243, allocations: 0.688 MB / 0.9652 GB, free: 308 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.5243, allocations: 4.094 kB / 0.9652 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.699e-05/0.5244, allocations: 18.5 kB / 0.9652 GB, free: 300 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.5244, allocations: 1.156 kB / 0.9652 GB, free: 300 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.5244, allocations: 11.95 kB / 0.9652 GB, free: 292 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.5244, allocations: 1 kB / 0.9652 GB, free: 292 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.5245, allocations: 0.9688 kB / 0.9652 GB, free: 292 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006237/0.5251, allocations: 0.5166 MB / 0.9657 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.706e-05/0.5251, allocations: 97.27 kB / 0.9658 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.313e-05/0.5252, allocations: 15.88 kB / 0.9659 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.5254, allocations: 25.62 kB / 0.9659 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.247e-05/0.5254, allocations: 21.38 kB / 0.9659 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/0.5255, allocations: 20.42 kB / 0.9659 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.671e-05/0.5255, allocations: 126 kB / 0.966 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5256, allocations: 0 / 0.966 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004275/0.526, allocations: 111.1 kB / 0.9661 GB, free: 15.7 MB / 0.7325 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.00139/0.5274, allocations: 1.27 MB / 0.9674 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004489/0.5278, allocations: 278.7 kB / 0.9677 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.5279, allocations: 0.9375 kB / 0.9677 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001788/0.528, allocations: 120.2 kB / 0.9678 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.5283, allocations: 25.33 kB / 0.9678 GB, free: 14.61 MB / 0.7325 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.003016/0.5314, allocations: 2.988 MB / 0.9707 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.5316, allocations: 0.7468 MB / 0.9714 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001247/0.5318, allocations: 49.06 kB / 0.9715 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.584e-05/0.5318, allocations: 63.28 kB / 0.9715 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.5319, allocations: 4 kB / 0.9716 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.008/2.54, allocations: 5.214 MB / 0.9766 GB, free: 8.965 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002689/2.54, allocations: 273.3 kB / 0.9769 GB, free: 8.59 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.74/4.28, allocations: 0 / 0.9769 GB, free: 8.59 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)