Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",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.008302/0.008301, allocations: 102.1 kB / 15.73 MB, free: 6.492 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.001462/0.001462, allocations: 191.7 kB / 16.67 MB, free: 6.379 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 / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.855/2.855, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 59.91 kB / 1.054 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2957, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.002579/0.2983, allocations: 1.495 MB / 1.209 GB, free: 8.676 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.2996, allocations: 0.7288 MB / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.627e-05/0.2996, allocations: 0 / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.424e-05/0.2997, allocations: 7.875 kB / 1.209 GB, free: 7.934 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.311e-05/0.2997, allocations: 15.84 kB / 1.209 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005429/0.3003, allocations: 127.6 kB / 1.21 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.3004, allocations: 75.77 kB / 1.21 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.822e-05/0.3005, allocations: 11.95 kB / 1.21 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.343e-05/0.3006, allocations: 39.89 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.255e-05/0.3007, allocations: 35.84 kB / 1.21 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.693e-05/0.3007, allocations: 7.938 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.3009, allocations: 99.84 kB / 1.21 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.77e-05/0.3009, allocations: 19.91 kB / 1.21 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.254e-05/0.301, allocations: 31.86 kB / 1.21 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002401/0.3012, allocations: 143.9 kB / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3012, allocations: 0 / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.567e-06/0.3012, allocations: 3.984 kB / 1.21 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.3012, allocations: 0 / 1.21 GB, free: 7.332 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.0006553/0.3019, allocations: 413.7 kB / 1.21 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.3019, allocations: 12.56 kB / 1.21 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.034e-05/0.302, allocations: 34.75 kB / 1.21 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.719e-05/0.302, allocations: 16.83 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.3022, allocations: 176.2 kB / 1.211 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.3022, allocations: 4.375 kB / 1.211 GB, free: 6.59 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.3022, allocations: 4.375 kB / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.3024, allocations: 77.7 kB / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.3024, allocations: 0 / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.3024, allocations: 4 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3024, allocations: 0 / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.3026, allocations: 39.91 kB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005562/0.3031, allocations: 320.7 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.3033, allocations: 46.55 kB / 1.211 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.883e-05/0.3033, allocations: 32.97 kB / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.3034, allocations: 0 / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001905/0.3036, allocations: 83.31 kB / 1.211 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.3036, allocations: 0 / 1.211 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003685/0.304, allocations: 137.7 kB / 1.211 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.304, allocations: 55.41 kB / 1.211 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.068e-05/0.3041, allocations: 125.7 kB / 1.212 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.3041, allocations: 33.7 kB / 1.212 GB, free: 5.535 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.462e-05/0.3042, allocations: 84.14 kB / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.3042, allocations: 23.73 kB / 1.212 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.712e-05/0.3042, allocations: 21.72 kB / 1.212 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.726e-05/0.3044, allocations: 326.8 kB / 1.212 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.778e-05/0.3044, allocations: 23.98 kB / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.705e-05/0.3045, allocations: 54.48 kB / 1.212 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.3047, allocations: 74.56 kB / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3047, allocations: 0 / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002211/0.3049, allocations: 117.5 kB / 1.212 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.3049, allocations: 4 kB / 1.212 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.305, allocations: 8 kB / 1.212 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.305, allocations: 7.938 kB / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.49e-05/0.3051, allocations: 15.92 kB / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.3051, allocations: 0 / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.663e-05/0.3052, allocations: 7.984 kB / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.3052, allocations: 4 kB / 1.212 GB, free: 4.734 MB / 0.9669 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 8.657e-05/0.3053, allocations: 121.8 kB / 1.212 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.945e-05/0.3053, allocations: 7.906 kB / 1.212 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.579e-05/0.3053, allocations: 8.375 kB / 1.212 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3053, allocations: 0 / 1.212 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.3054, allocations: 7.984 kB / 1.212 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3054, allocations: 0 / 1.212 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004204/0.3058, allocations: 382.4 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.3058, allocations: 0 / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.103e-05/0.3058, allocations: 4 kB / 1.213 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.3059, allocations: 0 / 1.213 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.3059, allocations: 0 / 1.213 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.3059, allocations: 7.938 kB / 1.213 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3059, allocations: 3.984 kB / 1.213 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002601/0.3061, allocations: 215.3 kB / 1.213 GB, free: 3.906 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.554e-05/0.3062, allocations: 81.02 kB / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/0.3062, allocations: 4 kB / 1.213 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.94e-05/0.3063, allocations: 7.922 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.3064, allocations: 8 kB / 1.213 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.3064, allocations: 11.98 kB / 1.213 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.576e-05/0.3064, allocations: 87.94 kB / 1.213 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3064, allocations: 0 / 1.213 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000303/0.3067, allocations: 39.98 kB / 1.213 GB, free: 3.652 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,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.0007381/0.3075, allocations: 0.8244 MB / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002152/0.3077, allocations: 63.97 kB / 1.214 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3077, allocations: 0 / 1.214 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.618e-05/0.3078, allocations: 48.02 kB / 1.214 GB, free: 2.711 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002557/0.3081, allocations: 7.938 kB / 1.214 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001665/0.3098, allocations: 1.488 MB / 1.216 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.3101, allocations: 0.6924 MB / 1.216 GB, free: 408 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.072e-05/0.3101, allocations: 4 kB / 1.216 GB, free: 404 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.84e-05/0.3102, allocations: 23.42 kB / 1.216 GB, free: 380 kB / 0.9669 GB Notification: Performance of SimCode: time 5.11e-07/0.3102, allocations: 0 / 1.216 GB, free: 380 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01936/0.3295, allocations: 2.673 MB / 1.219 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.572/7.902, allocations: 21.31 kB / 1.219 GB, free: 13.83 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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