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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK") translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 195.6 kB / 16.53 MB, free: 6.699 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.477/1.477, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.845/2.845, allocations: 472.6 MB / 0.7451 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 59.2 kB / 0.912 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3684, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK): time 0.002804/0.3713, allocations: 1.474 MB / 1.07 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001244/0.3726, allocations: 0.7399 MB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.287e-05/0.3726, allocations: 0 / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.812e-05/0.3727, allocations: 3.938 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.536e-05/0.3727, allocations: 15.88 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005088/0.3732, allocations: 123.6 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.3733, allocations: 71.83 kB / 1.071 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.85e-05/0.3735, allocations: 19.97 kB / 1.071 GB, free: 8 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.924e-05/0.3735, allocations: 31.86 kB / 1.071 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.719e-05/0.3736, allocations: 39.83 kB / 1.071 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.028e-05/0.3736, allocations: 12 kB / 1.071 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001942/0.3738, allocations: 95.89 kB / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.74e-05/0.3739, allocations: 19.92 kB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.802e-05/0.3739, allocations: 31.86 kB / 1.071 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002153/0.3742, allocations: 147.8 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3742, allocations: 3.938 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.654e-06/0.3742, allocations: 0 / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.059e-06/0.3742, allocations: 0 / 1.071 GB, free: 7.625 MB / 0.8262 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.000601/0.3748, allocations: 417 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.3748, allocations: 8.031 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.245e-05/0.3749, allocations: 8.844 kB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.375, allocations: 176.2 kB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.3751, allocations: 8.375 kB / 1.072 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.3751, allocations: 4.375 kB / 1.072 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.3753, allocations: 65.97 kB / 1.072 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.3753, allocations: 3.938 kB / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.3753, allocations: 0 / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.3753, allocations: 4 kB / 1.072 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001259/0.3754, allocations: 47.91 kB / 1.072 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005921/0.376, allocations: 304.8 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001291/0.3762, allocations: 54.55 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.581e-05/0.3763, allocations: 36.97 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.3763, allocations: 4.016 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.3765, allocations: 79.36 kB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.3765, allocations: 0 / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003759/0.3769, allocations: 141.5 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.3769, allocations: 55.41 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.751e-05/0.377, allocations: 125.7 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.3771, allocations: 29.7 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.089e-05/0.3771, allocations: 92.08 kB / 1.073 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.3772, allocations: 15.75 kB / 1.073 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.783e-05/0.3772, allocations: 29.7 kB / 1.073 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.3773, allocations: 322.8 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.358e-05/0.3774, allocations: 31.98 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.099e-05/0.3775, allocations: 50.97 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.3777, allocations: 66.56 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3777, allocations: 3.938 kB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002365/0.3779, allocations: 113.5 kB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.378, allocations: 4 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.378, allocations: 4 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.378, allocations: 0 / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.461e-05/0.3781, allocations: 15.98 kB / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.3781, allocations: 0 / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.44e-05/0.3782, allocations: 7.938 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.3782, allocations: 7.984 kB / 1.073 GB, free: 5.086 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 9.596e-05/0.3783, allocations: 121.8 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.043e-05/0.3783, allocations: 7.906 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.598e-05/0.3783, allocations: 20.25 kB / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3784, allocations: 0 / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3784, allocations: 0 / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.3784, allocations: 4 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004802/0.3789, allocations: 382.4 kB / 1.074 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3789, allocations: 4 kB / 1.074 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.049e-05/0.3789, allocations: 7.984 kB / 1.074 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3789, allocations: 0 / 1.074 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.3789, allocations: 4 kB / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.3789, allocations: 0 / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.379, allocations: 8.344 kB / 1.074 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002656/0.3792, allocations: 211.4 kB / 1.074 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.78e-05/0.3793, allocations: 89.02 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.3793, allocations: 0 / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.021e-05/0.3794, allocations: 7.984 kB / 1.074 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.758e-05/0.3794, allocations: 7.938 kB / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-06/0.3795, allocations: 0 / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.303e-05/0.3795, allocations: 95.42 kB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3795, allocations: 0 / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002906/0.3798, allocations: 39.98 kB / 1.074 GB, free: 3.996 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.0003306/0.3802, allocations: 158.7 kB / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002274/0.3804, allocations: 79.83 kB / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3804, allocations: 0 / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.746e-05/0.3805, allocations: 39.91 kB / 1.074 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.3808, allocations: 16.69 kB / 1.074 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003865/0.3812, allocations: 178.8 kB / 1.075 GB, free: 3.512 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.3814, allocations: 0.6924 MB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.501e-05/0.3814, allocations: 8 kB / 1.075 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.698e-05/0.3815, allocations: 11.44 kB / 1.075 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3815, allocations: 0 / 1.075 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of Templates: time 0.003953/0.3854, allocations: 1.454 MB / 1.077 GB, free: 1.324 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.makefile (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 & ./Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0