Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth,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.Zhang2012WindowsSouth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,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.Zhang2012WindowsSouth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 91.53 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.009655/0.009655, allocations: 174.4 kB / 16.27 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.399/1.399, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.825/2.825, allocations: 462.6 MB / 0.7364 GB, free: 248 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004368/0.0004369, allocations: 8.906 kB / 0.9028 GB, free: 36.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.329, allocations: 159.6 MB / 1.059 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.001595/0.3306, allocations: 1.225 MB / 1.06 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001185/0.3318, allocations: 0.7206 MB / 1.061 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.116e-05/0.3319, allocations: 0 / 1.061 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.01e-05/0.3319, allocations: 0 / 1.061 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.017e-05/0.332, allocations: 19.84 kB / 1.061 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004807/0.3325, allocations: 107.7 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.531e-05/0.3326, allocations: 67.84 kB / 1.061 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.784e-05/0.3327, allocations: 4 kB / 1.061 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.025e-05/0.3327, allocations: 35.89 kB / 1.061 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.642e-05/0.3328, allocations: 35.84 kB / 1.061 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.435e-05/0.3328, allocations: 4 kB / 1.061 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001787/0.333, allocations: 95.84 kB / 1.061 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.386e-05/0.3331, allocations: 11.92 kB / 1.061 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.33e-05/0.3331, allocations: 57.55 kB / 1.061 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002007/0.3333, allocations: 135.9 kB / 1.061 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3333, allocations: 0 / 1.061 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3333, allocations: 0 / 1.061 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.3333, allocations: 0 / 1.061 GB, free: 2.914 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.000583/0.3339, allocations: 405.1 kB / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.334, allocations: 19.91 kB / 1.062 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.629e-05/0.334, allocations: 4.844 kB / 1.062 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.3341, allocations: 172.2 kB / 1.062 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.3342, allocations: 8.375 kB / 1.062 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.689e-05/0.3342, allocations: 4.375 kB / 1.062 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.3344, allocations: 69.97 kB / 1.062 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.3344, allocations: 3.984 kB / 1.062 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.3344, allocations: 8 kB / 1.062 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.3344, allocations: 4 kB / 1.062 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.3346, allocations: 35.98 kB / 1.062 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005943/0.3352, allocations: 332.6 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.3353, allocations: 50.56 kB / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.646e-05/0.3354, allocations: 32.97 kB / 1.062 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.3354, allocations: 3.938 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001832/0.3356, allocations: 91.31 kB / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.472e-06/0.3356, allocations: 0 / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003915/0.336, allocations: 137.9 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.3361, allocations: 63.39 kB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.719e-05/0.3362, allocations: 121.8 kB / 1.063 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.3362, allocations: 29.7 kB / 1.063 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.562e-05/0.3363, allocations: 96.19 kB / 1.063 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.032e-05/0.3363, allocations: 15.75 kB / 1.063 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.199e-05/0.3363, allocations: 17.72 kB / 1.063 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3364, allocations: 322.8 kB / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.695e-05/0.3365, allocations: 31.98 kB / 1.063 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.3366, allocations: 54.48 kB / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.3368, allocations: 82.62 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3368, allocations: 0 / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002453/0.3371, allocations: 117.5 kB / 1.063 GB, free: 388 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.3371, allocations: 4 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3371, allocations: 4 kB / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.3371, allocations: 0 / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.586e-05/0.3372, allocations: 19.98 kB / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.445e-06/0.3372, allocations: 4 kB / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.863e-05/0.3373, allocations: 7.984 kB / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.3373, allocations: 4 kB / 1.063 GB, free: 344 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,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.0001034/0.3375, allocations: 126.4 kB / 1.064 GB, free: 212 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.646e-05/0.3375, allocations: 7.906 kB / 1.064 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.808e-05/0.3375, allocations: 4.375 kB / 1.064 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3375, allocations: 7.938 kB / 1.064 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3375, allocations: 0 / 1.064 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.3375, allocations: 7.984 kB / 1.064 GB, free: 184 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004756/0.338, allocations: 394.3 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.338, allocations: 3.984 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.036e-05/0.3381, allocations: 8 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3381, allocations: 0 / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.3381, allocations: 4 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3381, allocations: 0 / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.3381, allocations: 3.938 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002855/0.3384, allocations: 219.3 kB / 1.064 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.822e-05/0.3385, allocations: 85.02 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.3385, allocations: 4 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.985e-05/0.3386, allocations: 7.984 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.924e-05/0.3386, allocations: 3.938 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.3386, allocations: 11.98 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.05e-05/0.3387, allocations: 87.28 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3387, allocations: 0 / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003021/0.339, allocations: 39.98 kB / 1.064 GB, free: 15.23 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 (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.0003796/0.3394, allocations: 158.6 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002472/0.3397, allocations: 88.09 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3397, allocations: 8.062 kB / 1.065 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.3398, allocations: 35.98 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.3401, allocations: 8 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004391/0.3405, allocations: 209.1 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.3408, allocations: 0.6887 MB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.588e-05/0.3408, allocations: 4 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.1e-05/0.3409, allocations: 15.42 kB / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3409, allocations: 0 / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of Templates: time 0.004072/0.345, allocations: 1.361 MB / 1.067 GB, free: 12.62 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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