Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",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.001214/0.001214, 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.001273/0.001273, allocations: 198.9 kB / 16.26 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.317/1.317, allocations: 222.9 MB / 239.9 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.211/2.211, allocations: 390.3 MB / 0.6644 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 59.89 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6617/0.663, allocations: 140.4 MB / 0.9492 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.002426/0.6655, allocations: 1.53 MB / 0.9507 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001054/0.6665, allocations: 0.7191 MB / 0.9514 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.311e-05/0.6666, allocations: 0 / 0.9514 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.444e-05/0.6666, allocations: 7.875 kB / 0.9514 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.72e-05/0.6667, allocations: 13.28 kB / 0.9514 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005208/0.6672, allocations: 110.1 kB / 0.9516 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.429e-05/0.6673, allocations: 75.47 kB / 0.9516 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.6674, allocations: 26.34 kB / 0.9516 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.839e-05/0.6675, allocations: 33.75 kB / 0.9517 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.749e-05/0.6676, allocations: 35.47 kB / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.95e-05/0.6676, allocations: 6.219 kB / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001783/0.6678, allocations: 97.88 kB / 0.9518 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.242e-05/0.6678, allocations: 18.69 kB / 0.9518 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.386e-05/0.6679, allocations: 41.31 kB / 0.9519 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.6681, allocations: 140.9 kB / 0.952 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.6681, allocations: 0 / 0.952 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.434e-06/0.6681, allocations: 0 / 0.952 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.812e-06/0.6681, allocations: 3.938 kB / 0.952 GB, free: 7.004 MB / 0.7169 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.0005973/0.6687, allocations: 415.8 kB / 0.9524 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.6688, allocations: 9.719 kB / 0.9524 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.088e-05/0.6688, allocations: 40.11 kB / 0.9525 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.972e-05/0.6689, allocations: 4.594 kB / 0.9525 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.691e-05/0.669, allocations: 172.7 kB / 0.9526 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.669, allocations: 6.781 kB / 0.9526 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.773e-05/0.669, allocations: 4.469 kB / 0.9526 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001912/0.6692, allocations: 70.94 kB / 0.9527 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.6692, allocations: 1.062 kB / 0.9527 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.6693, allocations: 0 / 0.9527 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.6693, allocations: 5.547 kB / 0.9527 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001235/0.6694, allocations: 36.38 kB / 0.9527 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005403/0.6699, allocations: 334 kB / 0.9531 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001163/0.6701, allocations: 44.44 kB / 0.9531 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.377e-05/0.6702, allocations: 31.59 kB / 0.9531 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.6702, allocations: 1.375 kB / 0.9531 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001834/0.6704, allocations: 80.47 kB / 0.9532 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.6704, allocations: 1.031 kB / 0.9532 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003734/0.6708, allocations: 135.9 kB / 0.9533 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/0.6708, allocations: 54 kB / 0.9534 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.231e-05/0.6709, allocations: 124 kB / 0.9535 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.6709, allocations: 26.8 kB / 0.9535 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.659e-05/0.6709, allocations: 98.67 kB / 0.9536 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.671, allocations: 19.2 kB / 0.9536 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.877e-05/0.671, allocations: 29.95 kB / 0.9537 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.551e-05/0.6711, allocations: 321.3 kB / 0.954 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.329e-05/0.6712, allocations: 21.98 kB / 0.954 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.165e-05/0.6713, allocations: 53.2 kB / 0.9541 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.6714, allocations: 77.05 kB / 0.9541 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.6714, allocations: 5.375 kB / 0.9541 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002031/0.6716, allocations: 113.3 kB / 0.9542 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.6716, allocations: 9.391 kB / 0.9543 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.6717, allocations: 64 / 0.9543 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.6717, allocations: 5.5 kB / 0.9543 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.11e-05/0.6718, allocations: 7.906 kB / 0.9543 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.6718, allocations: 6.375 kB / 0.9543 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.42e-05/0.6718, allocations: 15.27 kB / 0.9543 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.6719, allocations: 3.062 kB / 0.9543 GB, free: 4.816 MB / 0.7169 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 6.716e-05/0.6719, allocations: 119 kB / 0.9544 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.672, allocations: 6.469 kB / 0.9544 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.657e-05/0.672, allocations: 17.83 kB / 0.9544 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.672, allocations: 1.469 kB / 0.9544 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.672, allocations: 0 / 0.9544 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.672, allocations: 1.469 kB / 0.9544 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000341/0.6724, allocations: 382.3 kB / 0.9548 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.6724, allocations: 0 / 0.9548 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.503e-05/0.6724, allocations: 3.969 kB / 0.9548 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.6724, allocations: 0 / 0.9548 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.6724, allocations: 5.422 kB / 0.9548 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.6724, allocations: 9.281 kB / 0.9548 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.6724, allocations: 3.938 kB / 0.9548 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.6727, allocations: 200.8 kB / 0.955 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.965e-05/0.6727, allocations: 87.92 kB / 0.9551 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.6727, allocations: 1.406 kB / 0.9551 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.46e-05/0.6728, allocations: 9.359 kB / 0.9551 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.717e-05/0.6728, allocations: 14.95 kB / 0.9551 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.6729, allocations: 6.766 kB / 0.9551 GB, free: 4 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.332e-05/0.6729, allocations: 97.39 kB / 0.9552 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6729, allocations: 0 / 0.9552 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002916/0.6732, allocations: 38.91 kB / 0.9553 GB, free: 3.902 MB / 0.7169 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.0005924/0.6738, allocations: 0.8022 MB / 0.956 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000214/0.674, allocations: 69.69 kB / 0.9561 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.674, allocations: 0 / 0.9561 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.206e-05/0.6741, allocations: 41.03 kB / 0.9561 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002432/0.6744, allocations: 16.5 kB / 0.9562 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.6756, allocations: 1.51 MB / 0.9576 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001044/0.6757, allocations: 0.6837 MB / 0.9583 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.822e-05/0.6758, allocations: 7.953 kB / 0.9583 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.9e-05/0.6758, allocations: 18.19 kB / 0.9583 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of SimCode: time 3.61e-07/0.6758, allocations: 0 / 0.9583 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01188/0.6877, allocations: 2.489 MB / 0.9608 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002424/0.688, allocations: 270.8 kB / 0.961 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.675/2.363, allocations: 4 kB / 0.961 GB, free: 15.41 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.fmu > Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.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