Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_latest_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.001227/0.001227, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001197/0.001197, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.223/1.223, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.461/2.461, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 67.73 kB / 0.8985 GB, free: 36.85 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.2231, allocations: 157.4 MB / 1.052 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.00228/0.2254, allocations: 1.389 MB / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006779/0.2261, allocations: 379 kB / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.094e-05/0.2261, allocations: 0 / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.366e-05/0.2262, allocations: 0 / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.119e-05/0.2262, allocations: 3.938 kB / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003143/0.2266, allocations: 71.84 kB / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.173e-05/0.2266, allocations: 47.84 kB / 1.054 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.226e-05/0.2267, allocations: 4 kB / 1.054 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.804e-05/0.2267, allocations: 15.98 kB / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.175e-05/0.2268, allocations: 19.91 kB / 1.054 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.2268, allocations: 4 kB / 1.054 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.2269, allocations: 79.86 kB / 1.054 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.264e-05/0.227, allocations: 23.92 kB / 1.054 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.565e-05/0.227, allocations: 55.67 kB / 1.054 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.2272, allocations: 147.6 kB / 1.054 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2272, allocations: 0 / 1.054 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.02e-07/0.2272, allocations: 0 / 1.054 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.306e-06/0.2273, allocations: 0 / 1.054 GB, free: 5.992 MB / 0.8106 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.0004271/0.2277, allocations: 0.5165 MB / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.2277, allocations: 19.95 kB / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.953e-05/0.2278, allocations: 42.75 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.393e-05/0.2279, allocations: 16.83 kB / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.85e-05/0.228, allocations: 168.3 kB / 1.055 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.228, allocations: 4.375 kB / 1.055 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.228, allocations: 8.375 kB / 1.055 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002465/0.2283, allocations: 246 kB / 1.055 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.2283, allocations: 3.938 kB / 1.055 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.2283, allocations: 3.938 kB / 1.055 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.116e-06/0.2283, allocations: 0 / 1.055 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001382/0.2284, allocations: 152 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001479/0.2286, allocations: 189.4 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003621/0.229, allocations: 0.5379 MB / 1.056 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003499/0.2293, allocations: 0.5246 MB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.324e-06/0.2293, allocations: 3.938 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003576/0.2297, allocations: 395.6 kB / 1.057 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=39): time 1.202e-06/0.2297, allocations: 4 kB / 1.057 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39): time 0.0006761/0.2304, allocations: 0.689 MB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.2305, allocations: 105.1 kB / 1.058 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.37e-05/0.2305, allocations: 97.86 kB / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.2305, allocations: 25.7 kB / 1.058 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.59e-05/0.2306, allocations: 88.72 kB / 1.058 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.47e-05/0.2306, allocations: 78.94 kB / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.167e-05/0.2307, allocations: 37.7 kB / 1.058 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.386e-05/0.2308, allocations: 326.9 kB / 1.059 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.951e-05/0.2309, allocations: 79.98 kB / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.932e-05/0.231, allocations: 83.97 kB / 1.059 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/0.2312, allocations: 353.3 kB / 1.059 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2312, allocations: 0 / 1.059 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003158/0.2316, allocations: 332.1 kB / 1.059 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.772e-05/0.2316, allocations: 85.58 kB / 1.059 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.586e-06/0.2316, allocations: 0 / 1.059 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.205e-06/0.2317, allocations: 0 / 1.059 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.88e-05/0.2317, allocations: 12 kB / 1.059 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.2317, allocations: 0 / 1.059 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.493e-05/0.2318, allocations: 23.83 kB / 1.059 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.2318, allocations: 8 kB / 1.059 GB, free: 0.5039 MB / 0.8106 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 (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,occ.hold_time,occ.tNext,$PRE.occ.tNext,occ.mu,occ.occ,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002082/0.232, allocations: 265.7 kB / 1.06 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-05/0.2321, allocations: 23.75 kB / 1.06 GB, free: 212 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.959e-06/0.2321, allocations: 9.219 kB / 1.06 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.2321, allocations: 4 kB / 1.06 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.2321, allocations: 0 / 1.06 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-06/0.2321, allocations: 0 / 1.06 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.2323, allocations: 253.3 kB / 1.06 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.2323, allocations: 0 / 1.06 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.2323, allocations: 0 / 1.06 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2323, allocations: 3.938 kB / 1.06 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.2323, allocations: 15.98 kB / 1.06 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.2324, allocations: 0 / 1.06 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2324, allocations: 0 / 1.06 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.2335, allocations: 1.287 MB / 1.061 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.953e-05/0.2335, allocations: 104.8 kB / 1.061 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.463e-05/0.2336, allocations: 67.95 kB / 1.061 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.143e-05/0.2337, allocations: 8 kB / 1.061 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.354e-05/0.2337, allocations: 11.98 kB / 1.061 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/0.2338, allocations: 11.98 kB / 1.061 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.181e-05/0.2338, allocations: 83.28 kB / 1.062 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2338, allocations: 0 / 1.062 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002661/0.2341, allocations: 64 kB / 1.062 GB, free: 14.2 MB / 0.8262 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 (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.2357, allocations: 1.976 MB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001406/0.2371, allocations: 1.967 MB / 1.065 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2371, allocations: 0 / 1.065 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.2384, allocations: 2.015 MB / 1.067 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001991/0.2386, allocations: 20.16 kB / 1.067 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005923/0.2392, allocations: 406.8 kB / 1.068 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.2395, allocations: 0.7208 MB / 1.069 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.156e-05/0.2395, allocations: 0 / 1.069 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.298e-05/0.2395, allocations: 31.42 kB / 1.069 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.2395, allocations: 3.938 kB / 1.069 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01196/0.2515, allocations: 3.798 MB / 1.072 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001871/0.2517, allocations: 273.8 kB / 1.073 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.652/1.904, allocations: 0 / 1.073 GB, free: 2.945 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1)