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.001344/0.001344, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.452/1.452, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.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.62/2.62, allocations: 437 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002211/0.002211, allocations: 63.89 kB / 0.8693 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7309/0.7332, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002252/0.7354, allocations: 1.324 MB / 1.019 GB, free: 1.141 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006884/0.7361, allocations: 362.8 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.831e-05/0.7362, allocations: 0 / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 7.768e-05/0.7363, allocations: 0 / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.541e-05/0.7363, allocations: 3.938 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004155/0.7367, allocations: 95.7 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.888e-05/0.7368, allocations: 59.91 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.606e-05/0.7369, allocations: 4 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.023e-05/0.7369, allocations: 19.92 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.245e-05/0.737, allocations: 11.98 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.232e-05/0.737, allocations: 7.938 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.7372, allocations: 87.84 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.762e-05/0.7372, allocations: 27.92 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.231e-05/0.7373, allocations: 47.73 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.00021/0.7375, allocations: 159.5 kB / 1.02 GB, free: 276 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.7375, allocations: 0 / 1.02 GB, free: 276 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.363e-06/0.7375, allocations: 4 kB / 1.02 GB, free: 272 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.7375, allocations: 0 / 1.02 GB, free: 272 kB / 0.7637 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.0004956/0.738, allocations: 0.5067 MB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.7381, allocations: 12.03 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.77e-05/0.7381, allocations: 42.73 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.7382, allocations: 16.75 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.7383, allocations: 184.2 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.7384, allocations: 4.375 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.7384, allocations: 384 / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/0.7387, allocations: 242.1 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.7387, allocations: 3.938 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.7387, allocations: 4 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.7387, allocations: 0 / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000143/0.7389, allocations: 148 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001648/0.739, allocations: 193.4 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003669/0.7394, allocations: 0.5379 MB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003508/0.7398, allocations: 0.5207 MB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.02e-06/0.7398, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004069/0.7402, allocations: 407.5 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=39): time 1.382e-06/0.7402, allocations: 0 / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of matching and sorting (n=39): time 0.0007284/0.7409, allocations: 0.6899 MB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.741, allocations: 105.1 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.444e-05/0.7411, allocations: 101.8 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.7411, allocations: 29.7 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.552e-05/0.7411, allocations: 80.8 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.498e-05/0.7412, allocations: 71.02 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.827e-05/0.7412, allocations: 33.7 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.7414, allocations: 322.8 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.948e-05/0.7414, allocations: 91.91 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.393e-05/0.7415, allocations: 91.91 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/0.7418, allocations: 344.1 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.7418, allocations: 0 / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003094/0.7421, allocations: 340.3 kB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.953e-05/0.7422, allocations: 85.58 kB / 1.025 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.7422, allocations: 0 / 1.025 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.7422, allocations: 3.938 kB / 1.025 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.053e-05/0.7423, allocations: 0 / 1.025 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.7423, allocations: 4 kB / 1.025 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.423e-05/0.7424, allocations: 15.84 kB / 1.025 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.7424, allocations: 12 kB / 1.025 GB, free: 10.8 MB / 0.7794 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.0002109/0.7426, allocations: 269.7 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.203e-05/0.7427, allocations: 27.75 kB / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.416e-05/0.7427, allocations: 13.2 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.7427, allocations: 192 / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.7427, allocations: 0 / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.7427, allocations: 3.984 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.7429, allocations: 245.4 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.7429, allocations: 0 / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.7429, allocations: 0 / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.7429, allocations: 7.938 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.7429, allocations: 12 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.7429, allocations: 3.984 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.7429, allocations: 0 / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.7441, allocations: 1.279 MB / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.7441, allocations: 100.7 kB / 1.027 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.997e-05/0.7442, allocations: 75.94 kB / 1.027 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.314e-05/0.7443, allocations: 8 kB / 1.027 GB, free: 8.656 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.39e-05/0.7444, allocations: 15.97 kB / 1.027 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.7444, allocations: 11.98 kB / 1.027 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.841e-05/0.7444, allocations: 83.28 kB / 1.027 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7444, allocations: 0 / 1.027 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003005/0.7447, allocations: 67.98 kB / 1.027 GB, free: 8.48 MB / 0.7794 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.001685/0.7464, allocations: 1.962 MB / 1.029 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001469/0.7479, allocations: 1.964 MB / 1.031 GB, free: 4.523 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.7479, allocations: 3.938 kB / 1.031 GB, free: 4.52 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001298/0.7492, allocations: 2.011 MB / 1.033 GB, free: 2.496 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002311/0.7495, allocations: 21.36 kB / 1.033 GB, free: 2.477 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006465/0.7501, allocations: 393.1 kB / 1.033 GB, free: 2.051 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.7504, allocations: 0.7244 MB / 1.034 GB, free: 1.297 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.314e-05/0.7504, allocations: 3.938 kB / 1.034 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.438e-05/0.7504, allocations: 27.44 kB / 1.034 GB, free: 1.266 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.7504, allocations: 0 / 1.034 GB, free: 1.266 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.7735, allocations: 4.104 MB / 1.038 GB, free: 13.27 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.076/7.849, allocations: 3.75 kB / 1.038 GB, free: 13.27 MB / 0.795 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