Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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.Zhang2012WindowsSouth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth",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.001022/0.001022, allocations: 91.61 kB / 15.36 MB, free: 0.7383 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.007984/0.007984, allocations: 170.1 kB / 16.26 MB, free: 6.613 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.382/1.382, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.597/2.597, allocations: 443.4 MB / 0.7176 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003806/0.0003812, allocations: 9.562 kB / 0.8797 GB, free: 41.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.37, allocations: 155.2 MB / 1.031 GB, free: 4.215 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002063/0.3721, allocations: 1.222 MB / 1.032 GB, free: 2.984 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001576/0.3737, allocations: 0.7329 MB / 1.033 GB, free: 2.246 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.755e-05/0.3738, allocations: 0 / 1.033 GB, free: 2.246 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.269e-05/0.3739, allocations: 3.938 kB / 1.033 GB, free: 2.242 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.177e-05/0.3739, allocations: 7.922 kB / 1.033 GB, free: 2.234 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006241/0.3746, allocations: 107.8 kB / 1.033 GB, free: 2.129 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001231/0.3747, allocations: 75.7 kB / 1.033 GB, free: 2.055 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.944e-05/0.3748, allocations: 12.28 kB / 1.033 GB, free: 2.043 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.125e-05/0.3749, allocations: 23.92 kB / 1.033 GB, free: 2.02 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.445e-05/0.375, allocations: 39.81 kB / 1.033 GB, free: 1.98 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.375, allocations: 4 kB / 1.033 GB, free: 1.977 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001917/0.3752, allocations: 91.84 kB / 1.033 GB, free: 1.887 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.821e-05/0.3753, allocations: 11.98 kB / 1.034 GB, free: 1.875 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.274e-05/0.3753, allocations: 65.48 kB / 1.034 GB, free: 1.805 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.3756, allocations: 131.6 kB / 1.034 GB, free: 1.676 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3756, allocations: 3.984 kB / 1.034 GB, free: 1.672 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.415e-06/0.3756, allocations: 0 / 1.034 GB, free: 1.672 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.3756, allocations: 0 / 1.034 GB, free: 1.672 MB / 0.7794 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.000641/0.3763, allocations: 405.1 kB / 1.034 GB, free: 1.223 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.3763, allocations: 8.031 kB / 1.034 GB, free: 1.215 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.897e-05/0.3764, allocations: 38.73 kB / 1.034 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.3764, allocations: 8.844 kB / 1.034 GB, free: 1.16 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.3766, allocations: 172.2 kB / 1.034 GB, free: 0.9531 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.3766, allocations: 8.375 kB / 1.034 GB, free: 0.9453 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.3766, allocations: 4.375 kB / 1.034 GB, free: 0.9414 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002017/0.3768, allocations: 73.72 kB / 1.034 GB, free: 0.8633 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.3769, allocations: 0 / 1.034 GB, free: 0.8633 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.3769, allocations: 3.984 kB / 1.034 GB, free: 0.8594 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.3769, allocations: 0 / 1.034 GB, free: 0.8594 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001544/0.3771, allocations: 47.98 kB / 1.034 GB, free: 0.8125 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006802/0.3777, allocations: 320.7 kB / 1.035 GB, free: 460 kB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.3779, allocations: 62.5 kB / 1.035 GB, free: 388 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.906e-05/0.378, allocations: 36.97 kB / 1.035 GB, free: 348 kB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.378, allocations: 0 / 1.035 GB, free: 348 kB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002023/0.3782, allocations: 83.36 kB / 1.035 GB, free: 252 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 3.036e-06/0.3783, allocations: 0 / 1.035 GB, free: 252 kB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000428/0.3787, allocations: 149.5 kB / 1.035 GB, free: 96 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.479e-05/0.3788, allocations: 59.39 kB / 1.035 GB, free: 24 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.3789, allocations: 121.8 kB / 1.035 GB, free: 15.89 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.263e-05/0.3789, allocations: 33.7 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.981e-05/0.379, allocations: 96.12 kB / 1.035 GB, free: 15.76 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.379, allocations: 11.81 kB / 1.035 GB, free: 15.75 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.379, allocations: 17.72 kB / 1.035 GB, free: 15.72 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3792, allocations: 326.8 kB / 1.036 GB, free: 15.39 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.451e-05/0.3793, allocations: 27.98 kB / 1.036 GB, free: 15.37 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.638e-05/0.3794, allocations: 58.53 kB / 1.036 GB, free: 15.3 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.3796, allocations: 74.5 kB / 1.036 GB, free: 15.22 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.3796, allocations: 4 kB / 1.036 GB, free: 15.21 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002539/0.3798, allocations: 121.5 kB / 1.036 GB, free: 15.09 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.3799, allocations: 4 kB / 1.036 GB, free: 15.09 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.3799, allocations: 0 / 1.036 GB, free: 15.09 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.3799, allocations: 4 kB / 1.036 GB, free: 15.08 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.427e-05/0.38, allocations: 11.98 kB / 1.036 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.289e-06/0.38, allocations: 4.062 kB / 1.036 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.891e-05/0.3801, allocations: 11.98 kB / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.3801, allocations: 0 / 1.036 GB, free: 15.05 MB / 0.795 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 0.0001153/0.3802, allocations: 139.1 kB / 1.036 GB, free: 14.91 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.412e-05/0.3802, allocations: 3.906 kB / 1.036 GB, free: 14.91 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.831e-05/0.3803, allocations: 8.375 kB / 1.036 GB, free: 14.9 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.3803, allocations: 0 / 1.036 GB, free: 14.9 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3803, allocations: 3.938 kB / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3803, allocations: 7.984 kB / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004784/0.3808, allocations: 386.4 kB / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3808, allocations: 7.922 kB / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.751e-05/0.3808, allocations: 4 kB / 1.037 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3809, allocations: 0 / 1.037 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.3809, allocations: 4 kB / 1.037 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.3809, allocations: 3.938 kB / 1.037 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3809, allocations: 4 kB / 1.037 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.3812, allocations: 215.4 kB / 1.037 GB, free: 14.2 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.238e-05/0.3813, allocations: 81.02 kB / 1.037 GB, free: 14.11 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.993e-05/0.3813, allocations: 0 / 1.037 GB, free: 14.11 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.401e-05/0.3814, allocations: 15.92 kB / 1.037 GB, free: 14.09 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.484e-05/0.3814, allocations: 4 kB / 1.037 GB, free: 14.09 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.3815, allocations: 7.984 kB / 1.037 GB, free: 14.08 MB / 0.795 GB Notification: Performance of sorting global known variables: time 7.371e-05/0.3815, allocations: 91.28 kB / 1.037 GB, free: 13.99 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3815, allocations: 0 / 1.037 GB, free: 13.99 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003069/0.3819, allocations: 39.98 kB / 1.037 GB, free: 13.95 MB / 0.795 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.0009282/0.3828, allocations: 0.8185 MB / 1.038 GB, free: 13.12 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002583/0.3831, allocations: 79.91 kB / 1.038 GB, free: 13.04 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3831, allocations: 0 / 1.038 GB, free: 13.04 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 9.518e-05/0.3832, allocations: 35.98 kB / 1.038 GB, free: 13.01 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.3834, allocations: 12.95 kB / 1.038 GB, free: 13 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001703/0.3851, allocations: 1.526 MB / 1.039 GB, free: 11.37 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.3855, allocations: 0.6887 MB / 1.04 GB, free: 10.65 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.797e-05/0.3855, allocations: 3.984 kB / 1.04 GB, free: 10.65 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.809e-05/0.3856, allocations: 23.42 kB / 1.04 GB, free: 10.63 MB / 0.795 GB Notification: Performance of SimCode: time 9.01e-07/0.3856, allocations: 4 kB / 1.04 GB, free: 10.62 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01272/0.3983, allocations: 2.326 MB / 1.042 GB, free: 8.477 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002336/0.3986, allocations: 282.5 kB / 1.043 GB, free: 8.109 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/2.132, allocations: 0 / 1.043 GB, free: 8.109 MB / 0.795 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,TOut.y,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed