Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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.Haldi2008WindowsTOut,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut",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.001034/0.001034, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0009845/0.0009845, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.237/1.237, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.474/2.474, allocations: 461.9 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 64.56 kB / 0.8985 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2345, allocations: 157.4 MB / 1.052 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut): time 0.002625/0.2372, allocations: 1.564 MB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00121/0.2384, allocations: 0.7361 MB / 1.054 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.191e-05/0.2385, allocations: 0 / 1.054 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.305e-05/0.2385, allocations: 4 kB / 1.054 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.742e-05/0.2386, allocations: 15.86 kB / 1.054 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004749/0.2391, allocations: 99.77 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.656e-05/0.2392, allocations: 71.83 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.726e-05/0.2393, allocations: 7.984 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.666e-05/0.2394, allocations: 35.86 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.181e-05/0.2394, allocations: 35.89 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.566e-05/0.2395, allocations: 4 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001771/0.2396, allocations: 91.84 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.383e-05/0.2397, allocations: 15.92 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.136e-05/0.2397, allocations: 27.86 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002028/0.2399, allocations: 139.9 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2399, allocations: 3.938 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.084e-06/0.24, allocations: 3.984 kB / 1.055 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.24, allocations: 0 / 1.055 GB, free: 5.383 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.0005552/0.2405, allocations: 413 kB / 1.055 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.2406, allocations: 11.97 kB / 1.055 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.58e-05/0.2406, allocations: 38.75 kB / 1.055 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.655e-05/0.2406, allocations: 12.83 kB / 1.055 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.2408, allocations: 184.1 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.2408, allocations: 4.375 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.566e-05/0.2408, allocations: 4.375 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001727/0.241, allocations: 73.78 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.241, allocations: 0 / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.241, allocations: 4 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.241, allocations: 0 / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.2412, allocations: 35.97 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005513/0.2417, allocations: 316.7 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.2418, allocations: 50.55 kB / 1.056 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.906e-05/0.2419, allocations: 32.97 kB / 1.056 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.242, allocations: 0 / 1.056 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001883/0.2422, allocations: 83.44 kB / 1.056 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.894e-06/0.2422, allocations: 3.938 kB / 1.056 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003737/0.2425, allocations: 133.5 kB / 1.056 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.2426, allocations: 59.41 kB / 1.056 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.063e-05/0.2427, allocations: 121.8 kB / 1.056 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.2427, allocations: 25.7 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.839e-05/0.2428, allocations: 92.05 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.2428, allocations: 15.83 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.346e-05/0.2428, allocations: 25.72 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.557e-05/0.2429, allocations: 330.8 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.833e-05/0.243, allocations: 19.98 kB / 1.057 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.543e-05/0.2431, allocations: 50.55 kB / 1.057 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.2433, allocations: 82.72 kB / 1.057 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2433, allocations: 4 kB / 1.057 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002222/0.2435, allocations: 113.5 kB / 1.057 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.2435, allocations: 4 kB / 1.057 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.2435, allocations: 0 / 1.057 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.2436, allocations: 4 kB / 1.057 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.2437, allocations: 15.92 kB / 1.057 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.2437, allocations: 0 / 1.057 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.796e-05/0.2437, allocations: 15.89 kB / 1.057 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.2438, allocations: 8.062 kB / 1.057 GB, free: 2.785 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.638e-05/0.2439, allocations: 117.8 kB / 1.057 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.758e-05/0.2439, allocations: 11.84 kB / 1.057 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.298e-05/0.2439, allocations: 12.36 kB / 1.057 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.2439, allocations: 0 / 1.057 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.2439, allocations: 7.984 kB / 1.057 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.2439, allocations: 0 / 1.057 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004184/0.2443, allocations: 386.3 kB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.2444, allocations: 0 / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.993e-05/0.2444, allocations: 4 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.634e-06/0.2444, allocations: 0 / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.2444, allocations: 4 kB / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.2444, allocations: 3.938 kB / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.2444, allocations: 0 / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002676/0.2447, allocations: 215.3 kB / 1.058 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.831e-05/0.2448, allocations: 81.11 kB / 1.058 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/0.2448, allocations: 4 kB / 1.058 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.211e-05/0.2449, allocations: 11.92 kB / 1.058 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.944e-05/0.2449, allocations: 4 kB / 1.058 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.2449, allocations: 7.984 kB / 1.058 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.479e-05/0.245, allocations: 95.86 kB / 1.058 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.245, allocations: 0 / 1.058 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002759/0.2453, allocations: 39.91 kB / 1.058 GB, free: 1.699 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.0006945/0.246, allocations: 0.8026 MB / 1.059 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002079/0.2462, allocations: 72.27 kB / 1.059 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2462, allocations: 0 / 1.059 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.413e-05/0.2463, allocations: 39.91 kB / 1.059 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002335/0.2465, allocations: 11.94 kB / 1.059 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.248, allocations: 1.49 MB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002172/0.2482, allocations: 0.6926 MB / 1.061 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.548e-05/0.2483, allocations: 11.98 kB / 1.061 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.89e-05/0.2483, allocations: 11.44 kB / 1.061 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.2483, allocations: 0 / 1.061 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02184/0.2702, allocations: 2.427 MB / 1.064 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002958/0.2705, allocations: 266.3 kB / 1.064 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.641/1.912, allocations: 0 / 1.064 GB, free: 11.81 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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