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.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.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.001696/0.001696, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001919/0.001919, allocations: 193.8 kB / 16.14 MB, free: 6.656 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.317/1.317, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.497/2.497, allocations: 461.9 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 68.11 kB / 0.8985 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2199, allocations: 157.4 MB / 1.052 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002278/0.2222, allocations: 1.572 MB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.2233, allocations: 0.7401 MB / 1.054 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.929e-05/0.2233, allocations: 0 / 1.054 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.641e-05/0.2233, allocations: 0 / 1.054 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.818e-05/0.2234, allocations: 11.86 kB / 1.054 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003966/0.2238, allocations: 99.78 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.207e-05/0.2239, allocations: 71.81 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.984e-05/0.224, allocations: 16 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.73e-05/0.224, allocations: 23.92 kB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.787e-05/0.2241, allocations: 43.81 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.598e-05/0.2241, allocations: 4 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001618/0.2243, allocations: 87.84 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.397e-05/0.2243, allocations: 19.92 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.008e-05/0.2244, allocations: 27.84 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001831/0.2246, allocations: 143.9 kB / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2246, allocations: 0 / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.81e-07/0.2246, allocations: 4 kB / 1.055 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.406e-06/0.2246, allocations: 0 / 1.055 GB, free: 5.371 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.000525/0.2251, allocations: 413 kB / 1.055 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.2252, allocations: 11.97 kB / 1.055 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.801e-05/0.2252, allocations: 38.69 kB / 1.055 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.146e-05/0.2252, allocations: 8.844 kB / 1.055 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.472e-05/0.2253, allocations: 172.2 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.2254, allocations: 4.375 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.799e-05/0.2254, allocations: 16.36 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001624/0.2255, allocations: 65.78 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.66e-06/0.2256, allocations: 7.875 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.2256, allocations: 0 / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.2256, allocations: 4 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.2257, allocations: 39.91 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005279/0.2263, allocations: 320.8 kB / 1.056 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001133/0.2264, allocations: 46.56 kB / 1.056 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.976e-05/0.2265, allocations: 32.95 kB / 1.056 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.2265, allocations: 4 kB / 1.056 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000163/0.2267, allocations: 83.31 kB / 1.056 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.2267, allocations: 0 / 1.056 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003506/0.227, allocations: 137.5 kB / 1.056 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/0.2271, allocations: 55.41 kB / 1.056 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.064e-05/0.2271, allocations: 117.8 kB / 1.056 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.2272, allocations: 25.7 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.485e-05/0.2272, allocations: 100 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.2272, allocations: 19.91 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.2273, allocations: 29.7 kB / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.025e-05/0.2274, allocations: 318.8 kB / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.925e-05/0.2275, allocations: 27.97 kB / 1.057 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.487e-05/0.2276, allocations: 46.5 kB / 1.057 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.2277, allocations: 82.84 kB / 1.057 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2277, allocations: 0 / 1.057 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002281/0.228, allocations: 109.5 kB / 1.057 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.228, allocations: 8 kB / 1.057 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.228, allocations: 0 / 1.057 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.228, allocations: 3.938 kB / 1.057 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.83e-05/0.2281, allocations: 19.98 kB / 1.057 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.2281, allocations: 4 kB / 1.057 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.449e-05/0.2282, allocations: 11.91 kB / 1.057 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.2282, allocations: 0 / 1.057 GB, free: 2.777 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.318e-05/0.2283, allocations: 121.8 kB / 1.057 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.771e-05/0.2283, allocations: 7.891 kB / 1.057 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.289e-05/0.2283, allocations: 12.38 kB / 1.057 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.2283, allocations: 0 / 1.057 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.2284, allocations: 4 kB / 1.057 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.2284, allocations: 0 / 1.057 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004073/0.2288, allocations: 382.3 kB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.2288, allocations: 0 / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.049e-05/0.2288, allocations: 8 kB / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2288, allocations: 0 / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.2289, allocations: 7.984 kB / 1.058 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.2289, allocations: 3.938 kB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2289, allocations: 7.938 kB / 1.058 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002531/0.2291, allocations: 203.4 kB / 1.058 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.164e-05/0.2292, allocations: 85.09 kB / 1.058 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.2292, allocations: 4 kB / 1.058 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.955e-05/0.2293, allocations: 7.938 kB / 1.058 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.794e-05/0.2293, allocations: 7.984 kB / 1.058 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.437e-06/0.2293, allocations: 8 kB / 1.058 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.208e-05/0.2294, allocations: 91.27 kB / 1.058 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2294, allocations: 4 kB / 1.058 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002686/0.2297, allocations: 39.91 kB / 1.058 GB, free: 1.691 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.0006654/0.2303, allocations: 0.8029 MB / 1.059 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002063/0.2306, allocations: 75.94 kB / 1.059 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.2306, allocations: 0 / 1.059 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.806e-05/0.2307, allocations: 35.92 kB / 1.059 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002366/0.2309, allocations: 22.3 kB / 1.059 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.2323, allocations: 1.494 MB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.2325, allocations: 0.6887 MB / 1.061 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.467e-05/0.2326, allocations: 4 kB / 1.061 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.177e-05/0.2326, allocations: 23.42 kB / 1.061 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2326, allocations: 0 / 1.061 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01131/0.2439, allocations: 2.416 MB / 1.064 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000194/0.2441, allocations: 268.2 kB / 1.064 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.545/1.789, allocations: 3.547 kB / 1.064 GB, free: 11.8 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