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: translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_10_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan") translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_10_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, 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.001326/0.001326, allocations: 193 kB / 16.14 MB, free: 6.719 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.523/1.523, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.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.744/2.744, allocations: 437 MB / 0.7099 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.91 kB / 0.8685 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7683/0.7695, allocations: 151.6 MB / 1.017 GB, free: 2.754 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.003046/0.7726, allocations: 1.546 MB / 1.018 GB, free: 1.199 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001363/0.774, allocations: 0.7479 MB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.006e-05/0.774, allocations: 0 / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.501e-05/0.7741, allocations: 3.938 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.838e-05/0.7742, allocations: 7.922 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005344/0.7748, allocations: 99.77 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001229/0.7749, allocations: 79.77 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.145e-05/0.775, allocations: 12 kB / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.861e-05/0.7751, allocations: 23.92 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.695e-05/0.7752, allocations: 43.81 kB / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.48e-05/0.7752, allocations: 4 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002418/0.7755, allocations: 87.84 kB / 1.019 GB, free: 92 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.366e-05/0.7755, allocations: 19.92 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.454e-05/0.7756, allocations: 27.84 kB / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0003186/0.7759, allocations: 141.6 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.7759, allocations: 0 / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.343e-06/0.7759, allocations: 0 / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.072e-06/0.7759, allocations: 0 / 1.019 GB, free: 15.91 MB / 0.7794 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.000711/0.7767, allocations: 417 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.7767, allocations: 12.02 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.159e-05/0.7768, allocations: 8.844 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.7769, allocations: 172.2 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/0.7769, allocations: 12.38 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.777, allocations: 4.312 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002049/0.7772, allocations: 73.97 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.7772, allocations: 3.938 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.7772, allocations: 0 / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.7772, allocations: 4 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.7774, allocations: 35.97 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006864/0.7781, allocations: 328.6 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.7782, allocations: 42.56 kB / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.519e-05/0.7783, allocations: 32.97 kB / 1.02 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.7783, allocations: 0 / 1.02 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002159/0.7786, allocations: 79.38 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.7786, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004256/0.779, allocations: 141.5 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.7791, allocations: 51.41 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.7792, allocations: 121.8 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.7792, allocations: 29.7 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.369e-05/0.7793, allocations: 96.2 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.049e-05/0.7793, allocations: 19.8 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.978e-05/0.7794, allocations: 21.72 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.7795, allocations: 322.8 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.28e-05/0.7796, allocations: 27.98 kB / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.329e-05/0.7797, allocations: 46.55 kB / 1.021 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.7799, allocations: 86.78 kB / 1.021 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.7799, allocations: 0 / 1.021 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002425/0.7802, allocations: 109.5 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.7802, allocations: 4 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.7802, allocations: 4 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.7802, allocations: 11.98 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.7803, allocations: 8 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.7804, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.819e-05/0.7804, allocations: 19.77 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.7805, allocations: 4 kB / 1.022 GB, free: 13.36 MB / 0.7794 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.975e-05/0.7806, allocations: 122.3 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.796e-05/0.7806, allocations: 4 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.929e-05/0.7806, allocations: 12.36 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.7806, allocations: 7.984 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.7806, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.7807, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004495/0.7811, allocations: 386.3 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.7811, allocations: 0 / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.095e-05/0.7812, allocations: 4 kB / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.7812, allocations: 0 / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.7812, allocations: 7.938 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.7812, allocations: 7.984 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.7812, allocations: 3.938 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000274/0.7815, allocations: 203.4 kB / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.468e-05/0.7815, allocations: 81.11 kB / 1.022 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.7816, allocations: 0 / 1.022 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.29e-05/0.7817, allocations: 7.984 kB / 1.022 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.817e-05/0.7817, allocations: 7.875 kB / 1.022 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.7817, allocations: 15.98 kB / 1.022 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.043e-05/0.7818, allocations: 91.27 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7818, allocations: 0 / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003431/0.7821, allocations: 39.94 kB / 1.023 GB, free: 12.27 MB / 0.7794 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.0003622/0.7825, allocations: 164.9 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002353/0.7828, allocations: 79.88 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.7828, allocations: 0 / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.81e-05/0.7829, allocations: 31.98 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.7832, allocations: 11.94 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004186/0.7836, allocations: 199.3 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.7838, allocations: 0.6887 MB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.01e-05/0.7839, allocations: 4 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.027e-05/0.7839, allocations: 11.44 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of SimCode: time 6.01e-07/0.7839, allocations: 0 / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of Templates: time 0.004087/0.788, allocations: 1.371 MB / 1.025 GB, free: 9.676 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.makefile (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 & ./Buildings_10_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0