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.005621/0.005621, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001232/0.001232, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.338/2.338, allocations: 390.2 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 59.91 kB / 0.9504 GB, free: 8.207 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8956/0.897, allocations: 140.4 MB / 1.087 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.002947/0.9, allocations: 1.774 MB / 1.089 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002142/0.9022, allocations: 1.6 MB / 1.091 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.351e-05/0.9023, allocations: 5.656 kB / 1.091 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001852/0.9024, allocations: 24.56 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.9026, allocations: 19.48 kB / 1.091 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006947/0.9033, allocations: 236.2 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003403/0.9036, allocations: 242.3 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.9038, allocations: 63.72 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.904, allocations: 98.5 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.9041, allocations: 79.17 kB / 1.091 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.9042, allocations: 13.03 kB / 1.091 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004496/0.9046, allocations: 213.1 kB / 1.092 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.9048, allocations: 78.3 kB / 1.092 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.9049, allocations: 98.41 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005628/0.9054, allocations: 376.4 kB / 1.092 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.9055, allocations: 0 / 1.092 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.353e-06/0.9055, allocations: 0.7812 kB / 1.092 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.9055, allocations: 0 / 1.092 GB, free: 2.301 MB / 0.8575 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.000968/0.9064, allocations: 0.5789 MB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.9065, allocations: 10.33 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.288e-05/0.9066, allocations: 50.58 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.493e-05/0.9066, allocations: 26.67 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002518/0.9069, allocations: 244.2 kB / 1.093 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.799e-05/0.9069, allocations: 22.73 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.556e-05/0.907, allocations: 22 kB / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004166/0.9074, allocations: 212.7 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.9074, allocations: 0 / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.9075, allocations: 7.797 kB / 1.093 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.9075, allocations: 3.875 kB / 1.093 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002622/0.9077, allocations: 116 kB / 1.093 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.9091, allocations: 0.5825 MB / 1.094 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008823/0.91, allocations: 290.3 kB / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.9102, allocations: 96.64 kB / 1.094 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.9102, allocations: 3.031 kB / 1.094 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003788/0.9106, allocations: 162.7 kB / 1.095 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 2.024e-06/0.9106, allocations: 0 / 1.095 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.0008255/0.9114, allocations: 389.5 kB / 1.095 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.9115, allocations: 68.52 kB / 1.095 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.9117, allocations: 191.3 kB / 1.095 GB, free: 476 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.218e-05/0.9117, allocations: 46.53 kB / 1.095 GB, free: 436 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.724e-05/0.9118, allocations: 130.5 kB / 1.095 GB, free: 316 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.359e-05/0.9119, allocations: 75.98 kB / 1.095 GB, free: 260 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.912, allocations: 78.84 kB / 1.095 GB, free: 212 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.9121, allocations: 342.2 kB / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/0.9123, allocations: 113.9 kB / 1.096 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000339/0.9127, allocations: 252.1 kB / 1.096 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005553/0.9133, allocations: 366 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/0.9133, allocations: 4.531 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007524/0.914, allocations: 416.4 kB / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.9141, allocations: 7.422 kB / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.9141, allocations: 8.516 kB / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.9141, allocations: 6.531 kB / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.9143, allocations: 64.52 kB / 1.097 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.565e-05/0.9143, allocations: 7.703 kB / 1.097 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001927/0.9145, allocations: 43.03 kB / 1.097 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.966e-05/0.9146, allocations: 19.36 kB / 1.097 GB, free: 15.17 MB / 0.8731 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.0002022/0.9148, allocations: 181 kB / 1.097 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.93e-05/0.9148, allocations: 18.72 kB / 1.097 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.955e-05/0.9149, allocations: 23.67 kB / 1.097 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.9149, allocations: 2.906 kB / 1.097 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.9149, allocations: 0 / 1.097 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.9149, allocations: 2.562 kB / 1.097 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.9161, allocations: 0.6842 MB / 1.098 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.9161, allocations: 1.094 kB / 1.098 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.9162, allocations: 15.81 kB / 1.098 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.9163, allocations: 1.125 kB / 1.098 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.838e-05/0.9163, allocations: 12.88 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.9163, allocations: 5.219 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.9163, allocations: 0.7031 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009764/0.9173, allocations: 0.5083 MB / 1.098 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.463e-05/0.9174, allocations: 99.5 kB / 1.099 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.535e-05/0.9175, allocations: 21.06 kB / 1.099 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.9177, allocations: 22.72 kB / 1.099 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.575e-05/0.9178, allocations: 24.98 kB / 1.099 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-05/0.9178, allocations: 15.25 kB / 1.099 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001521/0.918, allocations: 133.1 kB / 1.099 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.918, allocations: 0 / 1.099 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006402/0.9186, allocations: 104.5 kB / 1.099 GB, free: 14.07 MB / 0.8731 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.002098/0.9207, allocations: 1.279 MB / 1.1 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006031/0.9214, allocations: 278.1 kB / 1.1 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.9214, allocations: 0.9375 kB / 1.1 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002195/0.9216, allocations: 105.5 kB / 1.101 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003575/0.922, allocations: 30.78 kB / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004143/0.9261, allocations: 2.911 MB / 1.103 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.9265, allocations: 0.7442 MB / 1.104 GB, free: 10.36 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001575/0.9266, allocations: 53.58 kB / 1.104 GB, free: 10.36 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.9267, allocations: 60.94 kB / 1.104 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of SimCode: time 4.11e-07/0.9267, allocations: 0 / 1.104 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.9543, allocations: 5.752 MB / 1.11 GB, free: 9.406 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.905/8.859, allocations: 5.391 kB / 1.11 GB, free: 9.402 MB / 0.8731 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_9_Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom.fmu > Buildings_9_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe 2>&1)