Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_latest_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.001089/0.001089, allocations: 108 kB / 15.61 MB, free: 152 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.001235/0.001235, allocations: 197.2 kB / 16.53 MB, free: 6.664 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.705/2.705, allocations: 469.4 MB / 0.742 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001296, allocations: 65.66 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3643, allocations: 159.1 MB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.003365/0.3677, allocations: 1.328 MB / 1.065 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008882/0.3686, allocations: 356.6 kB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.243e-05/0.3687, allocations: 0 / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.042e-05/0.3688, allocations: 3.938 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.625e-05/0.3688, allocations: 7.938 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005363/0.3694, allocations: 87.77 kB / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001337/0.3695, allocations: 59.84 kB / 1.065 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.489e-05/0.3696, allocations: 0 / 1.065 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.971e-05/0.3696, allocations: 23.92 kB / 1.065 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.075e-05/0.3697, allocations: 23.91 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.62e-05/0.3697, allocations: 4 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.37, allocations: 79.91 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.389e-05/0.37, allocations: 27.92 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.832e-05/0.3701, allocations: 43.75 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002871/0.3704, allocations: 163.4 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3704, allocations: 0 / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3704, allocations: 0 / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.3704, allocations: 0 / 1.066 GB, free: 12.27 MB / 0.8262 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.0006179/0.3711, allocations: 0.5164 MB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.3711, allocations: 8.031 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.953e-05/0.3712, allocations: 46.73 kB / 1.066 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.3713, allocations: 12.84 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001864/0.3715, allocations: 180.2 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.3715, allocations: 384 / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/0.3716, allocations: 4.375 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000302/0.3719, allocations: 246.2 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.3719, allocations: 3.938 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.3719, allocations: 8 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3719, allocations: 0 / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001631/0.3721, allocations: 151.9 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002022/0.3723, allocations: 189.5 kB / 1.067 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004578/0.3728, allocations: 0.534 MB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004203/0.3732, allocations: 0.5207 MB / 1.068 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.051e-05/0.3732, allocations: 0 / 1.068 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005689/0.3738, allocations: 403.6 kB / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=39): time 2.214e-06/0.3738, allocations: 0 / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39): time 0.0009436/0.3747, allocations: 0.685 MB / 1.069 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.571e-05/0.3748, allocations: 105.1 kB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.3749, allocations: 101.8 kB / 1.069 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.375, allocations: 33.64 kB / 1.069 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.848e-05/0.375, allocations: 84.73 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.374e-05/0.3751, allocations: 75 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.945e-05/0.3752, allocations: 37.73 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.3753, allocations: 322.8 kB / 1.07 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.848e-05/0.3754, allocations: 83.97 kB / 1.07 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.502e-05/0.3755, allocations: 83.98 kB / 1.07 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000332/0.3759, allocations: 361.2 kB / 1.07 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3759, allocations: 0 / 1.07 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004219/0.3763, allocations: 332.1 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.3765, allocations: 85.59 kB / 1.071 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.3765, allocations: 4.062 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.3765, allocations: 0 / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.555e-05/0.3765, allocations: 3.984 kB / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.3766, allocations: 0 / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.3767, allocations: 23.75 kB / 1.071 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.3767, allocations: 4 kB / 1.071 GB, free: 6.793 MB / 0.8262 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.0002504/0.377, allocations: 265.7 kB / 1.071 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.415e-05/0.377, allocations: 23.84 kB / 1.071 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.597e-05/0.377, allocations: 9.219 kB / 1.071 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.377, allocations: 0 / 1.071 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.377, allocations: 4 kB / 1.071 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-06/0.3771, allocations: 0 / 1.071 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.3773, allocations: 249.3 kB / 1.071 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3773, allocations: 3.984 kB / 1.071 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.585e-06/0.3773, allocations: 4 kB / 1.071 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.3773, allocations: 3.938 kB / 1.071 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.3773, allocations: 8 kB / 1.071 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.3773, allocations: 7.938 kB / 1.071 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3773, allocations: 0 / 1.071 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.3786, allocations: 1.283 MB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.702e-05/0.3787, allocations: 96.8 kB / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.933e-05/0.3788, allocations: 71.95 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.347e-05/0.3789, allocations: 11.98 kB / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.326e-05/0.3789, allocations: 8.188 kB / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.3789, allocations: 11.98 kB / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.115e-05/0.379, allocations: 83.27 kB / 1.073 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.379, allocations: 0 / 1.073 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003224/0.3793, allocations: 68 kB / 1.073 GB, free: 4.492 MB / 0.8262 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.00207/0.3814, allocations: 1.971 MB / 1.075 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001728/0.3831, allocations: 1.964 MB / 1.077 GB, free: 0.5234 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.3832, allocations: 4.094 kB / 1.077 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.3848, allocations: 2.015 MB / 1.079 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.385, allocations: 16 kB / 1.079 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008654/0.3859, allocations: 397 kB / 1.079 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.3863, allocations: 0.7166 MB / 1.08 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 1.634e-05/0.3863, allocations: 0 / 1.08 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.3863, allocations: 31.42 kB / 1.08 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of SimCode: time 4.81e-07/0.3863, allocations: 0 / 1.08 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0217/0.4081, allocations: 4.115 MB / 1.084 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.261/7.669, allocations: 8 kB / 1.084 GB, free: 9.281 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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