Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_latest_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.001097/0.001097, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.009611/0.009611, allocations: 170 kB / 16.27 MB, free: 6.66 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.522/1.522, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.589/2.589, allocations: 462.6 MB / 0.7364 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00048/0.00048, allocations: 9.969 kB / 0.9029 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4124/0.4129, allocations: 159.6 MB / 1.059 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.00212/0.4151, allocations: 1.213 MB / 1.06 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00149/0.4166, allocations: 0.7091 MB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.229e-05/0.4167, allocations: 0 / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.224e-05/0.4167, allocations: 11.86 kB / 1.061 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.944e-05/0.4168, allocations: 7.922 kB / 1.061 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006869/0.4175, allocations: 107.8 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.4177, allocations: 67.78 kB / 1.061 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.4178, allocations: 19.97 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.4179, allocations: 27.91 kB / 1.061 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.701e-05/0.418, allocations: 35.84 kB / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.418, allocations: 4 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002499/0.4183, allocations: 91.84 kB / 1.061 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.735e-05/0.4183, allocations: 19.92 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.015e-05/0.4184, allocations: 53.55 kB / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002838/0.4187, allocations: 139.9 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.4187, allocations: 4 kB / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.936e-06/0.4187, allocations: 0 / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.962e-06/0.4188, allocations: 0 / 1.061 GB, free: 2.32 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.0007651/0.4195, allocations: 401 kB / 1.062 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.819e-05/0.4196, allocations: 11.97 kB / 1.062 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.821e-05/0.4197, allocations: 38.75 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.08e-05/0.4197, allocations: 12.86 kB / 1.062 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001584/0.4199, allocations: 172.2 kB / 1.062 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.4199, allocations: 4.375 kB / 1.062 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.4199, allocations: 8.312 kB / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000227/0.4202, allocations: 77.77 kB / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.4202, allocations: 0 / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.4202, allocations: 0 / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-06/0.4202, allocations: 8 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001528/0.4204, allocations: 39.97 kB / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006953/0.4211, allocations: 328.6 kB / 1.062 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001458/0.4213, allocations: 58.48 kB / 1.062 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.115e-05/0.4214, allocations: 32.97 kB / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.4214, allocations: 0 / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.4216, allocations: 87.38 kB / 1.062 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.104e-06/0.4216, allocations: 0 / 1.062 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004495/0.4221, allocations: 141.6 kB / 1.063 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.678e-05/0.4222, allocations: 63.39 kB / 1.063 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.4223, allocations: 129.8 kB / 1.063 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.4223, allocations: 25.7 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.73e-05/0.4224, allocations: 88.14 kB / 1.063 GB, free: 420 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/0.4224, allocations: 19.73 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.571e-05/0.4225, allocations: 17.72 kB / 1.063 GB, free: 376 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.4226, allocations: 326.8 kB / 1.063 GB, free: 40 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.434e-05/0.4227, allocations: 23.98 kB / 1.063 GB, free: 16 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.4228, allocations: 50.64 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001796/0.423, allocations: 82.48 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.423, allocations: 4 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002667/0.4233, allocations: 117.5 kB / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.4233, allocations: 4 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.4233, allocations: 0 / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.4234, allocations: 4 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.4235, allocations: 16.05 kB / 1.063 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.4235, allocations: 0 / 1.063 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.495e-05/0.4236, allocations: 12 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.4236, allocations: 4 kB / 1.064 GB, free: 15.7 MB / 0.8262 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 0.0001163/0.4237, allocations: 129.6 kB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.096e-05/0.4238, allocations: 7.906 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.638e-05/0.4238, allocations: 8.375 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.4238, allocations: 0 / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.4238, allocations: 4 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.4238, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005/0.4243, allocations: 394.3 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4243, allocations: 3.938 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.143e-05/0.4244, allocations: 7.984 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.4244, allocations: 0 / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.4244, allocations: 12 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.4244, allocations: 3.938 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4244, allocations: 0 / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003051/0.4248, allocations: 215.9 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.82e-05/0.4248, allocations: 81.02 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.832e-05/0.4248, allocations: 8 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.01e-05/0.4249, allocations: 11.94 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/0.425, allocations: 7.969 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.425, allocations: 4 kB / 1.064 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.271e-05/0.4251, allocations: 91.27 kB / 1.064 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4251, allocations: 3.938 kB / 1.064 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003306/0.4254, allocations: 39.98 kB / 1.064 GB, free: 14.59 MB / 0.8262 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.0009167/0.4263, allocations: 0.8024 MB / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002411/0.4266, allocations: 83.83 kB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.4266, allocations: 0 / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.4267, allocations: 39.92 kB / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.427, allocations: 15.92 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.4291, allocations: 1.522 MB / 1.067 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002864/0.4294, allocations: 0.6926 MB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.332e-05/0.4294, allocations: 4 kB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.284e-05/0.4295, allocations: 19.42 kB / 1.068 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of SimCode: time 1.062e-06/0.4295, allocations: 0 / 1.068 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01936/0.4489, allocations: 2.347 MB / 1.07 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003093/0.4492, allocations: 275.7 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/2.26, allocations: 2.156 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.fmu > Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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