Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_10_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.009435/0.009435, allocations: 100.8 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.001761/0.001761, allocations: 195.3 kB / 16.68 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.461/1.461, 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 10.1.1-maint.10.0.x/package.mo): time 2.486/2.486, allocations: 437 MB / 0.7105 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 67.89 kB / 1.018 GB, free: 9.91 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8117/0.8131, allocations: 151.6 MB / 1.166 GB, free: 3.762 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002463/0.8156, allocations: 1.332 MB / 1.167 GB, free: 2.418 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0007431/0.8164, allocations: 353.4 kB / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.752e-05/0.8164, allocations: 0 / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 9.323e-05/0.8166, allocations: 0 / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.421e-05/0.8166, allocations: 11.88 kB / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003982/0.817, allocations: 99.7 kB / 1.168 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.8171, allocations: 51.91 kB / 1.168 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.732e-05/0.8171, allocations: 4 kB / 1.168 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.049e-05/0.8172, allocations: 23.91 kB / 1.168 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.852e-05/0.8172, allocations: 23.92 kB / 1.168 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.8173, allocations: 8 kB / 1.168 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001528/0.8174, allocations: 83.84 kB / 1.168 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.644e-05/0.8175, allocations: 23.92 kB / 1.168 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.611e-05/0.8175, allocations: 47.73 kB / 1.168 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002073/0.8177, allocations: 159.1 kB / 1.168 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.8178, allocations: 0 / 1.168 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.323e-06/0.8178, allocations: 0 / 1.168 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.01e-06/0.8178, allocations: 0 / 1.168 GB, free: 1.551 MB / 0.8887 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.0004637/0.8182, allocations: 0.5199 MB / 1.169 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.8183, allocations: 8.922 kB / 1.169 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.407e-05/0.8183, allocations: 50.73 kB / 1.169 GB, free: 0.9062 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.818e-05/0.8184, allocations: 16.84 kB / 1.169 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.8186, allocations: 180.2 kB / 1.169 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.8186, allocations: 384 / 1.169 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/0.8186, allocations: 4.375 kB / 1.169 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/0.8189, allocations: 243.7 kB / 1.169 GB, free: 440 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.8189, allocations: 3.938 kB / 1.169 GB, free: 436 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.8189, allocations: 0 / 1.169 GB, free: 436 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.8189, allocations: 8 kB / 1.169 GB, free: 428 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001394/0.8191, allocations: 147.9 kB / 1.169 GB, free: 280 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001579/0.8192, allocations: 189.5 kB / 1.17 GB, free: 40 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00038/0.8196, allocations: 0.5298 MB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000338/0.82, allocations: 0.5204 MB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 6.392e-06/0.82, allocations: 0 / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000417/0.8204, allocations: 419.5 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=39): time 1.132e-06/0.8204, allocations: 0 / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39): time 0.0007055/0.8211, allocations: 0.6749 MB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.627e-05/0.8212, allocations: 105.1 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.943e-05/0.8213, allocations: 105.8 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.8213, allocations: 25.7 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.242e-05/0.8213, allocations: 84.8 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.699e-05/0.8214, allocations: 75.38 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.658e-05/0.8214, allocations: 37.73 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.691e-05/0.8215, allocations: 326.8 kB / 1.172 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.381e-05/0.8216, allocations: 87.91 kB / 1.172 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.309e-05/0.8217, allocations: 87.84 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.822, allocations: 348.4 kB / 1.173 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.822, allocations: 4 kB / 1.173 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003456/0.8224, allocations: 336.1 kB / 1.173 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 7.685e-05/0.8224, allocations: 85.52 kB / 1.173 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.8225, allocations: 0 / 1.173 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.8225, allocations: 8.062 kB / 1.173 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.669e-05/0.8225, allocations: 0 / 1.173 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.8225, allocations: 0 / 1.173 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.392e-05/0.8226, allocations: 19.89 kB / 1.173 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.8227, allocations: 12 kB / 1.173 GB, free: 12.06 MB / 0.9044 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.0002367/0.8229, allocations: 272.7 kB / 1.174 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.066e-05/0.8229, allocations: 23.84 kB / 1.174 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.48e-05/0.823, allocations: 13.2 kB / 1.174 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.823, allocations: 192 / 1.174 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.823, allocations: 0 / 1.174 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.823, allocations: 7.984 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.8232, allocations: 253.3 kB / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.8232, allocations: 0 / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.8232, allocations: 0 / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.8232, allocations: 3.938 kB / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.8232, allocations: 15.98 kB / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.8232, allocations: 0 / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.8232, allocations: 4 kB / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.8244, allocations: 1.275 MB / 1.175 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.081e-05/0.8245, allocations: 100.9 kB / 1.175 GB, free: 9.992 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.665e-05/0.8246, allocations: 71.95 kB / 1.175 GB, free: 9.922 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.737e-05/0.8247, allocations: 8 kB / 1.175 GB, free: 9.914 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.056e-05/0.8247, allocations: 7.984 kB / 1.175 GB, free: 9.906 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.8247, allocations: 19.94 kB / 1.175 GB, free: 9.887 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.698e-05/0.8248, allocations: 75.28 kB / 1.175 GB, free: 9.812 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8248, allocations: 0 / 1.175 GB, free: 9.812 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002878/0.8251, allocations: 67.98 kB / 1.175 GB, free: 9.746 MB / 0.9044 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.001726/0.8268, allocations: 1.968 MB / 1.177 GB, free: 7.758 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001447/0.8283, allocations: 1.96 MB / 1.179 GB, free: 5.785 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8283, allocations: 4 kB / 1.179 GB, free: 5.781 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001306/0.8296, allocations: 2.015 MB / 1.181 GB, free: 3.754 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.8298, allocations: 24.05 kB / 1.181 GB, free: 3.73 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006742/0.8305, allocations: 388.6 kB / 1.182 GB, free: 3.312 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002538/0.8308, allocations: 0.7127 MB / 1.182 GB, free: 2.57 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.479e-05/0.8308, allocations: 4 kB / 1.182 GB, free: 2.566 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.955e-05/0.8308, allocations: 27.44 kB / 1.182 GB, free: 2.539 MB / 0.9044 GB Notification: Performance of SimCode: time 2.31e-07/0.8308, allocations: 4 kB / 1.182 GB, free: 2.535 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/0.8518, allocations: 4.153 MB / 1.186 GB, free: 14.52 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.137/7.989, allocations: 6.25 kB / 1.186 GB, free: 14.51 MB / 0.92 GB (rm -f Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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