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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009792/0.0009793, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006302/0.006302, allocations: 171.3 kB / 16.27 MB, free: 6.32 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.265/1.265, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.138/2.138, allocations: 390.9 MB / 0.6664 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002936/0.0002936, allocations: 8 kB / 0.8161 GB, free: 13.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5374/0.5377, allocations: 142.4 MB / 0.9552 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.001239/0.539, allocations: 1.214 MB / 0.9564 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008545/0.5398, allocations: 0.7179 MB / 0.9571 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.674e-05/0.5399, allocations: 3.938 kB / 0.9571 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.372e-05/0.5399, allocations: 0 / 0.9571 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.692e-05/0.5399, allocations: 14.62 kB / 0.9571 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003559/0.5403, allocations: 100.1 kB / 0.9572 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.581e-05/0.5404, allocations: 76.75 kB / 0.9572 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.775e-05/0.5405, allocations: 15.19 kB / 0.9573 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.44e-05/0.5405, allocations: 33.12 kB / 0.9573 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.286e-05/0.5406, allocations: 35.69 kB / 0.9573 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.351e-05/0.5406, allocations: 2.562 kB / 0.9573 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.5408, allocations: 89.44 kB / 0.9574 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.771e-05/0.5408, allocations: 10.23 kB / 0.9574 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.816e-05/0.5408, allocations: 58.92 kB / 0.9575 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001566/0.541, allocations: 139.1 kB / 0.9576 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.541, allocations: 4 kB / 0.9576 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.173e-06/0.541, allocations: 0 / 0.9576 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.206e-06/0.541, allocations: 2.062 kB / 0.9576 GB, free: 5.836 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.000388/0.5414, allocations: 408 kB / 0.958 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.5415, allocations: 9.094 kB / 0.958 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.662e-05/0.5415, allocations: 36.84 kB / 0.958 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.513e-05/0.5415, allocations: 7.969 kB / 0.9581 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.905e-05/0.5416, allocations: 179.9 kB / 0.9582 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.5416, allocations: 3.406 kB / 0.9582 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.67e-05/0.5416, allocations: 7.375 kB / 0.9582 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.5418, allocations: 70.81 kB / 0.9583 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-06/0.5418, allocations: 1.719 kB / 0.9583 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.5418, allocations: 3.984 kB / 0.9583 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.5418, allocations: 5.5 kB / 0.9583 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001204/0.5419, allocations: 45.56 kB / 0.9584 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004367/0.5424, allocations: 321.7 kB / 0.9587 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.5425, allocations: 59.73 kB / 0.9587 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.942e-05/0.5426, allocations: 33.5 kB / 0.9588 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.5426, allocations: 1.75 kB / 0.9588 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001391/0.5427, allocations: 84.84 kB / 0.9588 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.5427, allocations: 0 / 0.9588 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003184/0.5431, allocations: 144.2 kB / 0.959 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.128e-05/0.5431, allocations: 60.84 kB / 0.959 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.53e-05/0.5432, allocations: 128.8 kB / 0.9592 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.044e-05/0.5432, allocations: 31.08 kB / 0.9592 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.571e-05/0.5432, allocations: 86.89 kB / 0.9593 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.343e-05/0.5432, allocations: 14.56 kB / 0.9593 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.447e-05/0.5433, allocations: 21.83 kB / 0.9593 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.319e-05/0.5433, allocations: 324.1 kB / 0.9596 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.19e-05/0.5434, allocations: 29.86 kB / 0.9596 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.445e-05/0.5435, allocations: 51.19 kB / 0.9597 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001373/0.5436, allocations: 83.91 kB / 0.9598 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.5436, allocations: 0 / 0.9598 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002016/0.5438, allocations: 119.1 kB / 0.9599 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.5438, allocations: 7.062 kB / 0.9599 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.5438, allocations: 0 / 0.9599 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.737e-06/0.5438, allocations: 1.375 kB / 0.9599 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.781e-05/0.5439, allocations: 17.61 kB / 0.9599 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.5439, allocations: 1.375 kB / 0.9599 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.076e-05/0.544, allocations: 13.5 kB / 0.9599 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.544, allocations: 6.688 kB / 0.9599 GB, free: 3.652 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.29e-05/0.5441, allocations: 119.3 kB / 0.96 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.363e-05/0.5441, allocations: 10.64 kB / 0.9601 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.832e-05/0.5441, allocations: 9.75 kB / 0.9601 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.5441, allocations: 1.375 kB / 0.9601 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.5441, allocations: 0 / 0.9601 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.5441, allocations: 5.375 kB / 0.9601 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003191/0.5445, allocations: 392.2 kB / 0.9604 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.5445, allocations: 0 / 0.9604 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.465e-05/0.5445, allocations: 8.062 kB / 0.9604 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.5445, allocations: 5.859 kB / 0.9605 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.5445, allocations: 0 / 0.9605 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.5445, allocations: 5.75 kB / 0.9605 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5445, allocations: 4 kB / 0.9605 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002196/0.5448, allocations: 210.3 kB / 0.9607 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.743e-05/0.5448, allocations: 92 kB / 0.9608 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.5448, allocations: 4 kB / 0.9608 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.367e-05/0.5449, allocations: 13.25 kB / 0.9608 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.814e-05/0.5449, allocations: 10.05 kB / 0.9608 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.545, allocations: 1.344 kB / 0.9608 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.932e-05/0.545, allocations: 92.45 kB / 0.9609 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.545, allocations: 1.031 kB / 0.9609 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002542/0.5452, allocations: 35.72 kB / 0.9609 GB, free: 2.738 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.0005256/0.5458, allocations: 0.8062 MB / 0.9617 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002005/0.546, allocations: 87.44 kB / 0.9618 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.546, allocations: 0 / 0.9618 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.693e-05/0.5461, allocations: 35.58 kB / 0.9618 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.5463, allocations: 18.06 kB / 0.9618 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.5474, allocations: 1.52 MB / 0.9633 GB, free: 0.5508 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001289/0.5476, allocations: 0.688 MB / 0.964 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.212e-05/0.5476, allocations: 7.984 kB / 0.964 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.737e-05/0.5476, allocations: 18.44 kB / 0.964 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.5476, allocations: 0 / 0.964 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01099/0.5586, allocations: 2.318 MB / 0.9663 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000219/0.5589, allocations: 259.9 kB / 0.9665 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.521/2.08, allocations: 0 / 0.9665 GB, free: 14.46 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