Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Zhang2012WindowsWest,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.Zhang2012WindowsWest") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,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.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 98.03 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.008435/0.008435, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.51/1.51, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.083/3.083, allocations: 483.2 MB / 0.7565 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.0003627/0.0003629, allocations: 9.406 kB / 0.9276 GB, free: 29.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.358, allocations: 164.5 MB / 1.088 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.001875/0.3599, allocations: 1.22 MB / 1.089 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001381/0.3613, allocations: 0.717 MB / 1.09 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.011e-05/0.3613, allocations: 0 / 1.09 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.72e-05/0.3613, allocations: 3.938 kB / 1.09 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.156e-05/0.3614, allocations: 7.922 kB / 1.09 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004824/0.3619, allocations: 107.7 kB / 1.09 GB, free: 8.25 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.362, allocations: 71.78 kB / 1.09 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.267e-05/0.3621, allocations: 15.92 kB / 1.09 GB, free: 8.164 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.222e-05/0.3622, allocations: 35.89 kB / 1.09 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.145e-05/0.3623, allocations: 35.84 kB / 1.09 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.71e-05/0.3623, allocations: 4 kB / 1.09 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001839/0.3625, allocations: 87.91 kB / 1.09 GB, free: 8.004 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.686e-05/0.3625, allocations: 19.86 kB / 1.091 GB, free: 7.984 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.934e-05/0.3626, allocations: 53.55 kB / 1.091 GB, free: 7.926 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.3629, allocations: 139.9 kB / 1.091 GB, free: 7.789 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3629, allocations: 0 / 1.091 GB, free: 7.789 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3629, allocations: 4 kB / 1.091 GB, free: 7.785 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.3629, allocations: 0 / 1.091 GB, free: 7.785 MB / 0.8419 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.000649/0.3635, allocations: 402.2 kB / 1.091 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.3636, allocations: 12.03 kB / 1.091 GB, free: 7.328 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.978e-05/0.3636, allocations: 8.844 kB / 1.091 GB, free: 7.32 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001682/0.3638, allocations: 176.2 kB / 1.091 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/0.3638, allocations: 4.375 kB / 1.091 GB, free: 7.105 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.222e-05/0.3639, allocations: 4.375 kB / 1.091 GB, free: 7.102 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.3641, allocations: 77.91 kB / 1.091 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3641, allocations: 0 / 1.091 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.3641, allocations: 11.98 kB / 1.091 GB, free: 7.008 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.3641, allocations: 0 / 1.091 GB, free: 7.008 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001473/0.3643, allocations: 35.98 kB / 1.091 GB, free: 6.973 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006319/0.3649, allocations: 324.8 kB / 1.092 GB, free: 6.605 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.3651, allocations: 54.5 kB / 1.092 GB, free: 6.543 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.3652, allocations: 36.97 kB / 1.092 GB, free: 6.504 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.3652, allocations: 7.938 kB / 1.092 GB, free: 6.496 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.3654, allocations: 75.38 kB / 1.092 GB, free: 6.41 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.3654, allocations: 0 / 1.092 GB, free: 6.41 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004483/0.3659, allocations: 149.5 kB / 1.092 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.3659, allocations: 63.39 kB / 1.092 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.3661, allocations: 117.8 kB / 1.092 GB, free: 6.059 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.3661, allocations: 29.7 kB / 1.092 GB, free: 6.023 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.337e-05/0.3662, allocations: 92.05 kB / 1.092 GB, free: 5.93 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.433e-05/0.3662, allocations: 19.83 kB / 1.092 GB, free: 5.91 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.231e-05/0.3662, allocations: 17.72 kB / 1.092 GB, free: 5.887 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001749/0.3664, allocations: 322.8 kB / 1.093 GB, free: 5.562 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.876e-05/0.3665, allocations: 27.98 kB / 1.093 GB, free: 5.535 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/0.3666, allocations: 54.55 kB / 1.093 GB, free: 5.473 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.3668, allocations: 78.5 kB / 1.093 GB, free: 5.387 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.3668, allocations: 0 / 1.093 GB, free: 5.387 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002769/0.3671, allocations: 125.5 kB / 1.093 GB, free: 5.258 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.3671, allocations: 7.938 kB / 1.093 GB, free: 5.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.3672, allocations: 4 kB / 1.093 GB, free: 5.246 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.3672, allocations: 0 / 1.093 GB, free: 5.246 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.3673, allocations: 11.98 kB / 1.093 GB, free: 5.234 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.3673, allocations: 4 kB / 1.093 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.707e-05/0.3674, allocations: 7.906 kB / 1.093 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.3674, allocations: 11.98 kB / 1.093 GB, free: 5.211 MB / 0.8419 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 0.0001474/0.3676, allocations: 125.8 kB / 1.093 GB, free: 5.078 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.666e-05/0.3676, allocations: 4 kB / 1.093 GB, free: 5.074 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.824e-05/0.3676, allocations: 12.36 kB / 1.093 GB, free: 5.059 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3676, allocations: 3.938 kB / 1.093 GB, free: 5.055 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3677, allocations: 4 kB / 1.093 GB, free: 5.051 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3677, allocations: 0 / 1.093 GB, free: 5.051 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000598/0.3683, allocations: 390.3 kB / 1.093 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3683, allocations: 0 / 1.093 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.428e-05/0.3683, allocations: 7.984 kB / 1.093 GB, free: 4.605 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.3683, allocations: 7.938 kB / 1.093 GB, free: 4.598 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.3684, allocations: 0 / 1.093 GB, free: 4.598 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3684, allocations: 0 / 1.093 GB, free: 4.598 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3684, allocations: 3.938 kB / 1.093 GB, free: 4.594 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003482/0.3687, allocations: 227.8 kB / 1.094 GB, free: 4.355 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.578e-05/0.3688, allocations: 77.11 kB / 1.094 GB, free: 4.262 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/0.3688, allocations: 4 kB / 1.094 GB, free: 4.258 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.942e-05/0.3689, allocations: 7.984 kB / 1.094 GB, free: 4.25 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.807e-05/0.369, allocations: 3.938 kB / 1.094 GB, free: 4.246 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.369, allocations: 8 kB / 1.094 GB, free: 4.238 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.142e-05/0.3691, allocations: 95.27 kB / 1.094 GB, free: 4.145 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3691, allocations: 0 / 1.094 GB, free: 4.145 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002986/0.3694, allocations: 39.98 kB / 1.094 GB, free: 4.105 MB / 0.8419 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.0003991/0.3698, allocations: 159.4 kB / 1.094 GB, free: 3.957 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002652/0.3701, allocations: 75.97 kB / 1.094 GB, free: 3.883 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3701, allocations: 0 / 1.094 GB, free: 3.883 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.3702, allocations: 43.91 kB / 1.094 GB, free: 3.84 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.3704, allocations: 10.25 kB / 1.094 GB, free: 3.832 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004156/0.3709, allocations: 209.2 kB / 1.094 GB, free: 3.594 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003601/0.3712, allocations: 0.6887 MB / 1.095 GB, free: 2.879 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.586e-05/0.3713, allocations: 4 kB / 1.095 GB, free: 2.875 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.013e-05/0.3713, allocations: 11.44 kB / 1.095 GB, free: 2.863 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.3713, allocations: 4 kB / 1.095 GB, free: 2.859 MB / 0.8419 GB Notification: Performance of Templates: time 0.004691/0.376, allocations: 1.363 MB / 1.096 GB, free: 1.5 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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