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.002461/0.002461, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.003643/0.003643, allocations: 193 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.257/2.257, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.773/2.773, allocations: 461.9 MB / 0.7343 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00209/0.00209, allocations: 62.11 kB / 0.8987 GB, free: 37.17 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3497, allocations: 157.4 MB / 1.052 GB, free: 8.605 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002147/0.3519, allocations: 1.564 MB / 1.054 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009617/0.3528, allocations: 0.7287 MB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.84e-05/0.3529, allocations: 3.938 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.419e-05/0.3529, allocations: 4 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.115e-05/0.353, allocations: 15.86 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000401/0.3534, allocations: 107.8 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.195e-05/0.3535, allocations: 71.83 kB / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.992e-05/0.3536, allocations: 11.98 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.651e-05/0.3536, allocations: 31.92 kB / 1.055 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.836e-05/0.3537, allocations: 43.83 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.392e-05/0.3537, allocations: 4 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.3539, allocations: 99.84 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.12e-05/0.3539, allocations: 19.92 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.65e-05/0.3539, allocations: 31.86 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.3541, allocations: 139.9 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.3541, allocations: 0 / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3541, allocations: 0 / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.3541, allocations: 0 / 1.055 GB, free: 5.719 MB / 0.8106 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.0004781/0.3546, allocations: 421 kB / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.3547, allocations: 12.62 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.808e-05/0.3547, allocations: 30.75 kB / 1.056 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.825e-05/0.3547, allocations: 12.83 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/0.3548, allocations: 184.2 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.3549, allocations: 384 / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.3549, allocations: 4.375 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001501/0.355, allocations: 73.78 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.201e-06/0.355, allocations: 0 / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.3551, allocations: 4 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.3551, allocations: 3.938 kB / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001165/0.3552, allocations: 39.97 kB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004771/0.3557, allocations: 312.7 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001025/0.3558, allocations: 50.55 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.945e-05/0.3559, allocations: 36.97 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.3559, allocations: 0 / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001447/0.356, allocations: 83.44 kB / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.3561, allocations: 0 / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003319/0.3564, allocations: 141.5 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.3564, allocations: 51.41 kB / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.613e-05/0.3565, allocations: 121.8 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.3565, allocations: 29.7 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.879e-05/0.3566, allocations: 92.05 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.682e-05/0.3566, allocations: 15.83 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.16e-05/0.3566, allocations: 29.72 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.101e-05/0.3567, allocations: 318.8 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.097e-05/0.3568, allocations: 35.92 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.459e-05/0.3569, allocations: 46.55 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.3571, allocations: 74.48 kB / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3571, allocations: 4 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002125/0.3573, allocations: 113.5 kB / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.819e-06/0.3573, allocations: 4 kB / 1.057 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3573, allocations: 4 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.3573, allocations: 0 / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.304e-05/0.3574, allocations: 15.92 kB / 1.057 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.3574, allocations: 3.938 kB / 1.057 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.118e-05/0.3575, allocations: 11.89 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.3575, allocations: 12.06 kB / 1.057 GB, free: 3.117 MB / 0.8106 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 7.391e-05/0.3576, allocations: 119.3 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.217e-05/0.3576, allocations: 7.906 kB / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.112e-05/0.3576, allocations: 8.375 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.3576, allocations: 4 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3577, allocations: 3.984 kB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3577, allocations: 0 / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003755/0.358, allocations: 386.7 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3581, allocations: 0 / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.589e-05/0.3581, allocations: 4 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3581, allocations: 0 / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.3581, allocations: 0 / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3581, allocations: 7.938 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3581, allocations: 0 / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002444/0.3584, allocations: 219.4 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.23e-05/0.3584, allocations: 81.11 kB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.3584, allocations: 0 / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.811e-05/0.3585, allocations: 11.92 kB / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.939e-05/0.3586, allocations: 4 kB / 1.058 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.3586, allocations: 7.984 kB / 1.058 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.226e-05/0.3586, allocations: 87.94 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3586, allocations: 0 / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002579/0.3589, allocations: 43.89 kB / 1.058 GB, free: 2.043 MB / 0.8106 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.0006388/0.3595, allocations: 0.81 MB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000198/0.3598, allocations: 75.91 kB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3598, allocations: 0 / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.521e-05/0.3599, allocations: 39.91 kB / 1.059 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.3601, allocations: 11.94 kB / 1.059 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.3614, allocations: 1.491 MB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.3616, allocations: 0.6893 MB / 1.061 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.374e-05/0.3617, allocations: 11.98 kB / 1.061 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.765e-05/0.3617, allocations: 19.44 kB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of SimCode: time 5.71e-07/0.3617, allocations: 0 / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3444/0.7062, allocations: 2.497 MB / 1.064 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003293/0.7065, allocations: 266.3 kB / 1.064 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.796/3.502, allocations: 0 / 1.064 GB, free: 12.09 MB / 0.8262 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