Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.007586/0.007586, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001886/0.001886, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.853/2.853, allocations: 482.4 MB / 0.7548 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 67.83 kB / 1.083 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2807, allocations: 162.2 MB / 1.241 GB, free: 10.3 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom): time 0.003137/0.2838, allocations: 1.816 MB / 1.243 GB, free: 8.469 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002329/0.2862, allocations: 1.6 MB / 1.245 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.753e-05/0.2863, allocations: 7.938 kB / 1.245 GB, free: 6.852 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.2865, allocations: 23.78 kB / 1.245 GB, free: 6.828 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001082/0.2866, allocations: 31.8 kB / 1.245 GB, free: 6.797 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006493/0.2872, allocations: 231.2 kB / 1.245 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.2876, allocations: 251.5 kB / 1.245 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.2877, allocations: 57.53 kB / 1.245 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.2879, allocations: 103.7 kB / 1.245 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.288, allocations: 83.66 kB / 1.246 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.82e-05/0.2881, allocations: 16 kB / 1.246 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003947/0.2885, allocations: 211.6 kB / 1.246 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.2886, allocations: 79.78 kB / 1.246 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.2887, allocations: 91.48 kB / 1.246 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004999/0.2892, allocations: 390.6 kB / 1.246 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.2893, allocations: 0 / 1.246 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2893, allocations: 0 / 1.246 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.2893, allocations: 4 kB / 1.246 GB, free: 5.309 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0008711/0.2901, allocations: 0.5604 MB / 1.247 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.2902, allocations: 8.031 kB / 1.247 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.041e-05/0.2903, allocations: 54.72 kB / 1.247 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.529e-05/0.2903, allocations: 28.8 kB / 1.247 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.2907, allocations: 253.8 kB / 1.247 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.2907, allocations: 24.12 kB / 1.247 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.572e-05/0.2908, allocations: 27.95 kB / 1.247 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003873/0.2912, allocations: 209.3 kB / 1.247 GB, free: 4.051 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.2912, allocations: 0 / 1.247 GB, free: 4.051 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.2912, allocations: 8 kB / 1.247 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.2912, allocations: 4 kB / 1.247 GB, free: 4.039 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002651/0.2915, allocations: 111.9 kB / 1.248 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.2928, allocations: 0.586 MB / 1.248 GB, free: 3.293 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004734/0.2933, allocations: 218.4 kB / 1.248 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00018/0.2935, allocations: 100.8 kB / 1.248 GB, free: 2.969 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.2935, allocations: 8 kB / 1.248 GB, free: 2.961 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003224/0.2938, allocations: 169.6 kB / 1.249 GB, free: 2.785 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=27): time 5.02e-06/0.2938, allocations: 0 / 1.249 GB, free: 2.785 MB / 0.9981 GB Notification: Performance of matching and sorting (n=27): time 0.0007641/0.2946, allocations: 395.9 kB / 1.249 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.886e-05/0.2947, allocations: 71.39 kB / 1.249 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001822/0.2948, allocations: 183.2 kB / 1.249 GB, free: 2.121 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.987e-05/0.2949, allocations: 53.69 kB / 1.249 GB, free: 2.062 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.879e-05/0.295, allocations: 121 kB / 1.249 GB, free: 1.941 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.483e-05/0.2951, allocations: 87.36 kB / 1.249 GB, free: 1.855 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.2952, allocations: 82.12 kB / 1.25 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2954, allocations: 334.8 kB / 1.25 GB, free: 1.434 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/0.2956, allocations: 120.7 kB / 1.25 GB, free: 1.312 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003419/0.2959, allocations: 257.5 kB / 1.25 GB, free: 1 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005317/0.2965, allocations: 371.9 kB / 1.251 GB, free: 0.5781 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.2965, allocations: 4 kB / 1.251 GB, free: 0.5742 MB / 0.9981 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006893/0.2972, allocations: 421.2 kB / 1.251 GB, free: 160 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.2972, allocations: 8 kB / 1.251 GB, free: 152 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.2972, allocations: 8 kB / 1.251 GB, free: 144 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.2973, allocations: 8 kB / 1.251 GB, free: 136 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/0.2975, allocations: 59.91 kB / 1.251 GB, free: 76 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.2975, allocations: 15.92 kB / 1.251 GB, free: 60 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001456/0.2977, allocations: 31.78 kB / 1.251 GB, free: 28 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/0.2977, allocations: 16 kB / 1.251 GB, free: 12 kB / 0.9981 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,pyt.uRWri_temp[2],$PRE.pyt.uRWri_temp[2],pyt.uRWri[2],$PRE.pyt.uRWri[2],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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.4799/0.7776, allocations: 177.3 kB / 1.251 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.932e-05/0.7776, allocations: 20.08 kB / 1.251 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.067e-05/0.7777, allocations: 19.8 kB / 1.251 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.7777, allocations: 5.062 kB / 1.251 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.7777, allocations: 0.5156 kB / 1.251 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.7777, allocations: 1.922 kB / 1.251 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.7788, allocations: 0.6896 MB / 1.252 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.7788, allocations: 0.7812 kB / 1.252 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.7789, allocations: 20.88 kB / 1.252 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.7789, allocations: 5.438 kB / 1.252 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.781e-05/0.779, allocations: 11.75 kB / 1.252 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.779, allocations: 2.047 kB / 1.252 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.779, allocations: 1.562 kB / 1.252 GB, free: 14.54 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007108/0.7797, allocations: 0.5085 MB / 1.253 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.216e-05/0.7797, allocations: 102.9 kB / 1.253 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.919e-05/0.7798, allocations: 21.12 kB / 1.253 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.7799, allocations: 12.25 kB / 1.253 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.196e-05/0.78, allocations: 21.3 kB / 1.253 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.78, allocations: 13.03 kB / 1.253 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.353e-05/0.7801, allocations: 129.3 kB / 1.253 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7801, allocations: 0.8125 kB / 1.253 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004657/0.7806, allocations: 110.2 kB / 1.253 GB, free: 14.23 MB / 0.9981 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 (26): * Single equations (assignments): 12 * 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.00152/0.7821, allocations: 1.284 MB / 1.254 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005237/0.7827, allocations: 272.2 kB / 1.254 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.7827, allocations: 3.531 kB / 1.254 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001935/0.7829, allocations: 112 kB / 1.255 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.7832, allocations: 24.09 kB / 1.255 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002928/0.7861, allocations: 2.949 MB / 1.257 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001644/0.7863, allocations: 0.7446 MB / 1.258 GB, free: 11 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001346/0.7865, allocations: 58.97 kB / 1.258 GB, free: 10.99 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.397e-05/0.7865, allocations: 68.08 kB / 1.258 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of SimCode: time 9.52e-07/0.7866, allocations: 0 / 1.258 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02865/0.8152, allocations: 5.87 MB / 1.264 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.008/8.823, allocations: 11.89 kB / 1.264 GB, free: 10.06 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_latest_Buildings_Utilities_IO_Python_3_8_Examples_SimpleRoom.fmu > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Examples.SimpleRoom.pipe 2>&1)