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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.007336/0.007336, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.002057/0.002057, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.796/2.796, allocations: 482.4 MB / 0.7548 GB, free: 6.875 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 75.23 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.274, allocations: 162.2 MB / 1.241 GB, free: 9.328 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002577/0.2766, allocations: 1.505 MB / 1.243 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.2779, allocations: 0.726 MB / 1.244 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.318e-05/0.2779, allocations: 0 / 1.244 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.987e-05/0.278, allocations: 3.938 kB / 1.244 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.932e-05/0.278, allocations: 15.84 kB / 1.244 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004922/0.2785, allocations: 115.6 kB / 1.244 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00013/0.2786, allocations: 87.69 kB / 1.244 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.891e-05/0.2787, allocations: 11.97 kB / 1.244 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.247e-05/0.2788, allocations: 35.92 kB / 1.244 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.047e-05/0.2789, allocations: 39.83 kB / 1.244 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.949e-05/0.2789, allocations: 11.94 kB / 1.244 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.2791, allocations: 99.84 kB / 1.244 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.477e-05/0.2792, allocations: 7.984 kB / 1.244 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.083e-05/0.2792, allocations: 39.78 kB / 1.244 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002295/0.2795, allocations: 139.8 kB / 1.244 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2795, allocations: 3.984 kB / 1.244 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.353e-06/0.2795, allocations: 0 / 1.244 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.2795, allocations: 0 / 1.244 GB, free: 6.477 MB / 0.9669 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.0006176/0.2801, allocations: 424.7 kB / 1.245 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.2801, allocations: 8.031 kB / 1.245 GB, free: 6 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.412e-05/0.2802, allocations: 46.67 kB / 1.245 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.316e-05/0.2802, allocations: 8.891 kB / 1.245 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.2804, allocations: 168.3 kB / 1.245 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.2804, allocations: 4.375 kB / 1.245 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.653e-05/0.2804, allocations: 8.375 kB / 1.245 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/0.2806, allocations: 73.78 kB / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.2806, allocations: 0 / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.2807, allocations: 0 / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.2807, allocations: 0 / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001399/0.2808, allocations: 39.91 kB / 1.245 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006041/0.2814, allocations: 316.8 kB / 1.245 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.2816, allocations: 58.55 kB / 1.245 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.21e-05/0.2817, allocations: 32.97 kB / 1.245 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.2817, allocations: 4 kB / 1.245 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001844/0.2819, allocations: 75.31 kB / 1.245 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.2819, allocations: 3.938 kB / 1.245 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004065/0.2823, allocations: 145.6 kB / 1.246 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.2824, allocations: 55.41 kB / 1.246 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.2825, allocations: 117.8 kB / 1.246 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.2825, allocations: 29.7 kB / 1.246 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.08e-05/0.2826, allocations: 96.16 kB / 1.246 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.323e-05/0.2826, allocations: 19.83 kB / 1.246 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.386e-05/0.2827, allocations: 25.72 kB / 1.246 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.2828, allocations: 330.8 kB / 1.246 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.625e-05/0.2829, allocations: 19.98 kB / 1.246 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.283, allocations: 58.48 kB / 1.246 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/0.2832, allocations: 74.55 kB / 1.246 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2832, allocations: 0 / 1.246 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002543/0.2835, allocations: 105.6 kB / 1.246 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.2835, allocations: 4 kB / 1.246 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.2835, allocations: 0 / 1.246 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.2835, allocations: 11.91 kB / 1.246 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.196e-05/0.2836, allocations: 19.94 kB / 1.246 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.2836, allocations: 0 / 1.246 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.065e-05/0.2837, allocations: 8.047 kB / 1.246 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.2837, allocations: 8 kB / 1.246 GB, free: 3.867 MB / 0.9669 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.491e-05/0.2838, allocations: 118.3 kB / 1.247 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.81e-05/0.2838, allocations: 7.953 kB / 1.247 GB, free: 3.734 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.38e-05/0.2839, allocations: 8.375 kB / 1.247 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.2839, allocations: 3.984 kB / 1.247 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.2839, allocations: 3.938 kB / 1.247 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.2839, allocations: 4 kB / 1.247 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004941/0.2844, allocations: 390.4 kB / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2844, allocations: 0 / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-05/0.2845, allocations: 4 kB / 1.247 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.2845, allocations: 0 / 1.247 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.2845, allocations: 0 / 1.247 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.2845, allocations: 3.938 kB / 1.247 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2845, allocations: 3.984 kB / 1.247 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003138/0.2848, allocations: 207.5 kB / 1.247 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.264e-05/0.2849, allocations: 85 kB / 1.247 GB, free: 2.941 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.134e-05/0.2849, allocations: 8 kB / 1.247 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.487e-05/0.285, allocations: 7.922 kB / 1.247 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.163e-05/0.285, allocations: 4 kB / 1.247 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.2851, allocations: 11.98 kB / 1.247 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.617e-05/0.2851, allocations: 87.28 kB / 1.247 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2851, allocations: 0 / 1.247 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002979/0.2854, allocations: 39.92 kB / 1.247 GB, free: 2.785 MB / 0.9669 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.0008502/0.2863, allocations: 0.8181 MB / 1.248 GB, free: 1.957 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002322/0.2865, allocations: 59.97 kB / 1.248 GB, free: 1.898 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2866, allocations: 0 / 1.248 GB, free: 1.898 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.2867, allocations: 39.91 kB / 1.248 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002549/0.2869, allocations: 17.28 kB / 1.248 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/0.2886, allocations: 1.489 MB / 1.25 GB, free: 264 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.2889, allocations: 0.6885 MB / 1.25 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.638e-05/0.289, allocations: 7.984 kB / 1.25 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.724e-05/0.289, allocations: 27.42 kB / 1.251 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of SimCode: time 2.194e-06/0.289, allocations: 0 / 1.251 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02299/0.312, allocations: 2.64 MB / 1.253 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.676/7.988, allocations: 16.84 kB / 1.253 GB, free: 13 MB / 0.9825 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable win.occ in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv. Warning: Get data of variable win.occ from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv failed! Error: Could not read variable win.on in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv. Warning: Get data of variable win.on from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.csv failed! " Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:time,win.TOut,win.p,TOut.amplitude,TOut.f,TOut.offset