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.001623/0.001623, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002195/0.002195, allocations: 192.7 kB / 16.14 MB, free: 6.711 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.495/1.495, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.662/2.662, allocations: 461.8 MB / 0.7342 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 63.62 kB / 0.8985 GB, free: 37.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2643, allocations: 157.4 MB / 1.052 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK): time 0.00269/0.267, allocations: 1.546 MB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001162/0.2682, allocations: 0.7439 MB / 1.054 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.898e-05/0.2683, allocations: 4 kB / 1.054 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.218e-05/0.2683, allocations: 0 / 1.054 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.521e-05/0.2684, allocations: 11.86 kB / 1.054 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004536/0.2689, allocations: 103.8 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.165e-05/0.269, allocations: 63.84 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.439e-05/0.2691, allocations: 19.97 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.926e-05/0.2692, allocations: 31.86 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.489e-05/0.2692, allocations: 39.88 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.821e-05/0.2693, allocations: 4 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.2694, allocations: 91.84 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.68e-05/0.2695, allocations: 15.92 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.338e-05/0.2695, allocations: 31.84 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002036/0.2697, allocations: 139.9 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.2697, allocations: 4 kB / 1.055 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.72e-07/0.2697, allocations: 0 / 1.055 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.2698, allocations: 0 / 1.055 GB, free: 5.41 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.000591/0.2704, allocations: 417 kB / 1.055 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.2704, allocations: 11.97 kB / 1.055 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.534e-05/0.2704, allocations: 34.73 kB / 1.055 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.032e-05/0.2705, allocations: 8.844 kB / 1.055 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001089/0.2706, allocations: 176.2 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.06e-05/0.2706, allocations: 12.38 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.2707, allocations: 4.375 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.2709, allocations: 65.78 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.2709, allocations: 3.984 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.2709, allocations: 11.94 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.2709, allocations: 0 / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.2711, allocations: 35.92 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006264/0.2717, allocations: 320.8 kB / 1.056 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001355/0.2718, allocations: 46.56 kB / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.116e-05/0.2719, allocations: 28.97 kB / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.272, allocations: 4 kB / 1.056 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002234/0.2722, allocations: 83.31 kB / 1.056 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.2722, allocations: 0 / 1.056 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004208/0.2726, allocations: 141.8 kB / 1.056 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.2727, allocations: 55.39 kB / 1.056 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.2728, allocations: 117.8 kB / 1.056 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.2728, allocations: 29.7 kB / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.525e-05/0.2729, allocations: 104.1 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.2729, allocations: 15.84 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.594e-05/0.273, allocations: 25.7 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.2731, allocations: 318.8 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.558e-05/0.2732, allocations: 31.97 kB / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.552e-05/0.2733, allocations: 50.5 kB / 1.057 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.2735, allocations: 74.48 kB / 1.057 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2735, allocations: 0 / 1.057 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002411/0.2737, allocations: 113.5 kB / 1.057 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.2738, allocations: 8 kB / 1.057 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.2738, allocations: 0 / 1.057 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.2738, allocations: 4.062 kB / 1.057 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.2739, allocations: 15.92 kB / 1.057 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.2739, allocations: 4 kB / 1.057 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.598e-05/0.274, allocations: 7.906 kB / 1.057 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.274, allocations: 0 / 1.057 GB, free: 2.82 MB / 0.8106 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.0001048/0.2741, allocations: 125.8 kB / 1.057 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.731e-05/0.2741, allocations: 3.906 kB / 1.057 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.151e-05/0.2742, allocations: 12.36 kB / 1.057 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.2742, allocations: 4 kB / 1.057 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.2742, allocations: 0 / 1.057 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2742, allocations: 0 / 1.057 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004762/0.2747, allocations: 386.3 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.2747, allocations: 0 / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.861e-05/0.2747, allocations: 4 kB / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/0.2747, allocations: 4 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.169e-05/0.2748, allocations: 3.984 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.2748, allocations: 7.938 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.2748, allocations: 0 / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002818/0.2751, allocations: 215.3 kB / 1.058 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.521e-05/0.2751, allocations: 77.11 kB / 1.058 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.135e-05/0.2751, allocations: 3.984 kB / 1.058 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.972e-05/0.2752, allocations: 7.938 kB / 1.058 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.981e-05/0.2753, allocations: 7.984 kB / 1.058 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.2753, allocations: 7.984 kB / 1.058 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.176e-05/0.2754, allocations: 99.27 kB / 1.058 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2754, allocations: 0 / 1.058 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003058/0.2757, allocations: 35.91 kB / 1.058 GB, free: 1.734 MB / 0.8106 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.0007739/0.2765, allocations: 0.8098 MB / 1.059 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002213/0.2767, allocations: 67.95 kB / 1.059 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2767, allocations: 0 / 1.059 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.623e-05/0.2768, allocations: 39.92 kB / 1.059 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.2771, allocations: 12.81 kB / 1.059 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.2788, allocations: 1.504 MB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002124/0.279, allocations: 0.6887 MB / 1.061 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.747e-05/0.279, allocations: 4 kB / 1.061 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.382e-05/0.2791, allocations: 23.42 kB / 1.061 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.2791, allocations: 0 / 1.061 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01161/0.2907, allocations: 2.425 MB / 1.064 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/0.2909, allocations: 270.7 kB / 1.064 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.641/1.932, allocations: 8.078 kB / 1.064 GB, free: 11.82 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