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.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: translateModel(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occ.occ",fileNamePrefix="Buildings_9_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_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 105 kB / 16.41 MB, free: 6.465 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.001841/0.001841, allocations: 187 kB / 17.34 MB, free: 5.719 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.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.22/2.22, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 63.89 kB / 0.9515 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.765/0.7663, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002283/0.7687, allocations: 1.342 MB / 1.09 GB, free: 4.594 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006741/0.7693, allocations: 344.4 kB / 1.09 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.217e-05/0.7694, allocations: 1.062 kB / 1.09 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 8.94e-05/0.7695, allocations: 4.688 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.432e-05/0.7695, allocations: 5.766 kB / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004373/0.77, allocations: 85.97 kB / 1.09 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001278/0.7701, allocations: 63.66 kB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.341e-05/0.7702, allocations: 2.797 kB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.769e-05/0.7702, allocations: 22.95 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.863e-05/0.7703, allocations: 20.73 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.7703, allocations: 3.344 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001715/0.7705, allocations: 80.73 kB / 1.09 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.864e-05/0.7705, allocations: 23.12 kB / 1.091 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.719e-05/0.7706, allocations: 54.81 kB / 1.091 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002552/0.7709, allocations: 159.9 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.7709, allocations: 0 / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.194e-06/0.7709, allocations: 0.5625 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.7709, allocations: 1.031 kB / 1.091 GB, free: 4.16 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0004681/0.7714, allocations: 0.5166 MB / 1.091 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.7714, allocations: 10.25 kB / 1.091 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.7715, allocations: 13.89 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.945e-05/0.7716, allocations: 177 kB / 1.091 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.7716, allocations: 6.719 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.442e-05/0.7717, allocations: 7.219 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.772, allocations: 244.6 kB / 1.092 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.772, allocations: 4.125 kB / 1.092 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.772, allocations: 6.125 kB / 1.092 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.772, allocations: 0 / 1.092 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.7722, allocations: 144.7 kB / 1.092 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001432/0.7723, allocations: 191.6 kB / 1.092 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003702/0.7727, allocations: 0.538 MB / 1.093 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003169/0.773, allocations: 0.5202 MB / 1.093 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.773, allocations: 0.7188 kB / 1.093 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004338/0.7735, allocations: 402.2 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=39): time 1.523e-06/0.7735, allocations: 0 / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39): time 0.00094/0.7744, allocations: 0.6931 MB / 1.094 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/0.7745, allocations: 104.5 kB / 1.094 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.084e-05/0.7746, allocations: 108.6 kB / 1.094 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.598e-06/0.7746, allocations: 26.61 kB / 1.094 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.695e-05/0.7746, allocations: 82.05 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.487e-05/0.7747, allocations: 74.38 kB / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.216e-05/0.7747, allocations: 36.7 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.951e-05/0.7748, allocations: 323.8 kB / 1.095 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.88e-05/0.7749, allocations: 82.34 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.828e-05/0.775, allocations: 80.36 kB / 1.095 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003505/0.7754, allocations: 360.3 kB / 1.095 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.7754, allocations: 0 / 1.095 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003943/0.7758, allocations: 337.1 kB / 1.096 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.714e-05/0.7759, allocations: 85.59 kB / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.7759, allocations: 0 / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.7759, allocations: 5.531 kB / 1.096 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.329e-05/0.7759, allocations: 1.062 kB / 1.096 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.776, allocations: 1.391 kB / 1.096 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.7761, allocations: 19.16 kB / 1.096 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.7761, allocations: 6.562 kB / 1.096 GB, free: 0.7227 MB / 0.8575 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.0002515/0.7764, allocations: 271 kB / 1.096 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.918e-05/0.7764, allocations: 25.8 kB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.137e-05/0.7764, allocations: 6.828 kB / 1.096 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.7764, allocations: 0 / 1.096 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.7764, allocations: 0.6875 kB / 1.096 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.7765, allocations: 0.9062 kB / 1.096 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001579/0.7766, allocations: 249 kB / 1.096 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.7766, allocations: 0 / 1.096 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.52e-07/0.7766, allocations: 0 / 1.096 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.7766, allocations: 5.828 kB / 1.096 GB, free: 308 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.853e-05/0.7767, allocations: 22.34 kB / 1.096 GB, free: 296 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.7767, allocations: 0.6562 kB / 1.096 GB, free: 296 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7767, allocations: 0.6562 kB / 1.096 GB, free: 296 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.7781, allocations: 1.279 MB / 1.098 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.215e-05/0.7782, allocations: 97.88 kB / 1.098 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.7783, allocations: 75.98 kB / 1.098 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.504e-05/0.7784, allocations: 8.766 kB / 1.098 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.369e-05/0.7784, allocations: 13.45 kB / 1.098 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-05/0.7784, allocations: 15.89 kB / 1.098 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.542e-05/0.7785, allocations: 78.36 kB / 1.098 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7785, allocations: 0 / 1.098 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003311/0.7788, allocations: 74.22 kB / 1.098 GB, free: 15.63 MB / 0.8731 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.000476/0.7793, allocations: 248.9 kB / 1.098 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001835/0.7812, allocations: 1.968 MB / 1.1 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.7812, allocations: 4.062 kB / 1.1 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0018/0.783, allocations: 2.012 MB / 1.102 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/0.7832, allocations: 18.47 kB / 1.102 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000609/0.7838, allocations: 358.5 kB / 1.102 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.7842, allocations: 0.718 MB / 1.103 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.19e-05/0.7842, allocations: 7.438 kB / 1.103 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of SimCode: time 3.71e-07/0.7842, allocations: 3.938 kB / 1.103 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of Templates: time 0.005086/0.7893, allocations: 2.437 MB / 1.105 GB, free: 12.08 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.makefile (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 & ./Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches