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.001229/0.001229, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 192 kB / 16.53 MB, free: 6.391 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.351/1.351, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.075/2.075, allocations: 390.2 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001234, allocations: 59.91 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5042/0.5055, allocations: 140.4 MB / 0.9497 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.002228/0.5077, allocations: 1.469 MB / 0.9511 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009991/0.5088, allocations: 0.7337 MB / 0.9519 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.91e-05/0.5088, allocations: 0 / 0.9519 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.97e-05/0.5089, allocations: 9.422 kB / 0.9519 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.154e-05/0.5089, allocations: 9.25 kB / 0.9519 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005197/0.5095, allocations: 124.8 kB / 0.952 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.147e-05/0.5096, allocations: 75.5 kB / 0.9521 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.368e-05/0.5097, allocations: 18.59 kB / 0.9521 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.759e-05/0.5097, allocations: 37.19 kB / 0.9521 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.87e-05/0.5098, allocations: 39.36 kB / 0.9522 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.5098, allocations: 7.094 kB / 0.9522 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.51, allocations: 98.56 kB / 0.9523 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.281e-05/0.51, allocations: 18.92 kB / 0.9523 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.755e-05/0.5101, allocations: 27.23 kB / 0.9523 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001973/0.5103, allocations: 135.9 kB / 0.9524 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.5103, allocations: 1.125 kB / 0.9524 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5103, allocations: 0 / 0.9524 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.5103, allocations: 0 / 0.9524 GB, free: 7.098 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.0004788/0.5108, allocations: 432.6 kB / 0.9528 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.5108, allocations: 14 kB / 0.9529 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.468e-05/0.5109, allocations: 34.75 kB / 0.9529 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.53e-05/0.5109, allocations: 9.734 kB / 0.9529 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.848e-05/0.511, allocations: 170.7 kB / 0.9531 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.511, allocations: 7.188 kB / 0.9531 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.511, allocations: 4.406 kB / 0.9531 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.5112, allocations: 72.66 kB / 0.9531 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.5112, allocations: 0 / 0.9531 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.5112, allocations: 0 / 0.9531 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.5112, allocations: 1.312 kB / 0.9532 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.5114, allocations: 45.06 kB / 0.9532 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004681/0.5118, allocations: 312.8 kB / 0.9535 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.512, allocations: 61 kB / 0.9535 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.077e-05/0.512, allocations: 35.31 kB / 0.9536 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.5121, allocations: 1.344 kB / 0.9536 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001543/0.5122, allocations: 81.58 kB / 0.9537 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.5122, allocations: 0 / 0.9537 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003385/0.5126, allocations: 140 kB / 0.9538 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.365e-05/0.5126, allocations: 54.19 kB / 0.9538 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.521e-05/0.5127, allocations: 124.8 kB / 0.954 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.5127, allocations: 31.11 kB / 0.954 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3e-05/0.5127, allocations: 86.86 kB / 0.9541 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.559e-05/0.5127, allocations: 17.98 kB / 0.9541 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.5128, allocations: 25.91 kB / 0.9541 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.071e-05/0.5128, allocations: 325.6 kB / 0.9544 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.258e-05/0.5129, allocations: 26.11 kB / 0.9545 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.16e-05/0.513, allocations: 52.8 kB / 0.9545 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000132/0.5131, allocations: 69.5 kB / 0.9546 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5131, allocations: 4 kB / 0.9546 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002004/0.5133, allocations: 121.6 kB / 0.9547 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.5134, allocations: 4.5 kB / 0.9547 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.5134, allocations: 1.094 kB / 0.9547 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.5134, allocations: 1.062 kB / 0.9547 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.437e-05/0.5135, allocations: 13.14 kB / 0.9547 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.5135, allocations: 1.219 kB / 0.9547 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.124e-05/0.5136, allocations: 11.33 kB / 0.9547 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.5136, allocations: 3.406 kB / 0.9547 GB, free: 4.898 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.08e-05/0.5136, allocations: 130.1 kB / 0.9549 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.531e-05/0.5137, allocations: 6.781 kB / 0.9549 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.151e-05/0.5137, allocations: 9.719 kB / 0.9549 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.5137, allocations: 1.281 kB / 0.9549 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.5137, allocations: 0 / 0.9549 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.5137, allocations: 9.391 kB / 0.9549 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003277/0.514, allocations: 381.8 kB / 0.9552 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.5141, allocations: 1.406 kB / 0.9552 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.592e-05/0.5141, allocations: 10.59 kB / 0.9553 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.5141, allocations: 1.281 kB / 0.9553 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.5141, allocations: 1.406 kB / 0.9553 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.5141, allocations: 3.938 kB / 0.9553 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.5141, allocations: 0 / 0.9553 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.5144, allocations: 206.5 kB / 0.9555 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.854e-05/0.5144, allocations: 86.27 kB / 0.9555 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.5144, allocations: 5.438 kB / 0.9555 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.102e-05/0.5145, allocations: 10.42 kB / 0.9556 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.5145, allocations: 2.562 kB / 0.9556 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.5145, allocations: 6.297 kB / 0.9556 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.119e-05/0.5146, allocations: 96.97 kB / 0.9557 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5146, allocations: 0 / 0.9557 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002742/0.5149, allocations: 41.92 kB / 0.9557 GB, free: 3.984 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.0005581/0.5154, allocations: 0.8141 MB / 0.9565 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002071/0.5156, allocations: 77.08 kB / 0.9566 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.5157, allocations: 0 / 0.9566 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.187e-05/0.5157, allocations: 37.31 kB / 0.9566 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002276/0.516, allocations: 6.219 kB / 0.9566 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.5171, allocations: 1.492 MB / 0.9581 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.056e-05/0.5172, allocations: 0.6841 MB / 0.9587 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.38e-05/0.5173, allocations: 11.33 kB / 0.9587 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.803e-05/0.5173, allocations: 18.72 kB / 0.9588 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of SimCode: time 4.51e-07/0.5173, allocations: 0 / 0.9588 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.778/2.296, allocations: 2.609 MB / 0.9613 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.728/10.02, allocations: 14.06 kB / 0.9613 GB, free: 15.71 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