Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",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.001201/0.001201, allocations: 108 kB / 15.6 MB, free: 132 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.001232/0.001232, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.28/1.28, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.173/2.173, allocations: 390.3 MB / 0.6647 GB, free: 416 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001308, allocations: 67.91 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5058/0.5071, allocations: 140.4 MB / 0.9497 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.001988/0.5091, allocations: 1.492 MB / 0.9512 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008614/0.51, allocations: 0.7287 MB / 0.9519 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.428e-05/0.5101, allocations: 1.094 kB / 0.9519 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.554e-05/0.5101, allocations: 7.938 kB / 0.9519 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.072e-05/0.5101, allocations: 14.23 kB / 0.9519 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004137/0.5106, allocations: 122.2 kB / 0.952 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.999e-05/0.5107, allocations: 77.62 kB / 0.9521 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.76e-05/0.5107, allocations: 15.17 kB / 0.9521 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.636e-05/0.5108, allocations: 32.83 kB / 0.9521 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.224e-05/0.5109, allocations: 46.88 kB / 0.9522 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.661e-05/0.5109, allocations: 7.438 kB / 0.9522 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000149/0.511, allocations: 93.81 kB / 0.9523 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.953e-05/0.5111, allocations: 14.27 kB / 0.9523 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.629e-05/0.5111, allocations: 31.52 kB / 0.9523 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.5113, allocations: 140.2 kB / 0.9525 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.5113, allocations: 0 / 0.9525 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.342e-06/0.5113, allocations: 1.125 kB / 0.9525 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.138e-06/0.5113, allocations: 0 / 0.9525 GB, free: 7.02 MB / 0.7169 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.0004494/0.5118, allocations: 437.5 kB / 0.9529 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.5118, allocations: 9.25 kB / 0.9529 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.614e-05/0.5118, allocations: 36.94 kB / 0.9529 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.045e-05/0.5119, allocations: 7.766 kB / 0.9529 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.842e-05/0.5119, allocations: 175.8 kB / 0.9531 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.512, allocations: 3.625 kB / 0.9531 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.512, allocations: 3.5 kB / 0.9531 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001437/0.5121, allocations: 80.39 kB / 0.9532 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.5121, allocations: 0 / 0.9532 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.5122, allocations: 5.219 kB / 0.9532 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.5122, allocations: 0.6562 kB / 0.9532 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001119/0.5123, allocations: 36.5 kB / 0.9532 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004369/0.5127, allocations: 317.6 kB / 0.9535 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/0.5128, allocations: 52.88 kB / 0.9536 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.702e-05/0.5129, allocations: 31.81 kB / 0.9536 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.5129, allocations: 9.109 kB / 0.9536 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001307/0.5131, allocations: 74.27 kB / 0.9537 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.402e-06/0.5131, allocations: 0 / 0.9537 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003081/0.5134, allocations: 139.7 kB / 0.9538 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.418e-05/0.5134, allocations: 56.69 kB / 0.9539 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.64e-05/0.5135, allocations: 122.2 kB / 0.954 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.849e-06/0.5135, allocations: 25.7 kB / 0.954 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.548e-05/0.5135, allocations: 94.81 kB / 0.9541 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.453e-05/0.5135, allocations: 18.67 kB / 0.9541 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.88e-05/0.5136, allocations: 34.39 kB / 0.9542 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.408e-05/0.5136, allocations: 325 kB / 0.9545 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.04e-05/0.5137, allocations: 26.48 kB / 0.9545 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.279e-05/0.5138, allocations: 43.91 kB / 0.9545 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.5139, allocations: 74.33 kB / 0.9546 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5139, allocations: 4 kB / 0.9546 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001915/0.5141, allocations: 116.7 kB / 0.9547 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.5141, allocations: 6.844 kB / 0.9547 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.5141, allocations: 0.9688 kB / 0.9547 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.5142, allocations: 1.406 kB / 0.9547 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.985e-05/0.5142, allocations: 12.7 kB / 0.9547 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.5142, allocations: 1.312 kB / 0.9547 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.837e-05/0.5143, allocations: 12.03 kB / 0.9548 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.5143, allocations: 7 kB / 0.9548 GB, free: 4.816 MB / 0.7169 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 5.264e-05/0.5144, allocations: 126.1 kB / 0.9549 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.48e-05/0.5144, allocations: 6.688 kB / 0.9549 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.901e-05/0.5144, allocations: 11.28 kB / 0.9549 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.5144, allocations: 0 / 0.9549 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.5144, allocations: 1.5 kB / 0.9549 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.5144, allocations: 0 / 0.9549 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003077/0.5148, allocations: 382.5 kB / 0.9553 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.5148, allocations: 0 / 0.9553 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.587e-05/0.5148, allocations: 7.609 kB / 0.9553 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.5148, allocations: 5.406 kB / 0.9553 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.5148, allocations: 0 / 0.9553 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.5148, allocations: 5.344 kB / 0.9553 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.5148, allocations: 0 / 0.9553 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000203/0.515, allocations: 210.6 kB / 0.9555 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.613e-05/0.5151, allocations: 86.45 kB / 0.9556 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.688e-05/0.5151, allocations: 1.25 kB / 0.9556 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.976e-05/0.5152, allocations: 6.906 kB / 0.9556 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.825e-05/0.5152, allocations: 10.73 kB / 0.9556 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.5152, allocations: 1.438 kB / 0.9556 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.842e-05/0.5152, allocations: 92.95 kB / 0.9557 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5153, allocations: 0 / 0.9557 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002555/0.5155, allocations: 40.14 kB / 0.9557 GB, free: 3.914 MB / 0.7169 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.0005049/0.516, allocations: 0.812 MB / 0.9565 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001897/0.5162, allocations: 79.8 kB / 0.9566 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.5162, allocations: 0 / 0.9566 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.381e-05/0.5163, allocations: 33.73 kB / 0.9566 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.5165, allocations: 18.11 kB / 0.9566 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.5176, allocations: 1.482 MB / 0.9581 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.054e-05/0.5177, allocations: 0.6875 MB / 0.9587 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.986e-05/0.5177, allocations: 7.281 kB / 0.9588 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.423e-05/0.5178, allocations: 22.8 kB / 0.9588 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of SimCode: time 2.01e-07/0.5178, allocations: 0 / 0.9588 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.63/1.148, allocations: 2.594 MB / 0.9613 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.586/8.734, allocations: 14.61 kB / 0.9613 GB, free: 15.62 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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