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 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.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.001497/0.001497, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001766/0.001766, allocations: 192.9 kB / 16.25 MB, free: 6.637 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.426/1.426, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.903/2.903, allocations: 472.6 MB / 0.7448 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 62.11 kB / 0.9116 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3426, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002843/0.3455, allocations: 1.554 MB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001138/0.3466, allocations: 0.7284 MB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.576e-05/0.3467, allocations: 7.875 kB / 1.07 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.667e-05/0.3468, allocations: 3.984 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.54e-05/0.3468, allocations: 11.88 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006248/0.3474, allocations: 103.8 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001407/0.3476, allocations: 75.78 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.3477, allocations: 19.95 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.3479, allocations: 27.92 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.741e-05/0.348, allocations: 47.81 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.291e-05/0.348, allocations: 8 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002363/0.3482, allocations: 95.84 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.28e-05/0.3483, allocations: 19.92 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.188e-05/0.3484, allocations: 31.86 kB / 1.07 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002866/0.3487, allocations: 135.9 kB / 1.071 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3487, allocations: 4 kB / 1.071 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.314e-06/0.3487, allocations: 0 / 1.071 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.3487, allocations: 0 / 1.071 GB, free: 7.906 MB / 0.8262 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.0007692/0.3495, allocations: 409 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.3495, allocations: 12.03 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.246e-05/0.3496, allocations: 12.84 kB / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.3498, allocations: 184.1 kB / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.3498, allocations: 4.375 kB / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.45e-05/0.3498, allocations: 4.375 kB / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.3501, allocations: 73.97 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.3501, allocations: 0 / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.3501, allocations: 0 / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3501, allocations: 0 / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.3503, allocations: 35.97 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007285/0.351, allocations: 320.7 kB / 1.072 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.3512, allocations: 50.48 kB / 1.072 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.3514, allocations: 32.97 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.3514, allocations: 4 kB / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002466/0.3516, allocations: 79.44 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 2.074e-06/0.3517, allocations: 0 / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005417/0.3522, allocations: 137.5 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.3523, allocations: 55.41 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.3524, allocations: 133.7 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.3524, allocations: 29.7 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.848e-05/0.3525, allocations: 88.14 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.945e-05/0.3525, allocations: 19.73 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.019e-05/0.3526, allocations: 25.72 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.3527, allocations: 322.8 kB / 1.072 GB, free: 5.691 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.3529, allocations: 27.98 kB / 1.072 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.353, allocations: 54.48 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000214/0.3532, allocations: 70.5 kB / 1.073 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3532, allocations: 0 / 1.073 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003361/0.3536, allocations: 117.5 kB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.3536, allocations: 8.062 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3536, allocations: 0 / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.3537, allocations: 4 kB / 1.073 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.3538, allocations: 11.98 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.3538, allocations: 400 / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.268e-05/0.3539, allocations: 7.984 kB / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.3539, allocations: 11.88 kB / 1.073 GB, free: 5.359 MB / 0.8262 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.0001158/0.3541, allocations: 125.4 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.55e-05/0.3541, allocations: 11.91 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.607e-05/0.3541, allocations: 4.375 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3541, allocations: 7.984 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3542, allocations: 0 / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.3542, allocations: 3.984 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005812/0.3548, allocations: 386.3 kB / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.3548, allocations: 7.984 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.925e-05/0.3548, allocations: 4 kB / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3549, allocations: 4 kB / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.3549, allocations: 0 / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.3549, allocations: 0 / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.3549, allocations: 7.938 kB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003605/0.3553, allocations: 207.4 kB / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.624e-05/0.3553, allocations: 85.02 kB / 1.074 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.328e-05/0.3553, allocations: 0 / 1.074 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.3555, allocations: 11.98 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.154e-05/0.3555, allocations: 11.88 kB / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.3556, allocations: 4 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.503e-05/0.3556, allocations: 91.27 kB / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3557, allocations: 0 / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000468/0.3561, allocations: 39.98 kB / 1.074 GB, free: 4.27 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.00041/0.3565, allocations: 157.3 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003274/0.3569, allocations: 75.89 kB / 1.074 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3569, allocations: 3.938 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.357, allocations: 31.98 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.3575, allocations: 12.34 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005166/0.358, allocations: 204.3 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.3583, allocations: 0.6885 MB / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.051e-05/0.3583, allocations: 4 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.693e-05/0.3584, allocations: 15.44 kB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.3584, allocations: 0 / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of Templates: time 0.005221/0.3636, allocations: 1.412 MB / 1.076 GB, free: 1.633 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