Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.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.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV,fileNamePrefix="Buildings_9_Buildings_Examples_VAVReheat_BaseClasses_Controls_Examples_RoomVAV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV,fileNamePrefix="Buildings_9_Buildings_Examples_VAVReheat_BaseClasses_Controls_Examples_RoomVAV",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.008664/0.008664, allocations: 101.8 kB / 15.73 MB, free: 6.477 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.001528/0.001528, allocations: 192.4 kB / 16.67 MB, free: 6.391 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.375 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.477/2.477, allocations: 390.2 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001289, allocations: 63.41 kB / 0.9504 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3084, allocations: 140.4 MB / 1.087 GB, free: 2.031 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV): time 0.006695/0.3151, allocations: 3.239 MB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002769/0.318, allocations: 0.8412 MB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001001/0.319, allocations: 8 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006037/0.3197, allocations: 102.9 kB / 1.092 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006944/0.3204, allocations: 87.12 kB / 1.092 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008911/0.3213, allocations: 259.6 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001223/0.3226, allocations: 0.7392 MB / 1.093 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007905/0.3234, allocations: 412.5 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004713/0.3239, allocations: 258.9 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002752/0.3242, allocations: 274.5 kB / 1.094 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.3243, allocations: 84 kB / 1.094 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.825e-05/0.3244, allocations: 88 kB / 1.094 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.3245, allocations: 171.5 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002849/0.3248, allocations: 318.3 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008936/0.3257, allocations: 0.9623 MB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.3257, allocations: 4 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.074e-06/0.3257, allocations: 0 / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.144e-05/0.3258, allocations: 0 / 1.095 GB, free: 10.18 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001637/0.3274, allocations: 0.9237 MB / 1.096 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.3275, allocations: 12.03 kB / 1.096 GB, free: 9.188 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.3276, allocations: 94.64 kB / 1.096 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/0.3277, allocations: 72.09 kB / 1.096 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007459/0.3285, allocations: 467.3 kB / 1.097 GB, free: 8.52 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.047e-05/0.3285, allocations: 41.69 kB / 1.097 GB, free: 8.48 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.209e-05/0.3286, allocations: 52.38 kB / 1.097 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009866/0.3296, allocations: 0.5501 MB / 1.097 GB, free: 7.859 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.3296, allocations: 4 kB / 1.097 GB, free: 7.855 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.72e-05/0.3297, allocations: 20 kB / 1.097 GB, free: 7.836 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.3297, allocations: 12 kB / 1.097 GB, free: 7.824 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008969/0.3306, allocations: 423.7 kB / 1.098 GB, free: 7.414 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.3333, allocations: 1.833 MB / 1.099 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.3347, allocations: 478.9 kB / 1.1 GB, free: 5.031 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004097/0.3351, allocations: 212.8 kB / 1.1 GB, free: 4.82 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.471e-05/0.3351, allocations: 7.938 kB / 1.1 GB, free: 4.812 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.3352, allocations: 38.5 kB / 1.1 GB, free: 4.766 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=32): time 2.685e-06/0.3352, allocations: 0 / 1.1 GB, free: 4.766 MB / 0.8575 GB Notification: Performance of matching and sorting (n=32): time 0.001192/0.3364, allocations: 493.3 kB / 1.101 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.97e-05/0.3365, allocations: 106.8 kB / 1.101 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000561/0.337, allocations: 0.4902 MB / 1.101 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.599e-05/0.3371, allocations: 37.69 kB / 1.101 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002434/0.3373, allocations: 296.2 kB / 1.102 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.775e-05/0.3374, allocations: 114.9 kB / 1.102 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.3376, allocations: 77.97 kB / 1.102 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3377, allocations: 366.8 kB / 1.102 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003497/0.3381, allocations: 150.3 kB / 1.102 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004033/0.3385, allocations: 255 kB / 1.102 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000683/0.3392, allocations: 354.4 kB / 1.103 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.3392, allocations: 0 / 1.103 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009059/0.3401, allocations: 452.5 kB / 1.103 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.3401, allocations: 11.94 kB / 1.103 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3401, allocations: 0 / 1.103 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.3402, allocations: 4 kB / 1.103 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003566/0.3405, allocations: 83.89 kB / 1.103 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.3405, allocations: 7.922 kB / 1.103 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/0.3409, allocations: 83.42 kB / 1.103 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/0.3409, allocations: 12 kB / 1.103 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004148/0.3413, allocations: 264.1 kB / 1.104 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003145/0.3417, allocations: 219.8 kB / 1.104 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005152/0.3422, allocations: 310.7 kB / 1.104 GB, free: 460 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.335e-06/0.3422, allocations: 0 / 1.104 GB, free: 460 kB / 0.8575 GB Notification: Performance of matching and sorting (n=45) (initialization_lambda0): time 0.0006928/0.3429, allocations: 404.3 kB / 1.105 GB, free: 48 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.3429, allocations: 9.391 kB / 1.105 GB, free: 40 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.3429, allocations: 7.938 kB / 1.105 GB, free: 32 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.014e-06/0.343, allocations: 4 kB / 1.105 GB, free: 28 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003077/0.3433, allocations: 71.91 kB / 1.105 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.3433, allocations: 4 kB / 1.105 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002934/0.3436, allocations: 51.7 kB / 1.105 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.3436, allocations: 16.03 kB / 1.105 GB, free: 15.89 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 5 (vavBoxCon.conCoo.con1.y,vavBoxCon.conHea.con1.y,vavBoxCon.hysWitHol.y,$PRE.vavBoxCon.hysWitHol.y,vavBoxCon.greThr.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * 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.000184/0.3438, allocations: 200.2 kB / 1.105 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.176e-05/0.3439, allocations: 59.22 kB / 1.105 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008825/0.3448, allocations: 398 kB / 1.105 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.3448, allocations: 4 kB / 1.105 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3448, allocations: 0 / 1.105 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3448, allocations: 3.984 kB / 1.105 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006103/0.3454, allocations: 0.5478 MB / 1.106 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3454, allocations: 0 / 1.106 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003268/0.3458, allocations: 71.89 kB / 1.106 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.3458, allocations: 3.938 kB / 1.106 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/0.3458, allocations: 8.062 kB / 1.106 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.3458, allocations: 15.98 kB / 1.106 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3458, allocations: 0 / 1.106 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.347, allocations: 0.6433 MB / 1.107 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.3472, allocations: 140.3 kB / 1.107 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.368e-05/0.3472, allocations: 4 kB / 1.107 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002648/0.3475, allocations: 35.95 kB / 1.107 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.653e-05/0.3476, allocations: 23.97 kB / 1.107 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.562e-05/0.3476, allocations: 11.98 kB / 1.107 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004707/0.3481, allocations: 350.9 kB / 1.107 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3481, allocations: 4.062 kB / 1.107 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006111/0.3487, allocations: 167.4 kB / 1.107 GB, free: 13.13 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (vavBoxCon.conHea.I.y,vavBoxCon.conCoo.I.y) * Number of discrete variables: 1 (vavBoxCon.hysWitHol.y) * Number of discrete states: 1 (vavBoxCon.hysWitHol.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.001583/0.3503, allocations: 1.196 MB / 1.108 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001201/0.3515, allocations: 0.5113 MB / 1.109 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.3516, allocations: 4 kB / 1.109 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003654/0.3519, allocations: 165.2 kB / 1.109 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000685/0.3526, allocations: 97.7 kB / 1.109 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006891/0.3595, allocations: 4.357 MB / 1.113 GB, free: 6.652 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/0.3601, allocations: 0.8587 MB / 1.114 GB, free: 5.77 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002808/0.3604, allocations: 56.16 kB / 1.114 GB, free: 5.715 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/0.3607, allocations: 203.3 kB / 1.115 GB, free: 5.516 MB / 0.8731 GB Notification: Performance of SimCode: time 9.01e-07/0.3607, allocations: 0 / 1.115 GB, free: 5.516 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.885/2.245, allocations: 9.846 MB / 1.124 GB, free: 11.85 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.84/17.09, allocations: 2.938 kB / 1.124 GB, free: 11.85 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe ; mkfifo Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe >> ../files/Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_VAVReheat_BaseClasses_Controls_Examples_RoomVAV_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_VAVReheat_BaseClasses_Controls_Examples_RoomVAV.fmu > Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe 2>&1)