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: translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.271/2.271, allocations: 393.5 MB / 408.4 MB, free: 10.85 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.001578/0.001578, allocations: 191.8 kB / 0.4902 GB, free: 2.105 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.669/1.669, allocations: 223.2 MB / 0.7992 GB, free: 14.68 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.001085/0.001085, allocations: 105.8 kB / 0.9396 GB, free: 1.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003883/0.0003883, allocations: 10.5 kB / 1.09 GB, free: 216 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3286, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2033/0.532, allocations: 150.7 MB / 1.376 GB, free: 2.793 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003101/0.5324, allocations: 79.95 kB / 1.376 GB, free: 2.715 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007401/0.5398, allocations: 2.439 MB / 1.379 GB, free: 280 kB / 0.8698 GB Notification: Performance of FrontEnd: time 2.314e-06/0.5398, allocations: 0 / 1.379 GB, free: 280 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.166e-06/0.5398, allocations: 0 / 1.379 GB, free: 280 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.0006339/0.5405, allocations: 0.5121 MB / 1.379 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.5406, allocations: 8.031 kB / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/0.5407, allocations: 15.89 kB / 1.379 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.5409, allocations: 174.9 kB / 1.38 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.5409, allocations: 4 kB / 1.38 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.058e-05/0.5409, allocations: 4 kB / 1.38 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003351/0.5413, allocations: 241.5 kB / 1.38 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.5413, allocations: 4 kB / 1.38 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.5413, allocations: 4 kB / 1.38 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.5413, allocations: 0 / 1.38 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001616/0.5415, allocations: 148 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000231/0.5417, allocations: 225.2 kB / 1.38 GB, free: 14.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004562/0.5422, allocations: 0.534 MB / 1.381 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 9.659e-06/0.5422, allocations: 0 / 1.381 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004374/0.5427, allocations: 391.6 kB / 1.381 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=39): time 2.494e-06/0.5427, allocations: 0 / 1.381 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of matching and sorting (n=39): time 0.0009375/0.5436, allocations: 0.7858 MB / 1.382 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.196e-05/0.5437, allocations: 109.1 kB / 1.382 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.857e-05/0.5438, allocations: 97.02 kB / 1.382 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.5438, allocations: 25.7 kB / 1.382 GB, free: 12.78 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.02e-05/0.5439, allocations: 88.8 kB / 1.382 GB, free: 12.69 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 7.068e-05/0.544, allocations: 71 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.51e-06/0.544, allocations: 4 kB / 1.382 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.5441, allocations: 326.8 kB / 1.382 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.5442, allocations: 79.98 kB / 1.383 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.863e-05/0.5443, allocations: 87.84 kB / 1.383 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001914/0.5445, allocations: 173.6 kB / 1.383 GB, free: 11.95 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.5445, allocations: 7.969 kB / 1.383 GB, free: 11.94 MB / 0.8855 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003829/0.5449, allocations: 332.1 kB / 1.383 GB, free: 11.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.712e-05/0.545, allocations: 81.64 kB / 1.383 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.5451, allocations: 3.938 kB / 1.383 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.5451, allocations: 4 kB / 1.383 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.903e-05/0.5451, allocations: 0 / 1.383 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.5451, allocations: 0 / 1.383 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.357e-05/0.5452, allocations: 15.84 kB / 1.383 GB, free: 11.49 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.5453, allocations: 8 kB / 1.383 GB, free: 11.48 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.0002733/0.5455, allocations: 271.3 kB / 1.384 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.059e-05/0.5456, allocations: 27.81 kB / 1.384 GB, free: 11.18 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.071e-05/0.5456, allocations: 9.203 kB / 1.384 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.5456, allocations: 0 / 1.384 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.5456, allocations: 0 / 1.384 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.5456, allocations: 0 / 1.384 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002224/0.5459, allocations: 269.3 kB / 1.384 GB, free: 10.85 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.5459, allocations: 0 / 1.384 GB, free: 10.85 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.117e-06/0.5459, allocations: 8.109 kB / 1.384 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.5459, allocations: 0 / 1.384 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.5459, allocations: 19.98 kB / 1.384 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.5459, allocations: 4 kB / 1.384 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5459, allocations: 3.984 kB / 1.384 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.5472, allocations: 1.279 MB / 1.385 GB, free: 9.512 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.239e-05/0.5473, allocations: 96.81 kB / 1.385 GB, free: 9.398 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.5475, allocations: 83.92 kB / 1.385 GB, free: 9.316 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.704e-05/0.5475, allocations: 8 kB / 1.385 GB, free: 9.309 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.359e-05/0.5476, allocations: 11.98 kB / 1.385 GB, free: 9.297 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.5477, allocations: 19.98 kB / 1.385 GB, free: 9.277 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.621e-05/0.5477, allocations: 83.31 kB / 1.385 GB, free: 9.195 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.81e-07/0.5477, allocations: 0 / 1.385 GB, free: 9.195 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003384/0.5481, allocations: 75.94 kB / 1.385 GB, free: 9.121 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.0005509/0.5486, allocations: 254.5 kB / 1.386 GB, free: 8.879 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001656/0.5503, allocations: 1.964 MB / 1.388 GB, free: 6.902 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.5503, allocations: 0 / 1.388 GB, free: 6.902 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001608/0.5519, allocations: 2.03 MB / 1.39 GB, free: 4.859 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001844/0.5521, allocations: 8 kB / 1.39 GB, free: 4.852 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006028/0.5527, allocations: 346.6 kB / 1.39 GB, free: 4.48 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.5531, allocations: 0.7208 MB / 1.391 GB, free: 3.734 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 1.565e-05/0.5531, allocations: 0 / 1.391 GB, free: 3.734 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.244e-05/0.5531, allocations: 11.38 kB / 1.391 GB, free: 3.723 MB / 0.8855 GB Notification: Performance of SimCode: time 6.41e-07/0.5531, allocations: 0 / 1.391 GB, free: 3.723 MB / 0.8855 GB Notification: Performance of Templates: time 0.005884/0.559, allocations: 2.742 MB / 1.393 GB, free: 0.9805 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (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 & ./Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","../files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches