Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Office.Windows.Validation.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00869/0.00869, allocations: 99.64 kB / 15.73 MB, free: 6.02 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.001956/0.001956, allocations: 190.8 kB / 16.67 MB, free: 5.961 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.732/2.732, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 67.91 kB / 1.054 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3538, allocations: 157.4 MB / 1.208 GB, free: 9.676 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn): time 0.002515/0.3564, allocations: 1.491 MB / 1.209 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001287/0.3577, allocations: 0.7366 MB / 1.21 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.138e-05/0.3577, allocations: 4 kB / 1.21 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.368e-05/0.3578, allocations: 11.86 kB / 1.21 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.342e-05/0.3578, allocations: 7.875 kB / 1.21 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005596/0.3584, allocations: 131.5 kB / 1.21 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.3585, allocations: 75.77 kB / 1.21 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.236e-05/0.3586, allocations: 15.94 kB / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.92e-05/0.3587, allocations: 27.92 kB / 1.21 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.435e-05/0.3588, allocations: 47.81 kB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.3588, allocations: 8 kB / 1.21 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001799/0.359, allocations: 91.84 kB / 1.21 GB, free: 7.016 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.348e-05/0.359, allocations: 19.92 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.494e-05/0.3591, allocations: 35.86 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002172/0.3593, allocations: 143.6 kB / 1.21 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3593, allocations: 0 / 1.21 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3593, allocations: 0 / 1.21 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.399e-06/0.3593, allocations: 0 / 1.21 GB, free: 6.82 MB / 0.9669 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.0005943/0.3599, allocations: 413 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.36, allocations: 8.031 kB / 1.211 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4e-05/0.36, allocations: 8.844 kB / 1.211 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.3601, allocations: 184.2 kB / 1.211 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.3602, allocations: 12.36 kB / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.3602, allocations: 4.375 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001776/0.3604, allocations: 69.97 kB / 1.211 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3604, allocations: 0 / 1.211 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.3604, allocations: 3.938 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.3604, allocations: 4 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.3606, allocations: 39.95 kB / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005915/0.3612, allocations: 316.7 kB / 1.212 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.3613, allocations: 46.5 kB / 1.212 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.523e-05/0.3614, allocations: 32.97 kB / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.3614, allocations: 0 / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002021/0.3616, allocations: 83.44 kB / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.3616, allocations: 0 / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003796/0.362, allocations: 137.6 kB / 1.212 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/0.3621, allocations: 55.41 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.439e-05/0.3622, allocations: 121.8 kB / 1.212 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.3622, allocations: 29.7 kB / 1.212 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.842e-05/0.3622, allocations: 96.12 kB / 1.212 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.3623, allocations: 15.75 kB / 1.212 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.92e-05/0.3623, allocations: 29.7 kB / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3625, allocations: 322.8 kB / 1.212 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.251e-05/0.3626, allocations: 27.98 kB / 1.212 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.256e-05/0.3627, allocations: 51.8 kB / 1.213 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.3628, allocations: 83.34 kB / 1.213 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.3629, allocations: 0 / 1.213 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002428/0.3631, allocations: 113.5 kB / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.3631, allocations: 9.656 kB / 1.213 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3631, allocations: 8.062 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.3632, allocations: 0 / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.275e-05/0.3632, allocations: 16.05 kB / 1.213 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.3633, allocations: 7.938 kB / 1.213 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.098e-05/0.3633, allocations: 11.98 kB / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.3634, allocations: 0 / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 (win.curSeed,$PRE.win.curSeed,occ.y,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.113e-05/0.3635, allocations: 124.5 kB / 1.213 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.622e-05/0.3635, allocations: 11.84 kB / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.704e-05/0.3635, allocations: 12.38 kB / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3635, allocations: 3.984 kB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3635, allocations: 0 / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3635, allocations: 0 / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004253/0.364, allocations: 378.7 kB / 1.213 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.364, allocations: 4 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.583e-05/0.364, allocations: 0 / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.364, allocations: 4 kB / 1.213 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.3641, allocations: 4 kB / 1.213 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.3641, allocations: 11.92 kB / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3641, allocations: 3.938 kB / 1.213 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/0.3643, allocations: 211.5 kB / 1.213 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 9.856e-05/0.3645, allocations: 81.02 kB / 1.214 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.3645, allocations: 0 / 1.214 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.735e-05/0.3646, allocations: 11.98 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.503e-05/0.3646, allocations: 11.94 kB / 1.214 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.3646, allocations: 3.984 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.109e-05/0.3647, allocations: 99.42 kB / 1.214 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3647, allocations: 0 / 1.214 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002962/0.365, allocations: 36 kB / 1.214 GB, free: 3.16 MB / 0.9669 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 (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.0003424/0.3654, allocations: 167.8 kB / 1.214 GB, free: 3 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002362/0.3656, allocations: 67.89 kB / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3656, allocations: 0 / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.962e-05/0.3657, allocations: 35.92 kB / 1.214 GB, free: 2.898 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.366, allocations: 9.875 kB / 1.214 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003892/0.3664, allocations: 184.4 kB / 1.214 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002334/0.3666, allocations: 0.6924 MB / 1.215 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.533e-05/0.3667, allocations: 4 kB / 1.215 GB, free: 1.957 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.239e-05/0.3667, allocations: 15.44 kB / 1.215 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.3667, allocations: 0 / 1.215 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of Templates: time 0.004258/0.371, allocations: 1.495 MB / 1.216 GB, free: 460 kB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TIn,win.occ,win.p,win.on Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TIn,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0