Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",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.00861/0.00861, allocations: 100.9 kB / 15.73 MB, free: 5.562 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.001808/0.001808, allocations: 195.1 kB / 16.67 MB, free: 5.504 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.614/2.614, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 60.31 kB / 1.054 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9253/0.9269, allocations: 157.4 MB / 1.207 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.003794/0.9307, allocations: 1.505 MB / 1.209 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001815/0.9326, allocations: 0.7245 MB / 1.209 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.152e-05/0.9327, allocations: 4 kB / 1.209 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.873e-05/0.9327, allocations: 3.938 kB / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.905e-05/0.9329, allocations: 11.86 kB / 1.209 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007205/0.9336, allocations: 119.6 kB / 1.21 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.9338, allocations: 83.75 kB / 1.21 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.9339, allocations: 15.95 kB / 1.21 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.934, allocations: 35.84 kB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.672e-05/0.9341, allocations: 39.83 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.9341, allocations: 8 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002388/0.9344, allocations: 91.91 kB / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.853e-05/0.9344, allocations: 15.98 kB / 1.21 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.841e-05/0.9345, allocations: 31.8 kB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002985/0.9348, allocations: 149.8 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.9348, allocations: 0 / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.864e-06/0.9348, allocations: 0 / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.145e-06/0.9348, allocations: 3.984 kB / 1.21 GB, free: 10.82 MB / 0.9356 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.0008092/0.9356, allocations: 420.9 kB / 1.21 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.767e-05/0.9357, allocations: 8.031 kB / 1.21 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.055e-05/0.9358, allocations: 30.75 kB / 1.21 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.468e-05/0.9358, allocations: 16.83 kB / 1.21 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001778/0.936, allocations: 172.2 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.08e-05/0.9361, allocations: 8.375 kB / 1.211 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.804e-05/0.9361, allocations: 8.375 kB / 1.211 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.9363, allocations: 69.72 kB / 1.211 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.9363, allocations: 0 / 1.211 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.9364, allocations: 4 kB / 1.211 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.9364, allocations: 0 / 1.211 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.9365, allocations: 35.97 kB / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007008/0.9372, allocations: 324.6 kB / 1.211 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001487/0.9374, allocations: 58.48 kB / 1.211 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.538e-05/0.9375, allocations: 28.97 kB / 1.211 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.9375, allocations: 4 kB / 1.211 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002219/0.9377, allocations: 79.28 kB / 1.211 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.794e-06/0.9377, allocations: 0 / 1.211 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004054/0.9382, allocations: 141.6 kB / 1.211 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.9382, allocations: 51.41 kB / 1.211 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.9383, allocations: 125.7 kB / 1.212 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.9384, allocations: 25.7 kB / 1.212 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.982e-05/0.9384, allocations: 96.14 kB / 1.212 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.9384, allocations: 19.86 kB / 1.212 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-05/0.9385, allocations: 25.72 kB / 1.212 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.9386, allocations: 322.8 kB / 1.212 GB, free: 8.555 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.618e-05/0.9387, allocations: 27.98 kB / 1.212 GB, free: 8.527 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.309e-05/0.9388, allocations: 46.55 kB / 1.212 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.939, allocations: 74.5 kB / 1.212 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.939, allocations: 0 / 1.212 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003002/0.9393, allocations: 109.5 kB / 1.212 GB, free: 8.277 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.9393, allocations: 8 kB / 1.212 GB, free: 8.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.9393, allocations: 0 / 1.212 GB, free: 8.27 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.9394, allocations: 4.062 kB / 1.212 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.9395, allocations: 15.98 kB / 1.212 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.9395, allocations: 4 kB / 1.212 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.702e-05/0.9396, allocations: 11.92 kB / 1.212 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.9396, allocations: 3.938 kB / 1.212 GB, free: 8.23 MB / 0.9356 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.892e-05/0.9397, allocations: 125.7 kB / 1.212 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.756e-05/0.9397, allocations: 3.906 kB / 1.212 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.206e-05/0.9397, allocations: 12.38 kB / 1.212 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.9398, allocations: 4 kB / 1.212 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/0.9398, allocations: 7.969 kB / 1.212 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.9398, allocations: 0 / 1.212 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004426/0.9402, allocations: 378.5 kB / 1.213 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.9402, allocations: 0 / 1.213 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.824e-05/0.9403, allocations: 11.88 kB / 1.213 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.9403, allocations: 0 / 1.213 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.9403, allocations: 4 kB / 1.213 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.9403, allocations: 3.938 kB / 1.213 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.9403, allocations: 8 kB / 1.213 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002822/0.9406, allocations: 203.4 kB / 1.213 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.028e-05/0.9407, allocations: 89.02 kB / 1.213 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.9407, allocations: 0 / 1.213 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.983e-05/0.9408, allocations: 11.92 kB / 1.213 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.493e-05/0.9409, allocations: 4 kB / 1.213 GB, free: 7.277 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.9409, allocations: 7.984 kB / 1.213 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.717e-05/0.9409, allocations: 91.94 kB / 1.213 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9409, allocations: 0 / 1.213 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003341/0.9413, allocations: 43.92 kB / 1.213 GB, free: 7.137 MB / 0.9356 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.0008501/0.9421, allocations: 0.8153 MB / 1.214 GB, free: 6.312 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002439/0.9424, allocations: 67.91 kB / 1.214 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.9424, allocations: 3.938 kB / 1.214 GB, free: 6.242 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.9425, allocations: 35.97 kB / 1.214 GB, free: 6.207 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.9428, allocations: 16.06 kB / 1.214 GB, free: 6.191 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.9445, allocations: 1.481 MB / 1.216 GB, free: 4.613 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002623/0.9448, allocations: 0.6924 MB / 1.216 GB, free: 3.895 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.808e-05/0.9448, allocations: 0 / 1.216 GB, free: 3.895 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.17e-05/0.9449, allocations: 23.42 kB / 1.216 GB, free: 3.871 MB / 0.9356 GB Notification: Performance of SimCode: time 4.31e-07/0.9449, allocations: 0 / 1.216 GB, free: 3.871 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01886/0.9638, allocations: 2.675 MB / 1.219 GB, free: 1.344 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.731/8.695, allocations: 17.98 kB / 1.219 GB, free: 1.328 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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