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.00145/0.00145, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 197.5 kB / 16.54 MB, free: 6.672 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.413/1.413, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.97/2.97, allocations: 472.6 MB / 0.7451 GB, free: 4.711 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 63.69 kB / 0.912 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3315, allocations: 159.9 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002724/0.3343, allocations: 1.497 MB / 1.07 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001208/0.3355, allocations: 0.7244 MB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.104e-05/0.3355, allocations: 0 / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.989e-05/0.3356, allocations: 11.81 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.711e-05/0.3356, allocations: 15.91 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005299/0.3362, allocations: 127.6 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.411e-05/0.3363, allocations: 71.83 kB / 1.071 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.017e-05/0.3364, allocations: 15.98 kB / 1.071 GB, free: 8 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.825e-05/0.3365, allocations: 31.91 kB / 1.071 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.304e-05/0.3365, allocations: 39.83 kB / 1.071 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.005e-05/0.3366, allocations: 8 kB / 1.071 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001847/0.3367, allocations: 95.84 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.914e-05/0.3368, allocations: 23.91 kB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.329e-05/0.3368, allocations: 35.86 kB / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002213/0.3371, allocations: 139.9 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3371, allocations: 0 / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3371, allocations: 7.938 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.3371, allocations: 0 / 1.071 GB, free: 7.625 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.000606/0.3377, allocations: 409 kB / 1.071 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.3377, allocations: 12.03 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.817e-05/0.3378, allocations: 8.844 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.3379, allocations: 184.1 kB / 1.072 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.338, allocations: 4.375 kB / 1.072 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.587e-05/0.338, allocations: 4.375 kB / 1.072 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.3382, allocations: 69.97 kB / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.3382, allocations: 0 / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.3382, allocations: 3.984 kB / 1.072 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.3382, allocations: 0 / 1.072 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001266/0.3383, allocations: 39.97 kB / 1.072 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005993/0.3389, allocations: 320.7 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.3391, allocations: 50.5 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.386e-05/0.3392, allocations: 36.97 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.3392, allocations: 4 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001924/0.3394, allocations: 75.38 kB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.3394, allocations: 3.938 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003839/0.3398, allocations: 137.6 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.3399, allocations: 59.39 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.34, allocations: 121.8 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.34, allocations: 33.7 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.272e-05/0.3401, allocations: 92.12 kB / 1.073 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.3401, allocations: 11.75 kB / 1.073 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.883e-05/0.3401, allocations: 29.7 kB / 1.073 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3403, allocations: 322.8 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.26e-05/0.3403, allocations: 31.97 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.38e-05/0.3404, allocations: 46.56 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001513/0.3406, allocations: 74.48 kB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3406, allocations: 4 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002289/0.3409, allocations: 109.5 kB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.3409, allocations: 4 kB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3409, allocations: 4.062 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.3409, allocations: 4 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.341, allocations: 15.94 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.341, allocations: 3.984 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.263e-05/0.3411, allocations: 4 kB / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.3411, allocations: 4 kB / 1.073 GB, free: 5.086 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 9.351e-05/0.3412, allocations: 125.1 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.816e-05/0.3412, allocations: 11.91 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.561e-05/0.3413, allocations: 12.36 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3413, allocations: 3.938 kB / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3413, allocations: 4 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3413, allocations: 0 / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004498/0.3417, allocations: 386.7 kB / 1.074 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3418, allocations: 0 / 1.074 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.081e-05/0.3418, allocations: 4 kB / 1.074 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.3418, allocations: 4 kB / 1.074 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.3418, allocations: 3.984 kB / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.3418, allocations: 0 / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3418, allocations: 4.016 kB / 1.074 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002763/0.3421, allocations: 219.3 kB / 1.074 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.105e-05/0.3422, allocations: 81.02 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.3422, allocations: 7.984 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.891e-05/0.3423, allocations: 7.984 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.889e-05/0.3424, allocations: 11.92 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.407e-06/0.3424, allocations: 4 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.213e-05/0.3424, allocations: 91.27 kB / 1.074 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3424, allocations: 0 / 1.074 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002968/0.3427, allocations: 36 kB / 1.074 GB, free: 3.992 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.0003363/0.3431, allocations: 166.1 kB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002402/0.3433, allocations: 79.89 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3433, allocations: 0 / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.745e-05/0.3434, allocations: 35.92 kB / 1.074 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.3437, allocations: 12.92 kB / 1.074 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000418/0.3441, allocations: 180.4 kB / 1.075 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.3444, allocations: 0.6885 MB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.673e-05/0.3444, allocations: 4 kB / 1.075 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.61e-05/0.3445, allocations: 11.44 kB / 1.075 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3445, allocations: 4 kB / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of Templates: time 0.004452/0.3489, allocations: 1.45 MB / 1.077 GB, free: 1.324 MB / 0.8262 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