Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008021/0.008021, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.43/1.43, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.842/2.842, allocations: 462.6 MB / 0.7363 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003643, allocations: 8.969 kB / 0.9027 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3697, allocations: 159.6 MB / 1.059 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.00172/0.3715, allocations: 1.217 MB / 1.06 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001262/0.3727, allocations: 0.7207 MB / 1.061 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.039e-05/0.3728, allocations: 0 / 1.061 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.31e-05/0.3728, allocations: 3.938 kB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.758e-05/0.3729, allocations: 11.92 kB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004999/0.3734, allocations: 115.7 kB / 1.061 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.924e-05/0.3735, allocations: 67.78 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.3736, allocations: 8 kB / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.921e-05/0.3737, allocations: 31.89 kB / 1.061 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.246e-05/0.3738, allocations: 35.84 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.649e-05/0.3738, allocations: 4 kB / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.374, allocations: 87.84 kB / 1.061 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.351e-05/0.374, allocations: 19.92 kB / 1.061 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.086e-05/0.3741, allocations: 57.55 kB / 1.061 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.3743, allocations: 135.9 kB / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3743, allocations: 0 / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.983e-06/0.3744, allocations: 0 / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.3744, allocations: 0 / 1.061 GB, free: 2.473 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.0006403/0.375, allocations: 405.1 kB / 1.061 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.3751, allocations: 11.97 kB / 1.061 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.528e-05/0.3751, allocations: 12.84 kB / 1.061 GB, free: 2 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/0.3753, allocations: 172.2 kB / 1.062 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.3753, allocations: 4.375 kB / 1.062 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.106e-05/0.3753, allocations: 8.375 kB / 1.062 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001959/0.3755, allocations: 77.84 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.3756, allocations: 0 / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.3756, allocations: 3.984 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.3756, allocations: 0 / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001409/0.3757, allocations: 43.98 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006322/0.3764, allocations: 324.7 kB / 1.062 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.3765, allocations: 54.5 kB / 1.062 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.437e-05/0.3766, allocations: 36.97 kB / 1.062 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.3767, allocations: 3.938 kB / 1.062 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002082/0.3769, allocations: 83.38 kB / 1.062 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.3769, allocations: 0 / 1.062 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004065/0.3773, allocations: 137.6 kB / 1.062 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.3774, allocations: 63.34 kB / 1.062 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.728e-05/0.3775, allocations: 125.7 kB / 1.063 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.3775, allocations: 29.7 kB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.144e-05/0.3776, allocations: 92.2 kB / 1.063 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.3776, allocations: 19.73 kB / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.3776, allocations: 17.72 kB / 1.063 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.3778, allocations: 322.8 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.589e-05/0.3779, allocations: 31.98 kB / 1.063 GB, free: 216 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.378, allocations: 54.55 kB / 1.063 GB, free: 152 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.3782, allocations: 78.8 kB / 1.063 GB, free: 64 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3782, allocations: 4 kB / 1.063 GB, free: 60 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002794/0.3785, allocations: 117.5 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.3785, allocations: 4 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3785, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3785, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.67e-05/0.3786, allocations: 19.98 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.3786, allocations: 8.062 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.477e-05/0.3787, allocations: 4 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.3787, allocations: 7.984 kB / 1.063 GB, free: 15.89 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.663e-05/0.3788, allocations: 123.1 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.364e-05/0.3789, allocations: 7.906 kB / 1.063 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.852e-05/0.3789, allocations: 12.38 kB / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3789, allocations: 3.938 kB / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3789, allocations: 0 / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.3789, allocations: 4 kB / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004593/0.3794, allocations: 390.4 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3794, allocations: 0 / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.212e-05/0.3795, allocations: 11.92 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3795, allocations: 0 / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.3795, allocations: 0 / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.3795, allocations: 7.938 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-05/0.3795, allocations: 7.938 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.3798, allocations: 215.4 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.752e-05/0.3799, allocations: 85.02 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.3799, allocations: 0 / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-05/0.38, allocations: 11.98 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/0.38, allocations: 7.938 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.3801, allocations: 4 kB / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.53e-05/0.3801, allocations: 95.86 kB / 1.064 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3801, allocations: 0 / 1.064 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003194/0.3804, allocations: 39.98 kB / 1.064 GB, free: 14.79 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.0003891/0.3808, allocations: 155.4 kB / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000263/0.3811, allocations: 76.19 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3811, allocations: 0 / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.3812, allocations: 48.19 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.3815, allocations: 0.75 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004057/0.3819, allocations: 217.2 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.3822, allocations: 0.6926 MB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.666e-05/0.3823, allocations: 4 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.495e-05/0.3823, allocations: 7.438 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.3823, allocations: 0 / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of Templates: time 0.004206/0.3865, allocations: 1.365 MB / 1.067 GB, free: 12.18 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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