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: "" <> 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.008625/0.008625, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.00207/0.00207, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.211/2.211, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 67.89 kB / 0.9504 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7575/0.7589, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002312/0.7613, allocations: 1.34 MB / 1.089 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006583/0.762, allocations: 347.1 kB / 1.089 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.17e-05/0.762, allocations: 1.25 kB / 1.089 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.587e-05/0.7621, allocations: 4.547 kB / 1.089 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.625e-05/0.7621, allocations: 5.625 kB / 1.089 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004466/0.7626, allocations: 89.34 kB / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.7627, allocations: 60.48 kB / 1.089 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.777e-05/0.7628, allocations: 2.844 kB / 1.089 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.602e-05/0.7628, allocations: 14.38 kB / 1.089 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.43e-05/0.7629, allocations: 28.39 kB / 1.089 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.551e-05/0.7629, allocations: 4.125 kB / 1.089 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.7631, allocations: 83.84 kB / 1.089 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.869e-05/0.7631, allocations: 23.62 kB / 1.089 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.199e-05/0.7632, allocations: 51.34 kB / 1.089 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002708/0.7635, allocations: 155.5 kB / 1.09 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.7635, allocations: 0.6562 kB / 1.09 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.512e-06/0.7635, allocations: 0 / 1.09 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.025e-05/0.7635, allocations: 0 / 1.09 GB, free: 3.91 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.0005416/0.7641, allocations: 0.515 MB / 1.09 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.7641, allocations: 10.8 kB / 1.09 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.662e-05/0.7642, allocations: 59.97 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.7643, allocations: 18.28 kB / 1.09 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.305e-05/0.7644, allocations: 176.3 kB / 1.09 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.7644, allocations: 10.34 kB / 1.09 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.898e-05/0.7645, allocations: 4.609 kB / 1.09 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003472/0.7648, allocations: 243.6 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.7648, allocations: 5.375 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.7649, allocations: 1.156 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.7649, allocations: 0.5156 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000184/0.7651, allocations: 145 kB / 1.091 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000178/0.7652, allocations: 195.2 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00045/0.7657, allocations: 0.5383 MB / 1.091 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003492/0.766, allocations: 0.5204 MB / 1.092 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.7661, allocations: 0 / 1.092 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004749/0.7665, allocations: 405.4 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=39): time 1.193e-06/0.7666, allocations: 0.7812 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39): time 0.0009454/0.7675, allocations: 0.6894 MB / 1.093 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.7676, allocations: 105 kB / 1.093 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.072e-05/0.7676, allocations: 103.5 kB / 1.093 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.7677, allocations: 27.3 kB / 1.093 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.811e-05/0.7677, allocations: 82.31 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.948e-05/0.7677, allocations: 78.2 kB / 1.093 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.742e-05/0.7678, allocations: 32.62 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.079e-05/0.7679, allocations: 327.5 kB / 1.094 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.768, allocations: 83.03 kB / 1.094 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.7681, allocations: 80.56 kB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003488/0.7685, allocations: 360.1 kB / 1.094 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.7685, allocations: 0 / 1.094 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003971/0.7689, allocations: 337.4 kB / 1.095 GB, free: 476 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.883e-05/0.769, allocations: 81.19 kB / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.769, allocations: 0 / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.769, allocations: 1.625 kB / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.185e-05/0.769, allocations: 1.5 kB / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.7691, allocations: 0.5 kB / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.7692, allocations: 26.48 kB / 1.095 GB, free: 416 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.7692, allocations: 6.281 kB / 1.095 GB, free: 416 kB / 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.0002349/0.7694, allocations: 270.4 kB / 1.095 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.47e-05/0.7695, allocations: 26.44 kB / 1.095 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.134e-05/0.7695, allocations: 6.734 kB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.7695, allocations: 0 / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.7695, allocations: 0.5156 kB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.7695, allocations: 1 kB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.7697, allocations: 252.8 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-06/0.7697, allocations: 0 / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.944e-06/0.7697, allocations: 5.234 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.7697, allocations: 3.938 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.26e-05/0.7698, allocations: 19.72 kB / 1.095 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.7698, allocations: 4.906 kB / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.7698, allocations: 0 / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.7714, allocations: 1.284 MB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.986e-05/0.7715, allocations: 98.17 kB / 1.097 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000136/0.7717, allocations: 71.83 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.046e-05/0.7717, allocations: 8.234 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.696e-05/0.7718, allocations: 9.641 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.877e-05/0.7718, allocations: 19.19 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.864e-05/0.7719, allocations: 79.03 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.654e-06/0.7719, allocations: 0 / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003455/0.7722, allocations: 69.31 kB / 1.097 GB, free: 15.32 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.002092/0.7743, allocations: 1.962 MB / 1.099 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001909/0.7763, allocations: 1.968 MB / 1.101 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.7763, allocations: 0 / 1.101 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.7777, allocations: 2.012 MB / 1.103 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.778, allocations: 25.39 kB / 1.103 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007424/0.7787, allocations: 391.1 kB / 1.103 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.779, allocations: 0.7139 MB / 1.104 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.517e-05/0.7791, allocations: 1.312 kB / 1.104 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.427e-05/0.7791, allocations: 30.44 kB / 1.104 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of SimCode: time 7.41e-07/0.7791, allocations: 0 / 1.104 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02533/0.8044, allocations: 4.14 MB / 1.108 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.397/8.202, allocations: 12.47 kB / 1.108 GB, free: 10.48 MB / 0.8731 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.csv --start-time 0 --stop-time 36000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 14.4 Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[535]=36000.000000 File[108]=2030.400000 " Variables in the reference:time,occ.occ Variables in the result:time,occ.one_mu,occ.zero_mu,occ.seed,occ.occ