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.006082/0.006082, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001208/0.001208, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.208/2.208, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.91 kB / 0.9504 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8426/0.8438, allocations: 140.4 MB / 1.087 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002122/0.846, allocations: 1.335 MB / 1.089 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006393/0.8467, allocations: 351.4 kB / 1.089 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.966e-05/0.8467, allocations: 1.062 kB / 1.089 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 8.253e-05/0.8468, allocations: 4.641 kB / 1.089 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.468e-05/0.8468, allocations: 5.719 kB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.8472, allocations: 86.17 kB / 1.089 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001004/0.8473, allocations: 63.95 kB / 1.089 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.008e-05/0.8474, allocations: 6.75 kB / 1.089 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.165e-05/0.8474, allocations: 15.3 kB / 1.089 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.805e-05/0.8475, allocations: 19.53 kB / 1.089 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.8475, allocations: 3.188 kB / 1.089 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001679/0.8476, allocations: 83.84 kB / 1.089 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.252e-05/0.8477, allocations: 28.44 kB / 1.089 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.915e-05/0.8478, allocations: 55.11 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002211/0.848, allocations: 151.6 kB / 1.09 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.848, allocations: 1.062 kB / 1.09 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.322e-06/0.848, allocations: 0 / 1.09 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.848, allocations: 0 / 1.09 GB, free: 3.93 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.0004112/0.8484, allocations: 0.5122 MB / 1.09 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.8485, allocations: 13.98 kB / 1.09 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.8485, allocations: 52.73 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.948e-05/0.8486, allocations: 18.16 kB / 1.09 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.124e-05/0.8487, allocations: 176.5 kB / 1.09 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.8487, allocations: 2.438 kB / 1.09 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.8488, allocations: 7.469 kB / 1.09 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.849, allocations: 245.1 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.8491, allocations: 3.938 kB / 1.091 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.8491, allocations: 2.469 kB / 1.091 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.8491, allocations: 0 / 1.091 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001577/0.8492, allocations: 148.3 kB / 1.091 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001512/0.8494, allocations: 191.8 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003945/0.8498, allocations: 0.5381 MB / 1.091 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003735/0.8502, allocations: 0.5202 MB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-06/0.8502, allocations: 0 / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004581/0.8507, allocations: 402 kB / 1.092 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=39): time 1.302e-06/0.8507, allocations: 4 kB / 1.092 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39): time 0.0009265/0.8516, allocations: 0.6936 MB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.441e-05/0.8517, allocations: 109.6 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.645e-05/0.8518, allocations: 95.48 kB / 1.093 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.8518, allocations: 27.53 kB / 1.093 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.088e-05/0.8518, allocations: 85.58 kB / 1.093 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.205e-05/0.8519, allocations: 69.88 kB / 1.093 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.746e-05/0.8519, allocations: 36.58 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.905e-05/0.852, allocations: 331.5 kB / 1.094 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.8521, allocations: 79.5 kB / 1.094 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.8522, allocations: 83.42 kB / 1.094 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003741/0.8526, allocations: 352.6 kB / 1.094 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.8526, allocations: 0 / 1.094 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004195/0.853, allocations: 341.5 kB / 1.095 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.097e-05/0.8531, allocations: 80.88 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.8532, allocations: 0.7812 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.8532, allocations: 0 / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.846e-05/0.8532, allocations: 6.203 kB / 1.095 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.8532, allocations: 5.172 kB / 1.095 GB, free: 460 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.8534, allocations: 25.3 kB / 1.095 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.8534, allocations: 7.766 kB / 1.095 GB, free: 444 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.0002584/0.8537, allocations: 269 kB / 1.095 GB, free: 260 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.332e-05/0.8537, allocations: 21.97 kB / 1.095 GB, free: 252 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.084e-05/0.8537, allocations: 7.047 kB / 1.095 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.8537, allocations: 0 / 1.095 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.8537, allocations: 1.141 kB / 1.095 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.8537, allocations: 0.625 kB / 1.095 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001584/0.8539, allocations: 252.6 kB / 1.095 GB, free: 16 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.8539, allocations: 0.75 kB / 1.095 GB, free: 16 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.583e-06/0.8539, allocations: 1.062 kB / 1.095 GB, free: 16 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.8539, allocations: 3.938 kB / 1.095 GB, free: 12 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.854, allocations: 15.33 kB / 1.095 GB, free: 8 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.854, allocations: 0.7969 kB / 1.095 GB, free: 8 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.854, allocations: 0.5625 kB / 1.095 GB, free: 8 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.8554, allocations: 1.279 MB / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 4.946e-05/0.8555, allocations: 105.9 kB / 1.097 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.8556, allocations: 72.3 kB / 1.097 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.821e-05/0.8557, allocations: 11.7 kB / 1.097 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.267e-05/0.8557, allocations: 9.625 kB / 1.097 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.782e-05/0.8558, allocations: 15.97 kB / 1.097 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.667e-05/0.8558, allocations: 79.03 kB / 1.097 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8558, allocations: 0 / 1.097 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000334/0.8562, allocations: 72.58 kB / 1.097 GB, free: 15.35 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.002185/0.8584, allocations: 1.964 MB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00208/0.8604, allocations: 1.971 MB / 1.101 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.8605, allocations: 0 / 1.101 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001676/0.8621, allocations: 2.013 MB / 1.103 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.8624, allocations: 23.61 kB / 1.103 GB, free: 12.1 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007373/0.8632, allocations: 381 kB / 1.103 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.8635, allocations: 0.718 MB / 1.104 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.456e-05/0.8635, allocations: 0 / 1.104 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.073e-05/0.8635, allocations: 29.92 kB / 1.104 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of SimCode: time 5.01e-07/0.8635, allocations: 5.438 kB / 1.104 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02422/0.8878, allocations: 4.135 MB / 1.108 GB, free: 10.53 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.459/8.347, allocations: 17.17 kB / 1.108 GB, free: 10.52 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