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.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.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.001925/0.001925, 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.002322/0.002323, allocations: 195.6 kB / 16.25 MB, free: 6.625 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.663/1.663, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.1/3.1, allocations: 461.9 MB / 0.7343 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002296/0.002296, allocations: 63.94 kB / 0.8987 GB, free: 37.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.562/0.5643, allocations: 157.4 MB / 1.052 GB, free: 8.59 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.006708/0.5711, allocations: 1.568 MB / 1.054 GB, free: 7.008 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002299/0.5734, allocations: 0.7288 MB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.704e-05/0.5736, allocations: 0 / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.182e-05/0.5737, allocations: 7.922 kB / 1.055 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.5738, allocations: 7.922 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009344/0.5748, allocations: 111.8 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.575, allocations: 75.83 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.5752, allocations: 8 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.5753, allocations: 35.91 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.5754, allocations: 35.83 kB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.5755, allocations: 11.94 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002908/0.5758, allocations: 95.91 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.975e-05/0.5758, allocations: 15.92 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.519e-05/0.5759, allocations: 31.84 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003849/0.5763, allocations: 147.9 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.481e-05/0.5764, allocations: 0 / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of FrontEnd: time 5.491e-06/0.5764, allocations: 3.938 kB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.058e-05/0.5764, allocations: 0 / 1.055 GB, free: 5.695 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.001151/0.5775, allocations: 417 kB / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 7.621e-05/0.5776, allocations: 8.625 kB / 1.056 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.569e-05/0.5777, allocations: 34.75 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.932e-05/0.5778, allocations: 16.78 kB / 1.056 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002506/0.5781, allocations: 172.2 kB / 1.056 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.03e-05/0.5782, allocations: 8.375 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.803e-05/0.5782, allocations: 8.359 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003456/0.5786, allocations: 73.78 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.5786, allocations: 0 / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.175e-05/0.5786, allocations: 3.938 kB / 1.056 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.5787, allocations: 0 / 1.056 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002123/0.5789, allocations: 39.91 kB / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000961/0.5799, allocations: 320.8 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/0.5801, allocations: 46.55 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001254/0.5802, allocations: 32.97 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.419e-05/0.5802, allocations: 0 / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003613/0.5806, allocations: 83.31 kB / 1.056 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.575e-06/0.5806, allocations: 0 / 1.056 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0006204/0.5813, allocations: 137.5 kB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/0.5813, allocations: 59.47 kB / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.5815, allocations: 117.8 kB / 1.057 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.5816, allocations: 33.7 kB / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.5817, allocations: 92.03 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.248e-05/0.5817, allocations: 15.84 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.581e-05/0.5818, allocations: 25.7 kB / 1.057 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001899/0.582, allocations: 326.8 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.5821, allocations: 27.92 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.5823, allocations: 50.56 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002581/0.5826, allocations: 70.86 kB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.5826, allocations: 0 / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003922/0.583, allocations: 117.5 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.583, allocations: 5.406 kB / 1.057 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.5831, allocations: 4.062 kB / 1.057 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.829e-05/0.5831, allocations: 4 kB / 1.057 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.5832, allocations: 19.86 kB / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-06/0.5832, allocations: 0 / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.621e-05/0.5834, allocations: 7.906 kB / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.5834, allocations: 4 kB / 1.057 GB, free: 3.105 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 0.0001682/0.5836, allocations: 125 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.052e-05/0.5836, allocations: 11.89 kB / 1.058 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.952e-05/0.5836, allocations: 8.375 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.5837, allocations: 0 / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.5837, allocations: 0 / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.5837, allocations: 4 kB / 1.058 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006792/0.5844, allocations: 386.3 kB / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.5844, allocations: 3.938 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.974e-05/0.5845, allocations: 4 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.5845, allocations: 3.984 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.5845, allocations: 4 kB / 1.058 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-06/0.5845, allocations: 7.938 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.5845, allocations: 0 / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004389/0.585, allocations: 215.3 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.778e-05/0.5851, allocations: 81.09 kB / 1.058 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.543e-05/0.5851, allocations: 4 kB / 1.058 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001425/0.5853, allocations: 3.938 kB / 1.058 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.966e-05/0.5854, allocations: 11.98 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.5854, allocations: 8 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001014/0.5855, allocations: 91.92 kB / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.5e-07/0.5855, allocations: 0 / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005707/0.5861, allocations: 39.91 kB / 1.058 GB, free: 2.016 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.001471/0.5876, allocations: 0.8013 MB / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00041/0.588, allocations: 76.14 kB / 1.059 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.588, allocations: 0 / 1.059 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.5882, allocations: 44.25 kB / 1.059 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004524/0.5887, allocations: 7.938 kB / 1.059 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.5915, allocations: 1.491 MB / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005872/0.5921, allocations: 0.6961 MB / 1.061 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.464e-05/0.5922, allocations: 4 kB / 1.061 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.689e-05/0.5923, allocations: 19.42 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of SimCode: time 4.61e-07/0.5923, allocations: 0 / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.491/1.083, allocations: 2.495 MB / 1.064 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005048/1.084, allocations: 261.5 kB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.051/5.135, allocations: 4 kB / 1.064 GB, free: 12.07 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 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.mat","/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) "" 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