Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01047/0.01047, allocations: 170 kB / 16.26 MB, free: 6.613 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.436/1.436, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.834/2.834, allocations: 443.3 MB / 0.7175 GB, free: 1.461 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003997/0.0003999, allocations: 8.562 kB / 0.8796 GB, free: 41.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.353, allocations: 155.2 MB / 1.031 GB, free: 4.414 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.001898/0.355, allocations: 1.222 MB / 1.032 GB, free: 3.184 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001231/0.3562, allocations: 0.7289 MB / 1.033 GB, free: 2.449 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.281e-05/0.3562, allocations: 0 / 1.033 GB, free: 2.449 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.064e-05/0.3563, allocations: 3.938 kB / 1.033 GB, free: 2.445 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.876e-05/0.3563, allocations: 7.922 kB / 1.033 GB, free: 2.438 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004618/0.3568, allocations: 107.7 kB / 1.033 GB, free: 2.332 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.3569, allocations: 71.78 kB / 1.033 GB, free: 2.262 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.3571, allocations: 11.97 kB / 1.033 GB, free: 2.25 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.29e-05/0.3571, allocations: 31.92 kB / 1.033 GB, free: 2.219 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.776e-05/0.3572, allocations: 39.77 kB / 1.033 GB, free: 2.18 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.622e-05/0.3572, allocations: 4 kB / 1.033 GB, free: 2.176 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000176/0.3574, allocations: 87.91 kB / 1.033 GB, free: 2.09 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.383e-05/0.3575, allocations: 15.98 kB / 1.033 GB, free: 2.074 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.814e-05/0.3575, allocations: 57.5 kB / 1.033 GB, free: 2.012 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002073/0.3577, allocations: 135.8 kB / 1.034 GB, free: 1.879 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.3578, allocations: 0 / 1.034 GB, free: 1.879 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3578, allocations: 0 / 1.034 GB, free: 1.879 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.658e-06/0.3578, allocations: 0 / 1.034 GB, free: 1.879 MB / 0.7794 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.0005715/0.3583, allocations: 402.3 kB / 1.034 GB, free: 1.434 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.3584, allocations: 16.03 kB / 1.034 GB, free: 1.418 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.677e-05/0.3584, allocations: 8.844 kB / 1.034 GB, free: 1.41 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.3585, allocations: 180.2 kB / 1.034 GB, free: 1.195 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.922e-05/0.3586, allocations: 8.359 kB / 1.034 GB, free: 1.188 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.3586, allocations: 4.375 kB / 1.034 GB, free: 1.184 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.3588, allocations: 69.97 kB / 1.034 GB, free: 1.109 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.3588, allocations: 0 / 1.034 GB, free: 1.109 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.3588, allocations: 8 kB / 1.034 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.3588, allocations: 0 / 1.034 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001325/0.359, allocations: 47.91 kB / 1.034 GB, free: 1.055 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006993/0.3597, allocations: 324.7 kB / 1.035 GB, free: 0.6875 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.3598, allocations: 46.56 kB / 1.035 GB, free: 0.6328 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.62e-05/0.3599, allocations: 32.97 kB / 1.035 GB, free: 0.5977 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.3599, allocations: 4 kB / 1.035 GB, free: 0.5938 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001881/0.3601, allocations: 91.36 kB / 1.035 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.3602, allocations: 0 / 1.035 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003976/0.3606, allocations: 149.6 kB / 1.035 GB, free: 348 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.3606, allocations: 51.41 kB / 1.035 GB, free: 284 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.491e-05/0.3607, allocations: 129.7 kB / 1.035 GB, free: 144 kB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.3607, allocations: 29.7 kB / 1.035 GB, free: 108 kB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.158e-05/0.3608, allocations: 92.12 kB / 1.035 GB, free: 12 kB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.325e-05/0.3608, allocations: 15.83 kB / 1.035 GB, free: 15.99 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.48e-05/0.3609, allocations: 21.7 kB / 1.035 GB, free: 15.96 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.361, allocations: 318.8 kB / 1.036 GB, free: 15.64 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.538e-05/0.3611, allocations: 27.98 kB / 1.036 GB, free: 15.62 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001491/0.3612, allocations: 58.48 kB / 1.036 GB, free: 15.55 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.3615, allocations: 82.45 kB / 1.036 GB, free: 15.46 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3616, allocations: 4 kB / 1.036 GB, free: 15.46 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004075/0.362, allocations: 117.5 kB / 1.036 GB, free: 15.34 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.362, allocations: 4 kB / 1.036 GB, free: 15.34 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.362, allocations: 7.984 kB / 1.036 GB, free: 15.33 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.362, allocations: 0 / 1.036 GB, free: 15.33 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.899e-05/0.3621, allocations: 15.94 kB / 1.036 GB, free: 15.31 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.3622, allocations: 8.062 kB / 1.036 GB, free: 15.3 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.952e-05/0.3622, allocations: 7.984 kB / 1.036 GB, free: 15.3 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/0.3623, allocations: 8 kB / 1.036 GB, free: 15.29 MB / 0.795 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 9.778e-05/0.3624, allocations: 123.2 kB / 1.036 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.574e-05/0.3624, allocations: 7.906 kB / 1.036 GB, free: 15.15 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.003e-05/0.3624, allocations: 12.36 kB / 1.036 GB, free: 15.14 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3624, allocations: 0 / 1.036 GB, free: 15.14 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.3624, allocations: 8 kB / 1.036 GB, free: 15.13 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3625, allocations: 0 / 1.036 GB, free: 15.13 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004761/0.3629, allocations: 386.3 kB / 1.036 GB, free: 14.7 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.363, allocations: 0 / 1.036 GB, free: 14.7 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.585e-05/0.363, allocations: 7.938 kB / 1.036 GB, free: 14.69 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.593e-06/0.363, allocations: 4 kB / 1.036 GB, free: 14.69 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.3631, allocations: 4 kB / 1.036 GB, free: 14.68 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.3631, allocations: 3.984 kB / 1.036 GB, free: 14.68 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3631, allocations: 3.938 kB / 1.036 GB, free: 14.68 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002874/0.3634, allocations: 215.4 kB / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.572e-05/0.3634, allocations: 81.02 kB / 1.037 GB, free: 14.35 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/0.3634, allocations: 8 kB / 1.037 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.008e-05/0.3635, allocations: 7.984 kB / 1.037 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.436e-05/0.3636, allocations: 7.938 kB / 1.037 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.3636, allocations: 7.984 kB / 1.037 GB, free: 14.32 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.025e-05/0.3637, allocations: 91.27 kB / 1.037 GB, free: 14.23 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3637, allocations: 0 / 1.037 GB, free: 14.23 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003031/0.364, allocations: 36 kB / 1.037 GB, free: 14.2 MB / 0.795 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.000348/0.3643, allocations: 163.7 kB / 1.037 GB, free: 14.04 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002339/0.3646, allocations: 79.89 kB / 1.037 GB, free: 13.96 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3646, allocations: 0 / 1.037 GB, free: 13.96 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.3647, allocations: 44.09 kB / 1.037 GB, free: 13.92 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.365, allocations: 11.94 kB / 1.037 GB, free: 13.91 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004944/0.3655, allocations: 203.6 kB / 1.037 GB, free: 13.68 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.3658, allocations: 0.6926 MB / 1.038 GB, free: 12.96 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.022e-05/0.3659, allocations: 11.97 kB / 1.038 GB, free: 12.95 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.759e-05/0.3659, allocations: 11.44 kB / 1.038 GB, free: 12.94 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.3659, allocations: 0 / 1.038 GB, free: 12.94 MB / 0.795 GB Notification: Performance of Templates: time 0.003987/0.3699, allocations: 1.36 MB / 1.039 GB, free: 11.58 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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