Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",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.007653/0.007653, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.001941/0.001941, allocations: 196.6 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.767/2.767, allocations: 469.4 MB / 0.7422 GB, free: 7.625 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 59.91 kB / 1.064 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.316, allocations: 159.1 MB / 1.22 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002887/0.3189, allocations: 1.498 MB / 1.221 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.3204, allocations: 0.7284 MB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.914e-05/0.3205, allocations: 0 / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.78e-05/0.3205, allocations: 3.938 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.13e-05/0.3206, allocations: 15.88 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006611/0.3213, allocations: 119.6 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.3214, allocations: 87.69 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.275e-05/0.3215, allocations: 15.95 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.823e-05/0.3216, allocations: 31.91 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.608e-05/0.3217, allocations: 39.83 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.837e-05/0.3217, allocations: 8 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.3219, allocations: 99.84 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.919e-05/0.3219, allocations: 19.92 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.8e-05/0.322, allocations: 27.86 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.3223, allocations: 139.5 kB / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3223, allocations: 0 / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.216e-06/0.3223, allocations: 4 kB / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.3223, allocations: 0 / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006376/0.3229, allocations: 420.7 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.323, allocations: 16.03 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.533e-05/0.323, allocations: 30.75 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.877e-05/0.3231, allocations: 8.891 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.3232, allocations: 184.2 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/0.3232, allocations: 8.375 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.3233, allocations: 384 / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.3235, allocations: 69.78 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.3235, allocations: 0 / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.3235, allocations: 3.938 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3235, allocations: 8 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001355/0.3236, allocations: 39.97 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00063/0.3243, allocations: 312.7 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.3244, allocations: 46.56 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.552e-05/0.3245, allocations: 40.95 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.3246, allocations: 0 / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002178/0.3248, allocations: 79.44 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.3248, allocations: 0 / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004099/0.3252, allocations: 141.5 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.3253, allocations: 55.41 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.426e-05/0.3254, allocations: 125.8 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.3254, allocations: 29.7 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.059e-05/0.3254, allocations: 88.14 kB / 1.224 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.866e-05/0.3255, allocations: 11.91 kB / 1.224 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.3255, allocations: 29.7 kB / 1.224 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.56e-05/0.3256, allocations: 322.8 kB / 1.224 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.315e-05/0.3257, allocations: 27.98 kB / 1.225 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.143e-05/0.3258, allocations: 50.56 kB / 1.225 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.326, allocations: 78.47 kB / 1.225 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.326, allocations: 0 / 1.225 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002488/0.3262, allocations: 113.5 kB / 1.225 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.3263, allocations: 5.875 kB / 1.225 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.3263, allocations: 4 kB / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.3263, allocations: 0 / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.3264, allocations: 19.92 kB / 1.225 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.3264, allocations: 3.938 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.791e-05/0.3265, allocations: 7.938 kB / 1.225 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.3265, allocations: 4 kB / 1.225 GB, free: 9.234 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (win.occ,win.curSeed,$PRE.win.curSeed,win.p,$PRE.win.p,win.on,$PRE.win.on,win.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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 9.029e-05/0.3266, allocations: 130.3 kB / 1.225 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.913e-05/0.3266, allocations: 7.953 kB / 1.225 GB, free: 9.09 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.109e-05/0.3267, allocations: 12.38 kB / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3267, allocations: 0 / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3267, allocations: 0 / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.3267, allocations: 0 / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004427/0.3271, allocations: 386.8 kB / 1.225 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3272, allocations: 0 / 1.225 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.114e-05/0.3272, allocations: 11.98 kB / 1.225 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.3272, allocations: 0 / 1.225 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.3272, allocations: 0 / 1.225 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.3272, allocations: 7.938 kB / 1.225 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3273, allocations: 0 / 1.225 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002823/0.3275, allocations: 207.6 kB / 1.226 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.271e-05/0.3276, allocations: 89 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.3276, allocations: 4 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.427e-05/0.3277, allocations: 7.938 kB / 1.226 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.034e-05/0.3278, allocations: 3.984 kB / 1.226 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.3278, allocations: 4 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.914e-05/0.3278, allocations: 91.27 kB / 1.226 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3278, allocations: 0 / 1.226 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003053/0.3282, allocations: 43.86 kB / 1.226 GB, free: 8.141 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (win.sampleTrigger,$whenCondition1,win.occ,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007703/0.3289, allocations: 0.8136 MB / 1.227 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002373/0.3292, allocations: 75.88 kB / 1.227 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3292, allocations: 4.125 kB / 1.227 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.3293, allocations: 39.92 kB / 1.227 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.3296, allocations: 11.92 kB / 1.227 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001642/0.3312, allocations: 1.495 MB / 1.228 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002226/0.3315, allocations: 0.6885 MB / 1.229 GB, free: 4.883 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.898e-05/0.3315, allocations: 4.469 kB / 1.229 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.871e-05/0.3316, allocations: 23.42 kB / 1.229 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of SimCode: time 4e-07/0.3316, allocations: 0 / 1.229 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02011/0.3517, allocations: 2.646 MB / 1.231 GB, free: 2.355 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.403/7.755, allocations: 8.25 kB / 1.231 GB, free: 2.352 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable win.occ in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv. Warning: Get data of variable win.occ from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv failed! Error: Could not read variable win.on in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv. Warning: Get data of variable win.on from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.csv failed! " Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:time,win.TOut,win.p,TOut.amplitude,TOut.f,TOut.offset