Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",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.001256/0.001256, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001492/0.001492, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.47/2.47, allocations: 390.3 MB / 0.6653 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003514/0.0003514, allocations: 8 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7549/0.7553, allocations: 142.3 MB / 0.9536 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.001531/0.7569, allocations: 1.044 MB / 0.9546 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000787/0.7577, allocations: 336.5 kB / 0.9549 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.058e-05/0.7577, allocations: 1.031 kB / 0.9549 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.452e-05/0.7578, allocations: 3.984 kB / 0.9549 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.726e-05/0.7578, allocations: 4.984 kB / 0.9549 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004338/0.7583, allocations: 68.28 kB / 0.955 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.849e-05/0.7584, allocations: 25.25 kB / 0.955 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.166e-05/0.7584, allocations: 5.875 kB / 0.955 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.279e-05/0.7585, allocations: 19.61 kB / 0.9551 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.127e-05/0.7586, allocations: 22.41 kB / 0.9551 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.571e-05/0.7586, allocations: 2.25 kB / 0.9551 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.7588, allocations: 51.95 kB / 0.9551 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.379e-05/0.7589, allocations: 23.42 kB / 0.9551 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.536e-05/0.7589, allocations: 51.48 kB / 0.9552 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002073/0.7591, allocations: 104 kB / 0.9553 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.7592, allocations: 0 / 0.9553 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.235e-06/0.7592, allocations: 0 / 0.9553 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.7592, allocations: 0 / 0.9553 GB, free: 6.793 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0005105/0.7597, allocations: 0.5035 MB / 0.9558 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.7598, allocations: 9.5 kB / 0.9558 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.398e-05/0.7598, allocations: 47.92 kB / 0.9558 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001378/0.76, allocations: 20.48 kB / 0.9559 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.445e-05/0.7601, allocations: 178.1 kB / 0.956 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.7601, allocations: 2.25 kB / 0.956 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.7601, allocations: 3.438 kB / 0.956 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003743/0.7605, allocations: 244.7 kB / 0.9563 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.7605, allocations: 4 kB / 0.9563 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.7605, allocations: 2.844 kB / 0.9563 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.7606, allocations: 0 / 0.9563 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000227/0.7608, allocations: 147.7 kB / 0.9564 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001775/0.761, allocations: 190.2 kB / 0.9566 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005146/0.7615, allocations: 0.5293 MB / 0.9571 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.203e-06/0.7615, allocations: 0.9062 kB / 0.9571 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005293/0.7621, allocations: 406.4 kB / 0.9575 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=39): time 1.653e-06/0.7621, allocations: 1.344 kB / 0.9575 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39): time 0.001196/0.7633, allocations: 0.7819 MB / 0.9583 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.7634, allocations: 105.2 kB / 0.9584 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.176e-05/0.7634, allocations: 108.9 kB / 0.9585 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.7635, allocations: 26.89 kB / 0.9585 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.438e-05/0.7635, allocations: 81.95 kB / 0.9586 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 7.911e-05/0.7636, allocations: 78.09 kB / 0.9587 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.793e-06/0.7636, allocations: 4.906 kB / 0.9587 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.58e-05/0.7637, allocations: 330.9 kB / 0.959 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.7638, allocations: 85.28 kB / 0.9591 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.764, allocations: 81.36 kB / 0.9591 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002489/0.7642, allocations: 178.6 kB / 0.9593 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.7642, allocations: 0 / 0.9593 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004894/0.7647, allocations: 328.4 kB / 0.9596 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.000113/0.7649, allocations: 81.61 kB / 0.9597 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.7649, allocations: 1.031 kB / 0.9597 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.7649, allocations: 0 / 0.9597 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.845e-05/0.765, allocations: 6.188 kB / 0.9597 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.765, allocations: 0 / 0.9597 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.7652, allocations: 21.31 kB / 0.9597 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/0.7652, allocations: 14.19 kB / 0.9597 GB, free: 3.426 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 40 ($whenCondition1,occ.occ,occ.mu,$PRE.occ.tNext,occ.tNext,occ.hold_time,occ.r,occ.state[1],occ.state[2],occ.state[3],occ.state[4],occ.state[5],occ.state[6],occ.state[7],occ.state[8],occ.state[9],occ.state[10],occ.state[11],occ.state[12],occ.state[13],occ.state[14],occ.state[15],occ.state[16],occ.state[17],occ.state[18],occ.state[19],occ.state[20],occ.state[21],occ.state[22],occ.state[23],occ.state[24],occ.state[25],occ.state[26],occ.state[27],occ.state[28],occ.state[29],occ.state[30],occ.state[31],occ.state[32],occ.state[33]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003208/0.7655, allocations: 261.4 kB / 0.96 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.572e-05/0.7656, allocations: 22.69 kB / 0.96 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.289e-05/0.7656, allocations: 5.219 kB / 0.96 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.7656, allocations: 0.9688 kB / 0.96 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.7656, allocations: 0 / 0.96 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.7657, allocations: 5.031 kB / 0.96 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/0.7659, allocations: 251.9 kB / 0.9603 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.7659, allocations: 0.6875 kB / 0.9603 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.465e-06/0.7659, allocations: 0 / 0.9603 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.7659, allocations: 4.688 kB / 0.9603 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.162e-05/0.766, allocations: 21.02 kB / 0.9603 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.766, allocations: 0 / 0.9603 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.766, allocations: 0 / 0.9603 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.7678, allocations: 1.286 MB / 0.9615 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.778e-05/0.7678, allocations: 93.98 kB / 0.9616 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.768, allocations: 70.64 kB / 0.9617 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.7681, allocations: 11.97 kB / 0.9617 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.798e-05/0.7682, allocations: 8.297 kB / 0.9617 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.644e-05/0.7682, allocations: 16.17 kB / 0.9617 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.062e-05/0.7683, allocations: 77.59 kB / 0.9618 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7683, allocations: 3.938 kB / 0.9618 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0005035/0.7688, allocations: 72.69 kB / 0.9619 GB, free: 2.098 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 ($whenCondition1,occ.occ,occ.mu,occ.tNext,occ.hold_time,occ.r,occ.state[1],occ.state[2],occ.state[3],occ.state[4],occ.state[5],occ.state[6],occ.state[7],occ.state[8],occ.state[9],occ.state[10],occ.state[11],occ.state[12],occ.state[13],occ.state[14],occ.state[15],occ.state[16],occ.state[17],occ.state[18],occ.state[19],occ.state[20],occ.state[21],occ.state[22],occ.state[23],occ.state[24],occ.state[25],occ.state[26],occ.state[27],occ.state[28],occ.state[29],occ.state[30],occ.state[31],occ.state[32],occ.state[33]) * Number of discrete states: 39 (occ.tNext,occ.hold_time,occ.mu,occ.occ,occ.state[33],occ.state[32],occ.state[31],occ.state[30],occ.state[29],occ.state[28],occ.state[27],occ.state[26],occ.state[25],occ.state[24],occ.state[23],occ.state[22],occ.state[21],occ.state[20],occ.state[19],occ.state[18],occ.state[17],occ.state[16],occ.state[15],occ.state[14],occ.state[13],occ.state[12],occ.state[11],occ.state[10],occ.state[9],occ.state[8],occ.state[7],occ.state[6],occ.state[5],occ.state[4],occ.state[3],occ.state[2],occ.state[1],occ.r,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002323/0.7711, allocations: 1.961 MB / 0.9638 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002406/0.7735, allocations: 1.965 MB / 0.9657 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.7736, allocations: 0 / 0.9657 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.002567/0.7761, allocations: 2.019 MB / 0.9677 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.7764, allocations: 15.48 kB / 0.9677 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.7776, allocations: 403.8 kB / 0.9681 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004479/0.7781, allocations: 0.7218 MB / 0.9688 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.028e-05/0.7781, allocations: 0.8125 kB / 0.9688 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.08e-05/0.7782, allocations: 27.44 kB / 0.9688 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of SimCode: time 5.51e-07/0.7782, allocations: 1.031 kB / 0.9688 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04248/0.8207, allocations: 3.852 MB / 0.9726 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002819/0.821, allocations: 234.3 kB / 0.9728 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/2.535, allocations: 0 / 0.9728 GB, free: 11.29 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat does not exist to compare? outputFormat=mat