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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.346/2.346, allocations: 393.5 MB / 408.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 183.1 kB / 0.4901 GB, free: 2.273 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.657/1.657, allocations: 223.1 MB / 0.7992 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009352/0.0009352, allocations: 98.84 kB / 0.9396 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003598, allocations: 6.875 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3001, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1942/0.4944, allocations: 150.7 MB / 1.376 GB, free: 2.797 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.4946, allocations: 75.95 kB / 1.377 GB, free: 2.723 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.006999/0.5017, allocations: 2.443 MB / 1.379 GB, free: 284 kB / 0.8698 GB Notification: Performance of FrontEnd: time 2.375e-06/0.5017, allocations: 0 / 1.379 GB, free: 284 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.447e-05/0.5017, allocations: 0 / 1.379 GB, free: 284 kB / 0.8698 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.0006994/0.5024, allocations: 0.5121 MB / 1.379 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.463e-05/0.5025, allocations: 12.56 kB / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.164e-05/0.5026, allocations: 46.48 kB / 1.379 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.5028, allocations: 19.84 kB / 1.379 GB, free: 15.62 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.5029, allocations: 171 kB / 1.38 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.793e-05/0.503, allocations: 16 kB / 1.38 GB, free: 15.4 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.77e-05/0.503, allocations: 0 / 1.38 GB, free: 15.4 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003728/0.5034, allocations: 241.6 kB / 1.38 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.5034, allocations: 0 / 1.38 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.5034, allocations: 0 / 1.38 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.5034, allocations: 0 / 1.38 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.5036, allocations: 144 kB / 1.38 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003073/0.5039, allocations: 225.2 kB / 1.38 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005183/0.5045, allocations: 0.5418 MB / 1.381 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-06/0.5045, allocations: 0 / 1.381 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004713/0.505, allocations: 383.7 kB / 1.381 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=39): time 1.833e-06/0.505, allocations: 0 / 1.381 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=39): time 0.001078/0.5061, allocations: 0.7936 MB / 1.382 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.204e-05/0.5062, allocations: 105 kB / 1.382 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.897e-05/0.5063, allocations: 101 kB / 1.382 GB, free: 12.75 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.5063, allocations: 33.73 kB / 1.382 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.573e-05/0.5064, allocations: 88.67 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 8.285e-05/0.5065, allocations: 67.08 kB / 1.382 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/0.5065, allocations: 0 / 1.382 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001648/0.5067, allocations: 330.8 kB / 1.383 GB, free: 12.22 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.5068, allocations: 75.98 kB / 1.383 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.612e-05/0.5069, allocations: 87.91 kB / 1.383 GB, free: 12.06 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001852/0.5071, allocations: 177.5 kB / 1.383 GB, free: 11.88 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.5071, allocations: 0 / 1.383 GB, free: 11.88 MB / 0.8855 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004046/0.5075, allocations: 336.1 kB / 1.383 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.533e-05/0.5076, allocations: 81.64 kB / 1.383 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.5076, allocations: 0 / 1.383 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.5076, allocations: 0 / 1.383 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.705e-05/0.5077, allocations: 0 / 1.383 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.5077, allocations: 3.938 kB / 1.383 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.141e-05/0.5078, allocations: 19.84 kB / 1.383 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.5078, allocations: 4 kB / 1.383 GB, free: 11.43 MB / 0.8855 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.000293/0.5081, allocations: 273.7 kB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.494e-05/0.5082, allocations: 31.8 kB / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.692e-05/0.5082, allocations: 5.219 kB / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.5082, allocations: 0 / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.5082, allocations: 0 / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.5082, allocations: 0 / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002616/0.5085, allocations: 273.2 kB / 1.384 GB, free: 10.79 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.5085, allocations: 192 / 1.384 GB, free: 10.79 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.006e-06/0.5085, allocations: 3.984 kB / 1.384 GB, free: 10.79 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.5085, allocations: 4 kB / 1.384 GB, free: 10.78 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.311e-05/0.5086, allocations: 15.97 kB / 1.384 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.5086, allocations: 0 / 1.384 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5086, allocations: 4 kB / 1.384 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.5101, allocations: 1.283 MB / 1.385 GB, free: 9.453 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.925e-05/0.5102, allocations: 92.86 kB / 1.385 GB, free: 9.344 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/0.5104, allocations: 83.86 kB / 1.385 GB, free: 9.262 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.5105, allocations: 12 kB / 1.385 GB, free: 9.25 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.802e-05/0.5106, allocations: 7.984 kB / 1.385 GB, free: 9.242 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.066e-05/0.5107, allocations: 27.97 kB / 1.385 GB, free: 9.215 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.471e-05/0.5107, allocations: 79.31 kB / 1.385 GB, free: 9.137 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5107, allocations: 0 / 1.385 GB, free: 9.137 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003725/0.5111, allocations: 83.88 kB / 1.386 GB, free: 9.055 MB / 0.8855 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.002123/0.5133, allocations: 1.96 MB / 1.387 GB, free: 7.074 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001952/0.5152, allocations: 1.971 MB / 1.389 GB, free: 5.09 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.5152, allocations: 0 / 1.389 GB, free: 5.09 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001742/0.517, allocations: 2.015 MB / 1.391 GB, free: 3.062 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/0.5172, allocations: 16.8 kB / 1.391 GB, free: 3.047 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007949/0.518, allocations: 412.3 kB / 1.392 GB, free: 2.598 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.5184, allocations: 0.7169 MB / 1.392 GB, free: 1.855 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.33e-05/0.5184, allocations: 4 kB / 1.392 GB, free: 1.852 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.41e-05/0.5185, allocations: 35.42 kB / 1.393 GB, free: 1.816 MB / 0.8855 GB Notification: Performance of SimCode: time 1.192e-06/0.5185, allocations: 0 / 1.393 GB, free: 1.816 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.5369, allocations: 4.232 MB / 1.397 GB, free: 13.76 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002303/0.5371, allocations: 238.5 kB / 1.397 GB, free: 13.52 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/2.184, allocations: 0 / 1.397 GB, free: 13.52 MB / 0.9011 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat does not exist to compare? outputFormat=mat