Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU,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.Nicol2001WindowsEU") translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU,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.Nicol2001WindowsEU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.313/2.313, allocations: 393.5 MB / 408.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001184, allocations: 190.9 kB / 0.4902 GB, free: 2.246 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.628/1.628, allocations: 223.2 MB / 0.7992 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 102.6 kB / 0.9396 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003442/0.0003443, allocations: 9.188 kB / 1.09 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2689, allocations: 143 MB / 1.229 GB, free: 85.54 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1817/0.4506, allocations: 152 MB / 1.378 GB, free: 13.32 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.4509, allocations: 87.94 kB / 1.378 GB, free: 13.23 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.009478/0.4604, allocations: 3.042 MB / 1.381 GB, free: 10.18 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.186e-06/0.4604, allocations: 0 / 1.381 GB, free: 10.18 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.007e-06/0.4604, allocations: 0 / 1.381 GB, free: 10.18 MB / 0.8855 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.0005843/0.461, allocations: 424.7 kB / 1.381 GB, free: 9.715 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.4611, allocations: 8.562 kB / 1.381 GB, free: 9.707 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/0.4611, allocations: 15.8 kB / 1.381 GB, free: 9.691 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.4613, allocations: 163.1 kB / 1.381 GB, free: 9.492 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/0.4613, allocations: 7.984 kB / 1.381 GB, free: 9.484 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.21e-05/0.4614, allocations: 8 kB / 1.381 GB, free: 9.477 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000185/0.4615, allocations: 69.66 kB / 1.381 GB, free: 9.402 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.4616, allocations: 7.938 kB / 1.381 GB, free: 9.395 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.4616, allocations: 0 / 1.381 GB, free: 9.395 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.4616, allocations: 0 / 1.381 GB, free: 9.395 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001331/0.4617, allocations: 47.95 kB / 1.381 GB, free: 9.348 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006196/0.4624, allocations: 320.7 kB / 1.382 GB, free: 8.984 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001245/0.4625, allocations: 46.56 kB / 1.382 GB, free: 8.93 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.4625, allocations: 128 / 1.382 GB, free: 8.93 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001696/0.4627, allocations: 83.38 kB / 1.382 GB, free: 8.836 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.4627, allocations: 0 / 1.382 GB, free: 8.836 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0003976/0.4631, allocations: 161.4 kB / 1.382 GB, free: 8.672 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.4632, allocations: 59.39 kB / 1.382 GB, free: 8.602 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.276e-05/0.4633, allocations: 105 kB / 1.382 GB, free: 8.492 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.4633, allocations: 33.7 kB / 1.382 GB, free: 8.453 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.408e-05/0.4634, allocations: 88.23 kB / 1.382 GB, free: 8.359 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.13e-05/0.4634, allocations: 23.73 kB / 1.382 GB, free: 8.336 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.761e-06/0.4634, allocations: 0 / 1.382 GB, free: 8.336 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.4635, allocations: 319 kB / 1.383 GB, free: 8.016 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.222e-05/0.4636, allocations: 27.98 kB / 1.383 GB, free: 7.988 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.314e-05/0.4637, allocations: 54.98 kB / 1.383 GB, free: 7.926 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.658e-05/0.4638, allocations: 39.92 kB / 1.383 GB, free: 7.887 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4638, allocations: 0 / 1.383 GB, free: 7.887 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002602/0.4641, allocations: 117.6 kB / 1.383 GB, free: 7.766 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.4641, allocations: 9.078 kB / 1.383 GB, free: 7.758 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.4641, allocations: 4 kB / 1.383 GB, free: 7.754 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.4642, allocations: 0 / 1.383 GB, free: 7.754 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.247e-05/0.4643, allocations: 8 kB / 1.383 GB, free: 7.746 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.4643, allocations: 7.953 kB / 1.383 GB, free: 7.738 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.184e-05/0.4644, allocations: 19.89 kB / 1.383 GB, free: 7.719 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.4644, allocations: 8 kB / 1.383 GB, free: 7.711 MB / 0.8855 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 (occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.993e-05/0.4645, allocations: 117.8 kB / 1.383 GB, free: 7.586 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.75e-05/0.4645, allocations: 7.906 kB / 1.383 GB, free: 7.578 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.947e-05/0.4645, allocations: 8.359 kB / 1.383 GB, free: 7.57 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.4645, allocations: 0 / 1.383 GB, free: 7.57 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.4646, allocations: 4 kB / 1.383 GB, free: 7.566 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.4646, allocations: 7.938 kB / 1.383 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000435/0.465, allocations: 378.5 kB / 1.383 GB, free: 7.133 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.465, allocations: 0 / 1.383 GB, free: 7.133 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.375e-05/0.4651, allocations: 4 kB / 1.383 GB, free: 7.129 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.4651, allocations: 3.938 kB / 1.383 GB, free: 7.125 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.4651, allocations: 7.984 kB / 1.383 GB, free: 7.117 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.4651, allocations: 3.953 kB / 1.383 GB, free: 7.113 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4651, allocations: 0 / 1.383 GB, free: 7.113 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002776/0.4654, allocations: 223.9 kB / 1.384 GB, free: 6.879 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.571e-05/0.4655, allocations: 77.11 kB / 1.384 GB, free: 6.785 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.4655, allocations: 3.984 kB / 1.384 GB, free: 6.781 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.738e-05/0.4656, allocations: 4 kB / 1.384 GB, free: 6.777 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.256e-05/0.4656, allocations: 15.94 kB / 1.384 GB, free: 6.762 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.4656, allocations: 8 kB / 1.384 GB, free: 6.754 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.083e-05/0.4657, allocations: 95.42 kB / 1.384 GB, free: 6.66 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4657, allocations: 0 / 1.384 GB, free: 6.66 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003105/0.466, allocations: 47.94 kB / 1.384 GB, free: 6.613 MB / 0.8855 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,occ.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003937/0.4664, allocations: 178.5 kB / 1.384 GB, free: 6.441 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002489/0.4667, allocations: 75.95 kB / 1.384 GB, free: 6.367 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4667, allocations: 0 / 1.384 GB, free: 6.367 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.4668, allocations: 35.92 kB / 1.384 GB, free: 6.332 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001819/0.467, allocations: 20.38 kB / 1.384 GB, free: 6.312 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004272/0.4674, allocations: 207.1 kB / 1.384 GB, free: 6.078 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.4678, allocations: 0.6887 MB / 1.385 GB, free: 5.363 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.42e-05/0.4678, allocations: 8.188 kB / 1.385 GB, free: 5.355 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.244e-05/0.4679, allocations: 11.44 kB / 1.385 GB, free: 5.344 MB / 0.8855 GB Notification: Performance of SimCode: time 3.2e-07/0.4679, allocations: 0 / 1.385 GB, free: 5.344 MB / 0.8855 GB Notification: Performance of Templates: time 0.004209/0.4721, allocations: 1.523 MB / 1.387 GB, free: 3.824 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.makefile (rm -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.sim & ./Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsEU.csv","../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsEU.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,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0