Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.Zhang2012WindowsAll,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001542/0.001542, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.528/1.528, allocations: 223.3 MB / 240 MB, free: 5.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.075/3.075, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005768/0.0005769, allocations: 9.688 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4411/0.4417, allocations: 159.6 MB / 1.058 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002138/0.4439, allocations: 1.21 MB / 1.059 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001406/0.4453, allocations: 0.6781 MB / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.365e-05/0.4454, allocations: 4 kB / 1.06 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.543e-05/0.4455, allocations: 3.938 kB / 1.06 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.187e-05/0.4455, allocations: 7.922 kB / 1.06 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006472/0.4462, allocations: 95.77 kB / 1.06 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000136/0.4464, allocations: 71.77 kB / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.727e-05/0.4465, allocations: 7.984 kB / 1.06 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.4466, allocations: 31.92 kB / 1.06 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.085e-05/0.4467, allocations: 35.83 kB / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.973e-05/0.4467, allocations: 4 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002592/0.447, allocations: 79.91 kB / 1.06 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.412e-05/0.447, allocations: 15.92 kB / 1.06 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.18e-05/0.4471, allocations: 37.7 kB / 1.06 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000239/0.4473, allocations: 104 kB / 1.06 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.4473, allocations: 0 / 1.06 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.196e-06/0.4474, allocations: 0 / 1.06 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.792e-06/0.4474, allocations: 0 / 1.06 GB, free: 2.965 MB / 0.8106 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.0008174/0.4482, allocations: 404.8 kB / 1.061 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.4482, allocations: 12.03 kB / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.45e-05/0.4483, allocations: 7.906 kB / 1.061 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001704/0.4485, allocations: 178.8 kB / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.901e-05/0.4485, allocations: 11.95 kB / 1.061 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.4486, allocations: 7.938 kB / 1.061 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002279/0.4488, allocations: 69.66 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.699e-06/0.4488, allocations: 0 / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.4488, allocations: 3.984 kB / 1.061 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.4489, allocations: 4 kB / 1.061 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001469/0.449, allocations: 47.91 kB / 1.061 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000747/0.4498, allocations: 316.8 kB / 1.061 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001582/0.4499, allocations: 54.56 kB / 1.061 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.408e-05/0.45, allocations: 32.97 kB / 1.061 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.4501, allocations: 3.984 kB / 1.061 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002208/0.4503, allocations: 79.33 kB / 1.062 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.994e-06/0.4503, allocations: 0 / 1.062 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004407/0.4507, allocations: 149.5 kB / 1.062 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.749e-05/0.4508, allocations: 55.41 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.4509, allocations: 117.8 kB / 1.062 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.4509, allocations: 29.7 kB / 1.062 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.162e-05/0.451, allocations: 100.3 kB / 1.062 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.779e-05/0.4511, allocations: 15.84 kB / 1.062 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.562e-06/0.4511, allocations: 0 / 1.062 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.4512, allocations: 322.8 kB / 1.062 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.304e-05/0.4513, allocations: 31.98 kB / 1.062 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.4514, allocations: 62.42 kB / 1.062 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.498e-05/0.4515, allocations: 28.31 kB / 1.062 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.4515, allocations: 0 / 1.062 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002475/0.4518, allocations: 125.5 kB / 1.063 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.4518, allocations: 4 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.4518, allocations: 0 / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.4518, allocations: 4 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.452, allocations: 11.98 kB / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.452, allocations: 0 / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.394e-05/0.4521, allocations: 15.89 kB / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.608e-05/0.4521, allocations: 4 kB / 1.063 GB, free: 476 kB / 0.8106 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,$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 0.0001137/0.4522, allocations: 129.8 kB / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.003e-05/0.4522, allocations: 7.906 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.818e-05/0.4523, allocations: 4.375 kB / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.4523, allocations: 0 / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.4523, allocations: 4 kB / 1.063 GB, free: 320 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.4523, allocations: 3.984 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004899/0.4528, allocations: 390.4 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.4528, allocations: 0 / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.254e-05/0.4529, allocations: 11.92 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.4529, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.4529, allocations: 7.938 kB / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.4529, allocations: 0 / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4529, allocations: 0 / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003137/0.4532, allocations: 223.4 kB / 1.063 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.594e-05/0.4533, allocations: 77.11 kB / 1.063 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.4533, allocations: 0 / 1.063 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.647e-05/0.4534, allocations: 7.984 kB / 1.063 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.546e-05/0.4535, allocations: 4 kB / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.4535, allocations: 11.98 kB / 1.063 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.653e-05/0.4536, allocations: 95.22 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4536, allocations: 0 / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003262/0.4539, allocations: 43.89 kB / 1.064 GB, free: 15.36 MB / 0.8262 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 (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.0004302/0.4543, allocations: 160.8 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002644/0.4546, allocations: 83.94 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4546, allocations: 0 / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.4547, allocations: 35.92 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.455, allocations: 13.44 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004557/0.4555, allocations: 201.9 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.4559, allocations: 0.6887 MB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.778e-05/0.4559, allocations: 4.188 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.106e-05/0.4559, allocations: 19.42 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.456, allocations: 0 / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of Templates: time 0.005512/0.4615, allocations: 1.334 MB / 1.066 GB, free: 12.79 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0