Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_10_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.006363/0.006363, allocations: 106.3 kB / 15.74 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.001422/0.001422, allocations: 199.2 kB / 16.68 MB, free: 5.93 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.493/2.493, allocations: 437.1 MB / 0.7105 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 71.83 kB / 1.018 GB, free: 9.922 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8911/0.8925, allocations: 151.6 MB / 1.166 GB, free: 3.746 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.002499/0.8951, allocations: 1.483 MB / 1.168 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001202/0.8963, allocations: 0.7323 MB / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.319e-05/0.8963, allocations: 0 / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.981e-05/0.8964, allocations: 7.875 kB / 1.168 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.059e-05/0.8965, allocations: 11.91 kB / 1.168 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005516/0.897, allocations: 123.6 kB / 1.168 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001254/0.8972, allocations: 79.77 kB / 1.168 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.423e-05/0.8973, allocations: 12 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.639e-05/0.8974, allocations: 39.89 kB / 1.169 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.874e-05/0.8974, allocations: 35.84 kB / 1.169 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.8975, allocations: 4 kB / 1.169 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002013/0.8977, allocations: 99.84 kB / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.688e-05/0.8977, allocations: 23.91 kB / 1.169 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.318e-05/0.8978, allocations: 27.86 kB / 1.169 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002436/0.898, allocations: 145.9 kB / 1.169 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.898, allocations: 3.938 kB / 1.169 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.453e-06/0.898, allocations: 4 kB / 1.169 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.8981, allocations: 0 / 1.169 GB, free: 0.9102 MB / 0.8887 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.0006517/0.8987, allocations: 416.9 kB / 1.169 GB, free: 460 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.8988, allocations: 12.62 kB / 1.169 GB, free: 448 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.884e-05/0.8988, allocations: 30.75 kB / 1.169 GB, free: 408 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.606e-05/0.8989, allocations: 12.83 kB / 1.169 GB, free: 396 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.899, allocations: 168.3 kB / 1.169 GB, free: 188 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/0.899, allocations: 8.375 kB / 1.169 GB, free: 180 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/0.8991, allocations: 8.375 kB / 1.169 GB, free: 172 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.8992, allocations: 69.77 kB / 1.17 GB, free: 96 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.8993, allocations: 0 / 1.17 GB, free: 96 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.8993, allocations: 7.875 kB / 1.17 GB, free: 88 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.8993, allocations: 4 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001187/0.8994, allocations: 35.97 kB / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006206/0.9, allocations: 316.7 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001245/0.9002, allocations: 54.55 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.724e-05/0.9003, allocations: 28.97 kB / 1.17 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.9003, allocations: 3.938 kB / 1.17 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001968/0.9005, allocations: 83.28 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.9005, allocations: 0 / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0003954/0.9009, allocations: 141.7 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.901, allocations: 51.41 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.121e-05/0.9011, allocations: 125.7 kB / 1.17 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.9011, allocations: 25.7 kB / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.901e-05/0.9011, allocations: 96.14 kB / 1.17 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.902e-05/0.9012, allocations: 19.73 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.247e-05/0.9012, allocations: 25.72 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.659e-05/0.9013, allocations: 322.8 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.091e-05/0.9014, allocations: 27.98 kB / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.511e-05/0.9015, allocations: 46.55 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.9017, allocations: 70.56 kB / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.9017, allocations: 0 / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002284/0.9019, allocations: 117.4 kB / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.9019, allocations: 4 kB / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.9019, allocations: 4 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.902, allocations: 4.062 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.9021, allocations: 19.92 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.9021, allocations: 0 / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.853e-05/0.9021, allocations: 11.92 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.9022, allocations: 4 kB / 1.171 GB, free: 14.32 MB / 0.9044 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 9.118e-05/0.9023, allocations: 117.8 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.682e-05/0.9023, allocations: 11.84 kB / 1.171 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.885e-05/0.9023, allocations: 12.38 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.9023, allocations: 7.938 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.9023, allocations: 3.984 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.9023, allocations: 0 / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004363/0.9028, allocations: 378.5 kB / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.9028, allocations: 0 / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.028e-05/0.9028, allocations: 4 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.9029, allocations: 0 / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.9029, allocations: 4 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.9029, allocations: 3.938 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.9029, allocations: 7.938 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002866/0.9032, allocations: 207.4 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.131e-05/0.9032, allocations: 89.02 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.9033, allocations: 0 / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.193e-05/0.9034, allocations: 11.92 kB / 1.172 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.9034, allocations: 7.984 kB / 1.172 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.9034, allocations: 7.984 kB / 1.172 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.666e-05/0.9035, allocations: 87.28 kB / 1.172 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9035, allocations: 0 / 1.172 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003019/0.9038, allocations: 43.92 kB / 1.172 GB, free: 13.24 MB / 0.9044 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.0008256/0.9046, allocations: 0.8224 MB / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002445/0.9049, allocations: 63.91 kB / 1.173 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.9049, allocations: 0 / 1.173 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.905, allocations: 39.95 kB / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.9053, allocations: 16.62 kB / 1.173 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.9069, allocations: 1.483 MB / 1.174 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.9072, allocations: 0.6945 MB / 1.175 GB, free: 9.992 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.571e-05/0.9072, allocations: 4 kB / 1.175 GB, free: 9.988 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.817e-05/0.9073, allocations: 23.42 kB / 1.175 GB, free: 9.965 MB / 0.9044 GB Notification: Performance of SimCode: time 2.61e-07/0.9073, allocations: 0 / 1.175 GB, free: 9.965 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01855/0.9258, allocations: 2.66 MB / 1.178 GB, free: 7.457 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.692/8.618, allocations: 7.953 kB / 1.178 GB, free: 7.449 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; mkfifo Buildings_10_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe >> ../files/Buildings_10_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.fmu > Buildings_10_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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