Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.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.Nicol2001WindowsUK,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK",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.001072/0.001072, allocations: 90.91 kB / 15.36 MB, free: 0.7383 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.01053/0.01053, allocations: 172 kB / 16.26 MB, free: 6.613 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.377/1.377, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.666/2.666, allocations: 462.7 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004628/0.0004628, allocations: 12.72 kB / 0.9029 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.308, allocations: 159.6 MB / 1.059 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK): time 0.001587/0.3096, allocations: 1.213 MB / 1.06 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001187/0.3108, allocations: 0.7207 MB / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.089e-05/0.3109, allocations: 0 / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.929e-05/0.3109, allocations: 7.875 kB / 1.061 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.9e-05/0.311, allocations: 7.922 kB / 1.061 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004764/0.3115, allocations: 103.8 kB / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.617e-05/0.3116, allocations: 71.83 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.389e-05/0.3117, allocations: 12 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.117e-05/0.3118, allocations: 31.84 kB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.728e-05/0.3118, allocations: 35.83 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.3119, allocations: 4 kB / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001825/0.3121, allocations: 87.91 kB / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.584e-05/0.3121, allocations: 19.92 kB / 1.061 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.32e-05/0.3121, allocations: 57.5 kB / 1.061 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.3124, allocations: 135.9 kB / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3124, allocations: 0 / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3124, allocations: 4 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.3124, allocations: 0 / 1.061 GB, free: 2.316 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.0005282/0.3129, allocations: 405 kB / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.313, allocations: 11.97 kB / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.82e-05/0.313, allocations: 38.75 kB / 1.062 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.084e-05/0.313, allocations: 4.938 kB / 1.062 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.3132, allocations: 176.2 kB / 1.062 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.3132, allocations: 4.375 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.066e-05/0.3132, allocations: 8.375 kB / 1.062 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001753/0.3134, allocations: 73.72 kB / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3134, allocations: 3.984 kB / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.3134, allocations: 0 / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.3134, allocations: 8 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.3136, allocations: 39.97 kB / 1.062 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005512/0.3141, allocations: 324.6 kB / 1.062 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/0.3143, allocations: 58.5 kB / 1.062 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.747e-05/0.3144, allocations: 36.95 kB / 1.062 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.3144, allocations: 4.062 kB / 1.062 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00017/0.3146, allocations: 83.38 kB / 1.062 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.3146, allocations: 0 / 1.062 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003813/0.315, allocations: 141.5 kB / 1.063 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.315, allocations: 63.34 kB / 1.063 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.284e-05/0.3151, allocations: 125.8 kB / 1.063 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.3151, allocations: 25.7 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.406e-05/0.3152, allocations: 92.14 kB / 1.063 GB, free: 416 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.923e-05/0.3152, allocations: 15.73 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/0.3153, allocations: 21.7 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.882e-05/0.3153, allocations: 326.7 kB / 1.063 GB, free: 36 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.325e-05/0.3154, allocations: 35.97 kB / 1.063 GB, free: 0 / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.3155, allocations: 46.56 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.3157, allocations: 82.48 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3157, allocations: 4 kB / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002382/0.316, allocations: 117.5 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.316, allocations: 4 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.316, allocations: 0 / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.316, allocations: 4 kB / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.076e-05/0.3161, allocations: 16.05 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.3161, allocations: 0 / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.593e-05/0.3162, allocations: 8 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.3162, allocations: 0 / 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 8.703e-05/0.3163, allocations: 133.7 kB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.569e-05/0.3163, allocations: 7.906 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.3164, allocations: 8.359 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3164, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3164, allocations: 4 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3164, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004252/0.3168, allocations: 390.8 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3168, allocations: 0 / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.103e-05/0.3169, allocations: 7.938 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.3169, allocations: 0 / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.3169, allocations: 11.98 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3169, allocations: 3.938 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.3169, allocations: 4 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002676/0.3172, allocations: 215.5 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.216e-05/0.3172, allocations: 81.02 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.3173, allocations: 7.984 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.738e-05/0.3173, allocations: 11.94 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.495e-05/0.3174, allocations: 3.984 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.3174, allocations: 4 kB / 1.064 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.005e-05/0.3175, allocations: 95.27 kB / 1.064 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3175, allocations: 0 / 1.064 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002805/0.3178, allocations: 32 kB / 1.064 GB, free: 14.6 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.000711/0.3185, allocations: 0.8158 MB / 1.065 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002224/0.3187, allocations: 79.89 kB / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3187, allocations: 0 / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.48e-05/0.3188, allocations: 43.92 kB / 1.065 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002426/0.3191, allocations: 10.61 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.001443/0.3205, allocations: 1.526 MB / 1.067 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001986/0.3207, allocations: 0.6887 MB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.309e-05/0.3208, allocations: 0 / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.297e-05/0.3208, allocations: 27.42 kB / 1.068 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of SimCode: time 4.21e-07/0.3208, allocations: 0 / 1.068 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0114/0.3322, allocations: 2.334 MB / 1.07 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001995/0.3325, allocations: 266.1 kB / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.847/2.179, allocations: 1 kB / 1.07 GB, free: 8.77 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK.fmu > Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.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