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.005762/0.005762, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001278/0.001278, allocations: 190.6 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.387/1.387, 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.394/2.394, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001648, allocations: 60.14 kB / 0.9504 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8393/0.841, allocations: 140.4 MB / 1.087 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.003135/0.8442, allocations: 1.77 MB / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002343/0.8465, allocations: 1.599 MB / 1.091 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.632e-05/0.8466, allocations: 5.094 kB / 1.091 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002017/0.8469, allocations: 28.77 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001143/0.847, allocations: 20 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000711/0.8477, allocations: 236 kB / 1.091 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003451/0.8481, allocations: 241.8 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.8482, allocations: 62.23 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001708/0.8484, allocations: 101.3 kB / 1.091 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.8486, allocations: 71.44 kB / 1.091 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.159e-05/0.8486, allocations: 16.08 kB / 1.091 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004325/0.849, allocations: 212.9 kB / 1.092 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.8492, allocations: 79.39 kB / 1.092 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.8493, allocations: 93.39 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005157/0.8498, allocations: 377.5 kB / 1.092 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.8499, allocations: 1.438 kB / 1.092 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.402e-06/0.8499, allocations: 0 / 1.092 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.754e-06/0.8499, allocations: 0 / 1.092 GB, free: 2.297 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.001035/0.8509, allocations: 0.5646 MB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.851, allocations: 8.781 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.103e-05/0.851, allocations: 58.89 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.225e-05/0.8511, allocations: 26.19 kB / 1.093 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.8514, allocations: 236.2 kB / 1.093 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.8514, allocations: 23.78 kB / 1.093 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.953e-05/0.8515, allocations: 25.56 kB / 1.093 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004123/0.8519, allocations: 204.2 kB / 1.093 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.8519, allocations: 0 / 1.093 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.484e-05/0.852, allocations: 7.75 kB / 1.093 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.852, allocations: 4.094 kB / 1.093 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002648/0.8522, allocations: 124.1 kB / 1.093 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.8536, allocations: 0.5826 MB / 1.094 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009184/0.8545, allocations: 285.9 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001839/0.8547, allocations: 96.59 kB / 1.094 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.8548, allocations: 11.38 kB / 1.094 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003696/0.8551, allocations: 169.7 kB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 2.234e-06/0.8551, allocations: 0 / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.000832/0.856, allocations: 386.6 kB / 1.095 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.856, allocations: 69.17 kB / 1.095 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.8562, allocations: 189.3 kB / 1.095 GB, free: 476 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.495e-05/0.8563, allocations: 47.48 kB / 1.095 GB, free: 436 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.819e-05/0.8563, allocations: 122.4 kB / 1.095 GB, free: 324 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.98e-05/0.8564, allocations: 80.27 kB / 1.095 GB, free: 264 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.8565, allocations: 78.67 kB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.8567, allocations: 334.1 kB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002491/0.8569, allocations: 114.1 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003425/0.8573, allocations: 252.8 kB / 1.096 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005234/0.8578, allocations: 368.5 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.8578, allocations: 5.688 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000712/0.8585, allocations: 408.2 kB / 1.097 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.8586, allocations: 6.812 kB / 1.097 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.8586, allocations: 9.297 kB / 1.097 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.462e-05/0.8586, allocations: 6.469 kB / 1.097 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002192/0.8588, allocations: 60.19 kB / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.764e-05/0.8589, allocations: 11.25 kB / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.8591, allocations: 46.73 kB / 1.097 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.799e-05/0.8591, allocations: 15.52 kB / 1.097 GB, free: 15.18 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.0002241/0.8594, allocations: 189.1 kB / 1.097 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.661e-05/0.8594, allocations: 17.7 kB / 1.097 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.085e-05/0.8595, allocations: 19.92 kB / 1.097 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.8595, allocations: 3.375 kB / 1.097 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.8595, allocations: 0.7031 kB / 1.097 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.8595, allocations: 0.7969 kB / 1.097 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.8606, allocations: 0.6814 MB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.8606, allocations: 0.9062 kB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.8608, allocations: 16.66 kB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.8608, allocations: 1.062 kB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.8608, allocations: 12.09 kB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.8608, allocations: 1.25 kB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.8608, allocations: 4.562 kB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008507/0.8617, allocations: 0.5167 MB / 1.098 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.24e-05/0.8618, allocations: 99.08 kB / 1.099 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.542e-05/0.8618, allocations: 15.7 kB / 1.099 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.862, allocations: 19.72 kB / 1.099 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.868e-05/0.8621, allocations: 24.5 kB / 1.099 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.8621, allocations: 12.3 kB / 1.099 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001283/0.8623, allocations: 136.8 kB / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8623, allocations: 0 / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006376/0.8629, allocations: 101.5 kB / 1.099 GB, free: 14.09 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.001815/0.8648, allocations: 1.278 MB / 1.1 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006497/0.8654, allocations: 276.6 kB / 1.1 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.8654, allocations: 1.094 kB / 1.1 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002264/0.8657, allocations: 105.7 kB / 1.1 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003597/0.866, allocations: 25.39 kB / 1.1 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005031/0.8711, allocations: 2.904 MB / 1.103 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.8715, allocations: 0.7476 MB / 1.104 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001828/0.8716, allocations: 52.45 kB / 1.104 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.8718, allocations: 65.86 kB / 1.104 GB, free: 10.34 MB / 0.8731 GB Notification: Performance of SimCode: time 6.51e-07/0.8718, allocations: 0 / 1.104 GB, free: 10.34 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.9006, allocations: 5.74 MB / 1.11 GB, free: 9.441 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.068/8.968, allocations: 5.953 kB / 1.11 GB, free: 9.438 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)