Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.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.Haldi2008WindowsTIn,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn",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.00678/0.00678, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001777/0.001777, allocations: 201.3 kB / 16.68 MB, free: 5.934 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.277/1.277, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.51/2.51, allocations: 482.6 MB / 0.7551 GB, free: 6.629 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 67.8 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.257, allocations: 162.3 MB / 1.242 GB, free: 8.93 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn): time 0.002411/0.2595, allocations: 1.501 MB / 1.243 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001145/0.2606, allocations: 0.7337 MB / 1.244 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.132e-05/0.2607, allocations: 0 / 1.244 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.737e-05/0.2607, allocations: 3.938 kB / 1.244 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.597e-05/0.2608, allocations: 7.875 kB / 1.244 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.2612, allocations: 123.6 kB / 1.244 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.2613, allocations: 79.77 kB / 1.244 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.711e-05/0.2614, allocations: 15.97 kB / 1.244 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.905e-05/0.2615, allocations: 39.84 kB / 1.244 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.376e-05/0.2616, allocations: 39.89 kB / 1.244 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.2616, allocations: 4 kB / 1.244 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001746/0.2618, allocations: 99.84 kB / 1.244 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.399e-05/0.2618, allocations: 11.98 kB / 1.244 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.282e-05/0.2619, allocations: 27.86 kB / 1.244 GB, free: 6.23 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002123/0.2621, allocations: 147.8 kB / 1.245 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.2621, allocations: 4 kB / 1.245 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2621, allocations: 0 / 1.245 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.2621, allocations: 0 / 1.245 GB, free: 6.082 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.0005627/0.2627, allocations: 424.6 kB / 1.245 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.2627, allocations: 8.031 kB / 1.245 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.444e-05/0.2627, allocations: 42.73 kB / 1.245 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.903e-05/0.2628, allocations: 8.891 kB / 1.245 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/0.2629, allocations: 176.3 kB / 1.245 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.2629, allocations: 4.375 kB / 1.245 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.873e-05/0.2629, allocations: 12.31 kB / 1.245 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001609/0.2631, allocations: 69.78 kB / 1.245 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.2631, allocations: 0 / 1.245 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.2631, allocations: 7.938 kB / 1.245 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.327e-06/0.2631, allocations: 0 / 1.245 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.2633, allocations: 35.97 kB / 1.245 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005288/0.2638, allocations: 316.8 kB / 1.246 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.2639, allocations: 54.5 kB / 1.246 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.812e-05/0.264, allocations: 36.97 kB / 1.246 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.2641, allocations: 0 / 1.246 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/0.2642, allocations: 75.45 kB / 1.246 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.2642, allocations: 0 / 1.246 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003526/0.2646, allocations: 145.5 kB / 1.246 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.2646, allocations: 55.41 kB / 1.246 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.052e-05/0.2647, allocations: 117.8 kB / 1.246 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.2648, allocations: 29.7 kB / 1.246 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.198e-05/0.2648, allocations: 92.09 kB / 1.246 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.2648, allocations: 27.77 kB / 1.246 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.653e-05/0.2649, allocations: 29.7 kB / 1.246 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.265, allocations: 322.8 kB / 1.247 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.461e-05/0.2651, allocations: 19.98 kB / 1.247 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.378e-05/0.2652, allocations: 59.41 kB / 1.247 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001594/0.2654, allocations: 83.34 kB / 1.247 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2654, allocations: 0 / 1.247 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002295/0.2656, allocations: 117.6 kB / 1.247 GB, free: 3.496 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.2656, allocations: 4 kB / 1.247 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.2656, allocations: 0 / 1.247 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.2657, allocations: 8.062 kB / 1.247 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.392e-05/0.2657, allocations: 15.92 kB / 1.247 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.2658, allocations: 0 / 1.247 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.978e-05/0.2658, allocations: 4 kB / 1.247 GB, free: 3.465 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.2658, allocations: 7.984 kB / 1.247 GB, free: 3.457 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 (win.curSeed,$PRE.win.curSeed,occ.y,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 8.902e-05/0.2659, allocations: 125.8 kB / 1.247 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.469e-05/0.266, allocations: 3.953 kB / 1.247 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.05e-05/0.266, allocations: 8.375 kB / 1.247 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.266, allocations: 4 kB / 1.247 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.266, allocations: 0 / 1.247 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.266, allocations: 3.938 kB / 1.247 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004282/0.2664, allocations: 378.8 kB / 1.247 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2664, allocations: 0 / 1.247 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.088e-05/0.2665, allocations: 12.05 kB / 1.247 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.2665, allocations: 0 / 1.247 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.2665, allocations: 4 kB / 1.247 GB, free: 2.863 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.2665, allocations: 4.016 kB / 1.247 GB, free: 2.859 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.2665, allocations: 7.984 kB / 1.247 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002671/0.2668, allocations: 219.3 kB / 1.248 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-05/0.2669, allocations: 89 kB / 1.248 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.2669, allocations: 0 / 1.248 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.221e-05/0.267, allocations: 7.938 kB / 1.248 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.332e-05/0.267, allocations: 7.984 kB / 1.248 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.796e-06/0.267, allocations: 8 kB / 1.248 GB, free: 2.492 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.486e-05/0.2671, allocations: 91.27 kB / 1.248 GB, free: 2.402 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.2671, allocations: 0 / 1.248 GB, free: 2.402 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002609/0.2673, allocations: 43.92 kB / 1.248 GB, free: 2.359 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,occ.y,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.0007429/0.2681, allocations: 0.7959 MB / 1.249 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002153/0.2683, allocations: 75.89 kB / 1.249 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.2683, allocations: 0 / 1.249 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.002e-05/0.2684, allocations: 31.98 kB / 1.249 GB, free: 1.449 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002241/0.2687, allocations: 16.05 kB / 1.249 GB, free: 1.434 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.2702, allocations: 1.506 MB / 1.25 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.2704, allocations: 0.6924 MB / 1.251 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.203e-05/0.2705, allocations: 4 kB / 1.251 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.437e-05/0.2705, allocations: 23.42 kB / 1.251 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of SimCode: time 2.11e-07/0.2705, allocations: 0 / 1.251 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.727/1.998, allocations: 2.647 MB / 1.254 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.22/17.22, allocations: 12.14 kB / 1.254 GB, free: 12.57 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TIn,win.occ,win.p,win.on Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,TIn.y,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TIn,win.occ,win.on,win.p,win.samplePeriod,win.seed