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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01028/0.01028, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.002215/0.002215, allocations: 186.3 kB / 16.67 MB, free: 5.977 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.515/1.515, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.8/2.8, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 60.12 kB / 1.054 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3313, allocations: 157.4 MB / 1.208 GB, free: 9.641 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002712/0.334, allocations: 1.497 MB / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001378/0.3354, allocations: 0.7366 MB / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.376e-05/0.3355, allocations: 0 / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.209e-05/0.3355, allocations: 3.938 kB / 1.21 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.194e-05/0.3356, allocations: 11.88 kB / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006976/0.3363, allocations: 123.5 kB / 1.21 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00015/0.3365, allocations: 75.77 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.3366, allocations: 19.94 kB / 1.21 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.3367, allocations: 39.89 kB / 1.21 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.907e-05/0.3368, allocations: 39.84 kB / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.3368, allocations: 4 kB / 1.21 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002072/0.3371, allocations: 95.84 kB / 1.21 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.819e-05/0.3371, allocations: 23.91 kB / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.503e-05/0.3371, allocations: 27.86 kB / 1.21 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000251/0.3374, allocations: 143.6 kB / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3374, allocations: 0 / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3374, allocations: 0 / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.3374, allocations: 4 kB / 1.21 GB, free: 6.785 MB / 0.9669 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.000643/0.3381, allocations: 413 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.3381, allocations: 8.031 kB / 1.211 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.486e-05/0.3382, allocations: 12.78 kB / 1.211 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.3383, allocations: 176.2 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/0.3384, allocations: 12.36 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.182e-05/0.3384, allocations: 8.359 kB / 1.211 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001814/0.3386, allocations: 69.97 kB / 1.211 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.3386, allocations: 4 kB / 1.211 GB, free: 6 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.3386, allocations: 7.938 kB / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.3386, allocations: 0 / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.3388, allocations: 35.97 kB / 1.211 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006568/0.3394, allocations: 316.6 kB / 1.211 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001313/0.3396, allocations: 50.56 kB / 1.212 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.304e-05/0.3397, allocations: 32.97 kB / 1.212 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.3397, allocations: 0 / 1.212 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002079/0.3399, allocations: 71.38 kB / 1.212 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.713e-06/0.3399, allocations: 0 / 1.212 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004015/0.3403, allocations: 149.9 kB / 1.212 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.3404, allocations: 55.41 kB / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.3405, allocations: 117.8 kB / 1.212 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.3405, allocations: 33.7 kB / 1.212 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.56e-05/0.3405, allocations: 88.12 kB / 1.212 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/0.3406, allocations: 19.75 kB / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.645e-05/0.3406, allocations: 25.7 kB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3407, allocations: 326.8 kB / 1.212 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.275e-05/0.3408, allocations: 27.97 kB / 1.212 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.058e-05/0.3409, allocations: 46.56 kB / 1.212 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.3411, allocations: 74.55 kB / 1.213 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3411, allocations: 8 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002381/0.3414, allocations: 113.5 kB / 1.213 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3414, allocations: 8 kB / 1.213 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3414, allocations: 0 / 1.213 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.3414, allocations: 0 / 1.213 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.3415, allocations: 19.86 kB / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.3415, allocations: 4 kB / 1.213 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.59e-05/0.3416, allocations: 4 kB / 1.213 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.3416, allocations: 8.062 kB / 1.213 GB, free: 4.238 MB / 0.9669 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.0001031/0.3417, allocations: 121.8 kB / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.977e-05/0.3418, allocations: 11.89 kB / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.65e-05/0.3418, allocations: 4.375 kB / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.3418, allocations: 0 / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3418, allocations: 0 / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3418, allocations: 0 / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004738/0.3423, allocations: 386.4 kB / 1.213 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.3423, allocations: 11.94 kB / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.735e-05/0.3424, allocations: 0 / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3424, allocations: 4 kB / 1.213 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.3424, allocations: 3.984 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3424, allocations: 0 / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3424, allocations: 3.938 kB / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002859/0.3427, allocations: 219.3 kB / 1.213 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.847e-05/0.3427, allocations: 85 kB / 1.214 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.3428, allocations: 0 / 1.214 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-05/0.3429, allocations: 4 kB / 1.214 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.617e-05/0.3429, allocations: 11.92 kB / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.3429, allocations: 3.984 kB / 1.214 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.973e-05/0.343, allocations: 99.27 kB / 1.214 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.343, allocations: 0 / 1.214 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003137/0.3433, allocations: 36 kB / 1.214 GB, free: 3.148 MB / 0.9669 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.0003257/0.3436, allocations: 158.8 kB / 1.214 GB, free: 3 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002345/0.3439, allocations: 76.11 kB / 1.214 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3439, allocations: 0 / 1.214 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.344, allocations: 40.05 kB / 1.214 GB, free: 2.887 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.3443, allocations: 14.05 kB / 1.214 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004103/0.3447, allocations: 192.2 kB / 1.214 GB, free: 2.656 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.345, allocations: 0.6885 MB / 1.215 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.846e-05/0.345, allocations: 4 kB / 1.215 GB, free: 1.938 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.143e-05/0.345, allocations: 19.42 kB / 1.215 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.3451, allocations: 0 / 1.215 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of Templates: time 0.00412/0.3492, allocations: 1.476 MB / 1.216 GB, free: 460 kB / 0.9669 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=480 -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